NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page need help!

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-19-2007, 10:34 AM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Jun 2003
Location: Taiwan
Posts: 838
fleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud of
 



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
fleaking is offline  
Old 02-19-2007, 11:03 AM   #2 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,552
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
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">
Remarks:
- 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
sdsinc is offline  
Old 02-19-2007, 11:05 AM   #3 (permalink)
Senior Member
Join Date: Dec 2006
Location: England
Posts: 1,568
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
 


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Quote:
Scroll down to the bottom of the source code.
Instead of input type="button" you need input type="submit" like this:
Actually you would want this as a button or the form would be submitted to the form action which is not what we want at this time (before validation).
(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
Matthew. is offline  
Old 02-19-2007, 11:16 AM   #4 (permalink)
NamePros Regular
Join Date: Oct 2003
Location: Sweden
Posts: 395
cerebus has a spectacular aura aboutcerebus has a spectacular aura about
 


Animal Rescue Wildlife Animal Cruelty
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.
cerebus is offline  
Old 02-19-2007, 08:53 PM THREAD STARTER               #5 (permalink)
NamePros Regular
Join Date: Jun 2003
Location: Taiwan
Posts: 838
fleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud offleaking has much to be proud of
 



Thanks you all!
I have solved the problem.
I appreciate your help!!

BTW, $NP sent.
__________________
Immersion Suits
fleaking is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:08 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger