By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,669 Members | 2,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,669 IT Pros & Developers. It's quick & easy.

dead reset button

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
"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.