OZONE Asylum
Forums
DHTML/Javascript
JS Function & Variable Storage
This page's ID:
27926
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Normal, you don't return FALSE onSubmit to cancel the submission of the form, thus the values you see added in the GET parameters of the URL. Just change the FORM tag like that :[code]<form name="parking" method="get" onSubmit="return calculateCharges(this.hoursparked.value)">[/code]And voilà it works. OTOH, I would not use a submit INPUT to do such thing, but a regular [url=http://www.w3.org/TR/html4/interact/forms.html#h-17.5]BUTTON[/url] with an onclick. You should either disable the TEXTAREAs or replace them by a simple SPAN element so the user can not change their value. The SCRIPT tag should be either in the HEAD or in the BODY, preferably in the HEAD, or better : external. And there is no such thing as an INPUT type="Integer" :p According to the [url=http://www.w3.org/TR/html4/interact/forms.html#h-17.4.1]HTML 4.01 Specification - Forms - Control types created with INPUT[/url], the type of an INPUT is either : text, password, checkbox, radio, submit, image, reset, button or file. Hope that helps, [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love_small.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_charly.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_reason.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/sigrotate][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 05-14-2006 11:38)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »