473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

dead reset button

Hi, can someone make sense of this?

I am using AJAX to populate a <div>, which is working very nicely,
except for one thing:
My reset button in the resulting <formis dead.

When I put a breakpoint and trap the response in the javascript code,
the returned html for the button looks like this:
<input type=\"reset\" value=\"Clear\" />

When I look at the response in Firebug console, there are no slashes, so
I don't know what's going on. It looks like this:

<input type="reset" value="Clear" />

The main thing is, it doesn't reset the form elements. Has anyone ever seen this behavior before?

Tom

Jul 26 '07 #1
4 1856
Never mind, I just saw the issue - I'm setting the value for each text
box in my php code, so the reset button doesn't clear those.
>
Tom
Jul 26 '07 #2
"tomb" <to**@technetcenter.comwrote in message
news:O3***************@bignews9.bellsouth.net...
Hi, can someone make sense of this?
I detest reset buttons. I have never found a need for one and usually end up
pressing them by mistake losing all the data that I've entered.

Steve.
Jul 26 '07 #3
Steve Robinson wrote:
"tomb" <to**@technetcenter.comwrote in message
news:O3***************@bignews9.bellsouth.net...
>Hi, can someone make sense of this?

I detest reset buttons. I have never found a need for one and usually end up
pressing them by mistake losing all the data that I've entered.

Steve.

You serious?
Jul 26 '07 #4
"tomb" <to**@technetcenter.comwrote in message
news:2t*****************@bignews6.bellsouth.net...
>
This is a very good point. Thanks for raising it. I am developing a web
application, so I actually do need a button that completely clears the
form, but I'm going to change the value of it to be New, rather than
Clear. That is actually the purpose of the button, to enter a completely
new record.
Just remember though that labeling it is not enough. You need to make sure
that it is positioned well away from and is distinct from the submit button
so that it can't be pressed accidentally when the user means to submit the
form contents.

Steve.
Jul 27 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Ken | last post by:
How can I reset the initial form variables that are set with session statements when clicking on a button? I tried this but the function was not called: <?PHP function reset_form($none) {...
2
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...
1
by: Joe Bloggs | last post by:
I have a form which includes a checkbox field. I need to add a reset, I add a HTML reset it works fine before I submit the form but not after. I know I must add some code to reset the checkbox on...
4
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...
1
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...
4
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...
2
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...
16
by: sreemati | last post by:
Hi everyone, This is the scenario: I have two button - Submit and Reset Submit is used for validation and after validation is passed it passes it to another form to enter into database. ...
16
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?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.