PDA

View Full Version : Forms don't seem to work in Firefox



ajaxdude
12-04-2006, 07:05 PM
Hi everyone,

Forms don't seem to work in Firefox when using the DD AJAX toolkit.
Script URL (on DD):

http://www.rcntech.com/development/ajaxcars.asp

If you test the link above with IE works as it is supose to, however it doesn't display any elements withing the <form> tags in Firefox.

By the way, I am loading the page using the DD AJAX toolkit, if you call the ASP directly in Firefox then it works fine, but that's not what I am trying to achieve.

http://www.rcntech.com/development/login.asp

I am having a hard time to find the answer to it, please advise.

Thank you in advance.

jscheuer1
12-05-2006, 05:35 AM
You cannot use invalid markup and expect all browsers to be able to decipher it once it has been parsed through the script's innerHTML object which expects valid HTML - from your login.asp page's source as seen by FF when the login.asp page was opened directly (without ajaxcars.asp):


<td width="2" class="THHeader"><img src="images/clear.gif" width="1" border="0"></td>

<form name="registeredshopper" method="POST" action="javascript:ajaxpage('verifyshopper.asp?dest=&regtxtemail=' + this.registeredshopper.regtxtemail.value + '&txtregpassword=' + this.registeredshopper.txtregpassword.value, 'content');ajaxpage('include/top_nav.asp', 'header');">

<td width="380" valign="top" class="PlainTextBlackBackground">
<center>
<table width="85%" cellpadding="0" cellspacing="0" border="0">
<tr><td class="PlainTextBlackBackground">Email Address</td></tr>
<tr><td><input type="text" name="regtxtemail" size="40,1" maxlength="60" value=""></td></tr>
<tr><td class="PlainTextBlackBackground">
<br>

Password</td></tr>
<tr><td><input type="password" name="txtregpassword" size="15" maxlength="10" value=""></td></tr>
<tr><td><br><input type="Image" value="continue" src="images/btn-continue.gif" border="0" alt="continue"></td></tr>
</table>
</center>
<br>
<ul>
Forget your password ?<br>

Click <a class="allpage" href="javascript:ajaxpage('emailpassword.asp', 'content');">here</a> to have password emailed to you.
</ul>
</td>
</form>

In the above, for example, you have an opening and a closing form tag inside a table but neither one is in a table cell.