這裏是進入的HTML。我沒有看到任何無效的內容:
<form name="register" method="post" id="validate" action="/biomed-ed/users/register.htm?step=true&_=1302494250437">
<table align="center">
<tr>
<td width="200" align="right">First name</td>
<td width="600"><div class="glowBox">
<input type="text" name="firstName" id="firstName" size="50" autocomplete="off" spellcheck="true" class="validate[required]" />
<span class="tip" id='{"revert" : "Enter your first name", "empty" : "We need your first name"}'>Enter your first name</span></div></td>
</tr>
<tr>
<td width="200" align="right">Last name</td>
<td width="200"><div class="glowBox">
<input type="text" name="lastName" id="lastName" size="50" autocomplete="off" spellcheck="true" class="validate[required]" />
<span class="tip" id='{"revert" : "Enter your last name", "empty" : "We need your last name"}'>Enter your last name</span></div></td>
</tr>
<tr>
<td width="200" align="right">Username</td>
<td width="200"><div class="glowBox custom noHide">
<input type="text" name="userName" id="userName" size="50" autocomplete="off" spellcheck="true" class="validate[required]" />
<span class="tip" id='{"revert" : "Username must be unique", "empty" : "Please provide a username", "valid" : "This name is avaliable", "invalid" : "Sorry, this name is taken"}'>Username must be unique</span></div></td>
</tr>
<tr>
<td width="200" align="right">Password</td>
<td width="200"><div class="glowBox custom">
<input type="password" name="passWord" id="passWord" size="50" autocomplete="off" spellcheck="true" class="validate[required]" />
<span class="tip" id='{"revert" : "6 characters or more!", "empty" : "You will need a password", "valid" : "Good password!", "invalid" : "Too short"}'>6 characters or more!</span></div></td>
</tr>
<tr class="spacer">
<td width="200"></td>
<td width="200"></td>
</tr>
<tr>
<td width="200" align="right">Primary Email Address</td>
<td width="200"><div class="glowBox custom">
<input type="text" name="primaryEmail" id="primaryEmail" size="50" autocomplete="off" spellcheck="true" class="validate[required]" />
<span class="tip" id='{"revert" : "Enter your email address", "empty" : "An email is required", "valid" : "Email is valid" ,"invalid" : "Invalid email address"}'>Enter your email address</span></div></td>
</tr>
<tr>
<td width="200" align="right">Secondary Email Address</td>
<td width="200"><div class="glowBox custom optional">
<input type="text" name="secondaryEmail" id="secondaryEmail" size="50" autocomplete="off" spellcheck="true" class="validate[required]" />
<span class="tip" id='{"revert" : "Enter your email address", "valid" : "Email is valid" ,"invalid" : "Invalid email address"}'>Only if you have one</span></div></td>
</tr>
<tr>
<td width="200" align="right">Tertiary Email Address</td>
<td width="200"><div class="glowBox custom optional">
<input type="text" name="tertiaryEmail" id="tertiaryEmail" size="50" autocomplete="off" spellcheck="true" class="validate[required]" />
<span class="tip" id='{"revert" : "Enter your email address", "valid" : "Email is valid" ,"invalid" : "Invalid email address"}'>Only if you have one</span></div></td>
</tr>
<tr>
<td width="200" align="right"></td>
<td width="200">
<input type="button" name="submit" id="submit" value="Next Step"">
</td>
</tr>
</table>
</div>
</form>
您正在使用對其自身發出AJAX請求的頁面嗎?我不確定我知道你爲什麼需要這樣做。 – 2011-04-11 01:27:29
實際上比從本身請求數據的頁面要多得多。我改變了這個帖子,讓它更清晰一些。 – 2011-04-11 01:28:34
您發佈的代碼沒有問題。這幾乎是jquery ajax調用的cononical樣板。我相當確定問題在於代碼中的其他地方。你能向我們展示所有相關的代碼嗎? – 2011-04-11 01:32:22