[WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Brett Patterson
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Todd Budnikas
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Brett Patterson
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Brett Patterson
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Andrew Maben
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Todd Budnikas
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Matt McKeon
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Brett Patterson
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Tom ('Mas) Pickering
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Todd Budnikas
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+

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Brett Patterson
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:

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Todd Budnikas
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Brett Patterson
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Andrew Maben
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

Re: [WSG] Reset form fields to default values when user clicks the refresh/reload button in there Browser, not on the page.

2008-11-13 Thread Brett Patterson
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.

[WSG] Another Question about JavaScript.

2008-11-13 Thread Brett Patterson
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

Re: [WSG] Another Question about JavaScript.

2008-11-13 Thread Luke Hoggett
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

Re: [WSG] Another Question about JavaScript.

2008-11-13 Thread vignette aquarius
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