| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Jun 2003 Location: Taiwan
Posts: 838
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | need help! hi there, I have a registration form that it works only with Internet Explorer but not with FireFox, when using FireFox, the "submit" botton doesn't work, can someone tells me how to solve this problem(how to modify the html)? below is the link: http://www.ipsf2007.org/sign/user_ad...ttend_private= I will send $NP100 as reward to him(her)......... thanks in advance!
__________________ Immersion Suits |
| |
| | #2 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,552
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Scroll down to the bottom of the source code. Instead of input type="button" you need input type="submit" like this: Code: <input type="submit" Name="Button" Value="Submit" onClick="CheckData()" class="9-font"> - use quotes for attributes eg. input type="submit" instead of input type=submit - your validation routine is in vb. It will only work with internet explorer. Javascript would be better (work on other browsers too). Donate to charity instead: http://www.namepros.com/the-break-ro...npef-info.html
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | #3 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,568
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
(this is assuming we are ignoring the fact that a standard submit should be used to make sure the form always submits regardless of the client side validation [the VBScript]) ????: NamePros.com http://www.namepros.com/programming/296055-need-help.html The problem is as sdsinc pointed out, your function is written in VBScript which is a Microsoft technology, as such only Internet Explorer supports it. The function could easily be re-written in javascript as they are very similar languages, this would allow cross platform compatibility. (also VBScript is/has been a source of many exploits) Matt
Last edited by Matthew.; 02-19-2007 at 11:23 AM.
Reason: heh, my edit actually reiterates what cerebus has just said - another call for refreshing the page beforehand
| ||||
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Oct 2003 Location: Sweden
Posts: 395
![]() ![]() | I agree that the vbscript should indeed be changed to javascript, which is much more widely supported. However, I strongly disagree that an input type="button" should be used to submit a normal form. Clientside validation should never be trusted, so adding validation as onsubmit="return validationfunction()" is much better as it gives support for browsers that triggers errrors in your javascript or which doesn't parse javascript at all. |
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Regular Join Date: Jun 2003 Location: Taiwan
Posts: 838
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks you all! I have solved the problem. ![]() I appreciate your help!! BTW, $NP sent.
__________________ Immersion Suits |
| |