How do I get a form field to reset itself back to its default value if the
user has changed it?
Without clicking on a refresh/reload button on the page but instead using
the browser's button.
*The XHTML Transitional code I have is*:
tddiv class=inmiddleof
label for=hsQty/label
Do you just mean a form reset input button? input type=reset
value=Reset!? You lost me on the but instead using the browser's
button.. what button?
On Nov 13, 2008, at 11:00 AM, Brett Patterson wrote:
How do I get a form field to reset itself back to its default value
if the user has
The Reload Current Page button in Firefox, and I think the Refresh Page
button in IE, and whatever those buttons are called in other browsers. NOT
with an input button to reset. Thanks.
On Thu, Nov 13, 2008 at 11:31 AM, Todd Budnikas [EMAIL PROTECTED]wrote:
Do you just mean a form reset input
The Reload Current Page button in Firefox, and I think the Refresh Page
button in IE, and whatever those buttons are called in other browsers. NOT
with an input button to reset. Thanks.
On Thu, Nov 13, 2008 at 11:31 AM, Todd Budnikas [EMAIL PROTECTED]wrote:
Do you just mean a form reset input
On Nov 13, 2008, at 11:40 AM, Brett Patterson wrote:
How do I get a form field to reset itself back to its default value
if the user has changed it?
I think it might help getting an answer if you could clarify exactly
what it is you are trying to achieve here, and why.
Andrew
I guess use onbeforeunload to trigger an event?
http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm
On Nov 13, 2008, at 11:40 AM, Brett Patterson wrote:
The Reload Current Page button in Firefox, and I think the Refresh
Page button in IE, and whatever those buttons are called in
Brett Patterson wrote:
To Andrew:
What I am trying to do is get a form field to reset a value back to
the default selected when a user clicks on the refresh or reload
button in the browser, not the page (meaning I am not using input
type=reset / to reset the fields). So, for example, lets
To Andrew:
What I am trying to do is get a form field to reset a value back to the
default selected when a user clicks on the refresh or reload button in the
browser, not the page (meaning I am not using input type=reset / to
reset the fields). So, for example, lets say this code is:
form
Brett -
Here's the problem: Different browsers handle that
differently. Firefox 2+ won't reset the fields on Reload, only on
Shift-Reload. IE 6.0+ resets on a simple Refresh. What is the teacher using?
At 11:34 AM 11/13/2008, you wrote:
To Andrew:
What I am trying to do is get a form
sorry all, does this not solve it?
I guess use onbeforeunload to trigger an event?
http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm
On Nov 13, 2008, at 1:11 PM, Tom ('Mas) Pickering wrote:
Brett -
Here's the problem: Different browsers handle that differently.
Firefox 2+
Sorry, but no. If you look in FF3 it keeps the text entered in the form
field when page is refreshed the same. It does not remove it.
There are no code examples, and I have exhausted the library and internet
resources.
On Thu, Nov 13, 2008 at 1:20 PM, Todd Budnikas [EMAIL PROTECTED]wrote:
i realize that. I'm saying use this behavior to notice the page has
been refreshed and call a function that resets the fields you wish to
have this action. I'm not claiming that script solves your problem,
but would be a gateway for you to write something that does.
On Nov 13, 2008, at
Ok, thanks. I'll try that.
On Thu, Nov 13, 2008 at 1:40 PM, Todd Budnikas [EMAIL PROTECTED]wrote:
i realize that. I'm saying use this behavior to notice the page has been
refreshed and call a function that resets the fields you wish to have this
action. I'm not claiming that script solves
On Nov 13, 2008, at 1:32 PM, Brett Patterson wrote:
Sorry, but no. If you look in FF3 it keeps the text entered in the
form field when page is refreshed the same. It does not remove it.
There are no code examples, and I have exhausted the library and
internet resources.
Well, forgive me
Ah, ok, I got it figured out thanks.
On Thu, Nov 13, 2008 at 1:53 PM, Andrew Maben [EMAIL PROTECTED]wrote:
On Nov 13, 2008, at 1:32 PM, Brett Patterson wrote:
Sorry, but no. If you look in FF3 it keeps the text entered in the form
field when page is refreshed the same. It does not remove it.
I hate to ask another question about JavaScript, but I need help with ONE
more thing, please?
*Using the following JS code in XHTML Transitional:*
function proc()
{
var num = document.heartSearch.hsQty.value*8.95;
document.hSearchoutput.hsTotal.value = r2(num);
}
function prc2()
{
var num
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
try
http://www.google.com/search?q=javascript+helpsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enAU252AU254
the list is Web Standards not a help desk.
Brett Patterson wrote:
I hate to ask another question about JavaScript, but I
Hi Brett,
you can use the document.forms[form number in sequence] to access the
elements in a form
*document.forms[0].elements[0].value
*For further reference
http://javascript.internet.com/forms/format-input.html*
*Warm Regards
Sajan Franco
On Fri, Nov 14, 2008 at 9:02 AM, Luke Hoggett
18 matches
Mail list logo