"Get" forms wont submit properly.

Mar 10, 2008 at 2:52 PM
I'm having issues using "forms" in JMDCMS.

When I put a "Get" form into my site, the button for submit doesnt link to the URL I put as the 'action' instead it links back to the same page the form itself is on. The HTML source code is correct, yet the button still fails to operate as intended.

I believe this is caused by the URL handling built into JMDCMS. It appears that it always tries to treat a URL as a 'local' file instead of a link that may go outside the site itself.

Any idea on a way to work around this?
Coordinator
Mar 11, 2008 at 3:45 AM
Hello jtzako,

You can make JMDCMS ignore page URL rewritting. Open Global.asax and look at the code the rewrites the URL. You can put your page name in there so that the URL rewrite should ignore it.

Hope this helps!





jtzako wrote:
I'm having issues using "forms" in JMDCMS.

When I put a "Get" form into my site, the button for submit doesnt link to the URL I put as the 'action' instead it links back to the same page the form itself is on. The HTML source code is correct, yet the button still fails to operate as intended.

I believe this is caused by the URL handling built into JMDCMS. It appears that it always tries to treat a URL as a 'local' file instead of a link that may go outside the site itself.

Any idea on a way to work around this?

Mar 11, 2008 at 1:30 PM
Edited Mar 11, 2008 at 5:57 PM
I'm looking at the global.asax file now, and I think I may have found the code that rewrites the URL, but I'm not sure how to tell it not to re-write URLs of my choice. I assume I could put an "If" statement in there. I'm not real familiar with C# language yet so some of the code there I dont understand. Can you point me in the right direction so I can give this a shot without breaking it?

Also, I wanted to add, the 'action' url in the form points to a website that is NOT within the jmdcms site. Its a completely different domain etc. I need/want some way to make hyperlinks, form submit buttons etc ignore the url rewrite function.


handaajay15 wrote:
Hello jtzako,

You can make JMDCMS ignore page URL rewritting. Open Global.asax and look at the code the rewrites the URL. You can put your page name in there so that the URL rewrite should ignore it.

Hope this helps!





jtzako wrote:
I'm having issues using "forms" in JMDCMS.

When I put a "Get" form into my site, the button for submit doesnt link to the URL I put as the 'action' instead it links back to the same page the form itself is on. The HTML source code is correct, yet the button still fails to operate as intended.

I believe this is caused by the URL handling built into JMDCMS. It appears that it always tries to treat a URL as a 'local' file instead of a link that may go outside the site itself.

Any idea on a way to work around this?


Mar 26, 2008 at 12:47 AM
I never did find a way to work around this. I did 'fix' hyperlinks that go outside the site by changing a section in one of the FCK editor files. I havent yet figured out how to make Form "submit" buttons ignore the JMDCMS page behaviour.

<!--filename \fckeditor\editor\dialog\fck_link.html -->
<div id="divLinkTypeUrl">
<table cellspacing="0" cellpadding="0" width="100%" border="0" dir="ltr">
<tr>
<td nowrap="nowrap">
<span fckLang="DlgLnkProto">Protocol</span><br />
<select id="cmbLinkProtocol">
<option value="" fckLang="DlgLnkProtoOther" selected="selected">Ajay://</option>
<option value="https://">https://</option>
<option value="ftp://">ftp://</option>
<option value="news://">news://</option>
<option value="http://">http://</option> <<---- added this. If its not selected the default JMDCMS behaviour works fine
<option value="" fckLang="DlgLnkProtoOther"><other></option>
</select>