| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | 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!
__________________ Jurassic.com | Small.biz TaiwanTea.com | DigiZone.com |
| |
| | #2 (permalink) |
| Domains my Dominion | 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
__________________ Buy now - MassDeveloper.com $500 |
| |
| | #3 (permalink) | |
| Stud Sausage | Quote:
(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]) 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 10:23 AM. Reason: heh, my edit actually reiterates what cerebus has just said - another call for refreshing the page beforehand | |
| |
| | #4 (permalink) |
| NamePros Regular | 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. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |