This reset type in my input tag really is not resetting the values.
<input type="reset" value=" Clear ">
Follow me for a minute.
I have 2 selects.
When I have a select1 that has some kind of input in it and then submit
the form I get data based on select1.
I then press the "back" button.
Select1 has data in it.
I press the reset button above,select1 gets cleared.
I enter data in select2.
But, I get data based on select1 as well.
So, what I am saying is that all the reset function does is clear the
values from the selects, but it is not changing the selections from
memory apparently.
Do I need to do some kind of javascript to completely fix this?
Mike 1 2467
On Tue, 25 Nov 2003, Michael Hill wrote: This reset type in my input tag really is not resetting the values.
<input type="reset" value=" Clear ">
There's been plenty of general discussion in the past about the
usefulness or otherwise of input type="reset". You might benefit by
searching for it, even though it isn't going to answer your present
specific question.
I have 2 selects. When I have a select1 that has some kind of input in it and then submit the form I get data based on select1. I then press the "back" button. Select1 has data in it. I press the reset button above,select1 gets cleared. I enter data in select2.
But, I get data based on select1 as well.
URL of test case? Browser used?
I don't grasp exactly what you say is going wrong (which is why a test
case would be appropriate); perhaps this old page helps, or perhaps
not: http://ppewww.ph.gla.ac.uk/~flavell/www/testselect.html
So, what I am saying is that all the reset function does is clear the values from the selects, but it is not changing the selections from memory apparently.
Huh? There _is_ no memory, unless you're providing it (e.g by having
the server write hidden variables into the form). HTTP itself is
inherently stateless.
Do I need to do some kind of javascript to completely fix this?
Javascript never "completely fixes" anything. It just adds new
variations of behaviour, relative to what you get from those who have
it disabled.
Forms can be designed to work. Plenty of folks have done it; I'm sure
you can too.
Reserve Javascript, if you use it at all, for optional extras, with
the emphasis on "optional".
good luck This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matt |
last post by:
i need to implement a clear button to clear all the fields in the
form,
but i am thinking i can just use reset button.
<input type="reset" name="reset" value="CLEAR">
The first thought is that if there is default value reset and clear
will become different.
My understanding is that reset means to restore the original page
before
|
by: Colin McKinnon |
last post by:
Hi all,
I've got two frames, one with a form ('main') and one with some clickable
images ('tp'). The clickable images call a function in 'main' (code below)
which in turn calls the .submit() or .reset() methods of the form.
The submit call does what is expected. But the reset call throws an error in
Mozilla (1.2.1) 'widget.reset is not a function'. It doesn't work in
Konqueror (3.1.1) either (don't have an error message - it just don't...
|
by: Chris Lane |
last post by:
Hi,
I have an HTML RESET button and Web Control Button that
posts back to the server. Problem is the reset button
doesn't work after the postback occurs. Any ideas or
suggestions as to why this happens or how I can work
around this?
Thanks
|
by: NancyASAP |
last post by:
Thought I'd share this since it took me a long time to get it working.
Thanks to a bunch of contributers in Google Groups who shared
javascript, etc.
The question was: How can I put a reset button on my ASP.NET web page,
and have an HTML reset button click clear 1) all validator text display
and 2) validation summary display. Problem was clearing them and yet
still leaving them working and visible if the user immediately began...
|
by: Lee Chapman |
last post by:
Hi,
Can anyone tell me why in the code below, the call to ClearChildViewState()
has no effect?
To paraphrase the code: I'm using view state. I have a textbox and a submit
button (and a label that can be ignored). When I press the button the first
time, the click handler hides the textbox. Pressing the button a second time
unhides the textbox. The text box is maintaining its value when hidden via
view state. (The value is NOT being...
| |
by: Charlie Brookhart |
last post by:
I am trying to figure out how to code a button labeled reset which will
clear the user input as well as clear out the two read-only text boxes. Here
is the program code that I have.
'declaring variables
Dim totalLiters As Double = Convert.ToDouble(txtLiters.Text)
Dim totalPints As Double = Convert.ToDouble(txtPints.Text)
|
by: Roger Withnell |
last post by:
I need to reset a form to its original value using onclick rather than the
Reset button. So, I have:
<input type="button" name="reset" id="reset" value="Reset"
onclick="form1.reset();"> where the id of my form is "form1".
This gives the error "Object doesn't support this property or method".
Please advise.
|
by: newbie |
last post by:
i have a form in which a hidden field (initial value as '0', and my
javascript set it to '1' when an event is trigged).
In the same form, i have a reset field. But I realized that the hidden
field is not reset to '0' when i push the
reset button. If I simply change the node from
"<input type="hidden" id='IsChanged' value='0'>"
to
"<input type="text" id='IsChanged' value='0'>"
Everything is working as expected (the value is reset to '0'...
|
by: Giovanni D'Ascola |
last post by:
Hi.
I noticed that <input type="reset"actually don't enable checkbutton
which are checked by default after they have been disabled by
javascript. It's a bug?
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |