[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 02-19-2007, 09:34 AM   #1 (permalink)
NamePros Regular
 
Join Date: Jun 2003
Location: Taiwan
Posts: 781
465.00 NP$ (Donate)

fleaking is just really nicefleaking is just really nicefleaking is just really nicefleaking is just really nicefleaking is just really nice


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
fleaking is offline  
Old 02-19-2007, 10:03 AM   #2 (permalink)
Domains my Dominion
 
sdsinc's Avatar
 
Join Date: Aug 2005
Location: Web 1.0
Posts: 6,285
1,095.94 NP$ (Donate)

sdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond repute

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
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
__________________
Buy now - MassDeveloper.com $500
sdsinc is offline  
Old 02-19-2007, 10:05 AM   #3 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,546
34.41 NP$ (Donate)

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])

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
__________________
My NamePros Tools
(firefox plugin, google gadget etc)

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
Matthew. is offline  
Old 02-19-2007, 10:16 AM   #4 (permalink)
NamePros Regular
 
Join Date: Oct 2003
Location: Sweden
Posts: 395
655.10 NP$ (Donate)

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, 07:53 PM   #5 (permalink)
NamePros Regular
 
Join Date: Jun 2003
Location: Taiwan
Posts: 781
465.00 NP$ (Donate)

fleaking is just really nicefleaking is just really nicefleaking is just really nicefleaking is just really nicefleaking is just really nice


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

BTW, $NP sent.
__________________
Jurassic.com | Small.biz
TaiwanTea.com | DigiZone.com
fleaking is offline  
Closed Thread


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:54 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85