469,645 Members | 1,193 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

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 1636
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Ken | last post: by
1 post views Thread by Joe Bloggs | last post: by
1 post views Thread by NancyASAP | last post: by
4 posts views Thread by Lee Chapman | last post: by
2 posts views Thread by Roger Withnell | last post: by
16 posts views Thread by Giovanni D'Ascola | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.