Sending a form which is outside of the mojo CMS

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
11/30/2009 11:12:55 AM
Gravatar
Total Posts 2239

Re: Sending a form which is outside of the mojo CMS

Hi Mark,

You may want to take a look at jQuery Load (http://docs.jquery.com/Ajax/load). It is a lot cleaner than an iFrame because the user isn't trapped inside the frame. I have used it in the past to do things similar to what you are doing although the forms were PHP, not .NET.

HTH,
Joe D.

11/30/2009 12:44:44 PM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Sending a form which is outside of the mojo CMS

Hi Joe

That jQuery works great, thank you.

I'm up against another issue now; I've never used an Ajax Update Panel so I've not tried it in this instance. So instead I have this site www.russellrichardson.co.uk which is using jquery ajax load to pull in the form on the left which in turn is housed here: www.russellrichardson.co.uk/Data/Sites/1/skins/russellrichardson-newform/quoteforminline.aspx.

Works great as far as loading goes, but I've put a label in to test and made it invisible beneath the submit button. I then have this code on my button click (in page script):

Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)

label1.Visible = True

End Sub

So that I can check the postback etc with the simple label before getting it to mail my form later.

However, when I click submit the form tries to redirect me somehow or why to www.russellrichardson.co.uk/quoteforminline.aspx (which of course isn't there) and throws a 404 error. I guess it's because it's posting the entire page back to the server (hence why I was going to use an iframe)

I tried putting Response.Redirect(Request.RawUrl) after making my label visible, with the same result.

Can you see a solution for this by any chance?

Thanks

Mark

11/30/2009 4:28:56 PM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Sending a form which is outside of the mojo CMS

Oh by the way - the site has now reverted back to the "normal" skin where the form does nothing. The scenario i described above happens on the development skin...

Mark

12/1/2009 9:07:58 AM
Gravatar
Total Posts 2239

Re: Sending a form which is outside of the mojo CMS

Hi Mark,

So I think the advantage I mentioned of using jQuery Load is actually a disadvantage for you in this case. Your best bet is to develop a feature which contains the form and all the logic to process it properly. If you don't want to do that, I think you are stuck with an iFrame.

HTH,
Joe D.

12/1/2009 1:53:15 PM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Sending a form which is outside of the mojo CMS

 Sorted it with an iframe guys - thank you for your help and advice.

You must sign in to post in the forums. This thread is closed to new posts.