Re: ava script
Hello Andy, turn off the autocomplete i believe. -- Best regards, Critter, MMCP Certified ColdFusion Developer Crit[s2k] - --- Friday, August 17, 2001, 7:50:19 AM, you wrote: AE> OK another Javascript teaser. AE> I have written a function which changes the value in text box 2 when the AE> value text box 1 changes. I call this function in the onchange event of AE> text box 1. By definition of the onchange event this function should run if AE> and only if the value in text box 1 is different when focus is lost to when AE> focus was gained. When I enter the form the value in text box 1 is blank. AE> I start to type in something and IE recognises that what I am trying to type AE> in I've entered before (much like when you attempt to go to a URL that is in AE> the browser history). I select the entry from the drop down list I get and AE> hit tab to tab off the text box. When I do this the function is not called. AE> However when I do not select it from the drop down list and type it in AE> manually it does call the function!does anyone know why this is AE> happening and what I can do to stop the browser trying to predict what I'm AE> typing in ? AE> -- AE> Andrew Ewings AE> Project Manager AE> Thoughtbubble Ltd AE> http://www.thoughtbubble.net AE> -- AE> United Kingdom AE> http://www.thoughtbubble.co.uk/ AE> Tel: +44 (0) 20 7387 8890 AE> -- AE> New Zealand AE> http://www.thoughtbubble.co.nz/ AE> Tel: +64 (0) 9 488 9131 AE> -- AE> The information in this email and in any attachments is confidential and AE> intended solely for the attention and use of the named addressee(s). Any AE> views or opinions presented are solely those of the author and do not AE> necessarily represent those of Thoughtbubble. This information may be AE> subject to legal, professional or other privilege and further distribution AE> of it is strictly prohibited without our authority. If you are not the AE> intended recipient, you are not authorised to disclose, copy, distribute, or AE> retain this message. Please notify us on +44 (0)207 387 8890. AE> ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: ava script
In IE the form tag can have a property of autocomplete set to false and the form elements won't do that. Bryan - Original Message - From: "Andy Ewings" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, August 17, 2001 6:50 AM Subject: ava script | OK another Javascript teaser. | | I have written a function which changes the value in text box 2 when the | value text box 1 changes. I call this function in the onchange event of | text box 1. By definition of the onchange event this function should run if | and only if the value in text box 1 is different when focus is lost to when | focus was gained. When I enter the form the value in text box 1 is blank. | I start to type in something and IE recognises that what I am trying to type | in I've entered before (much like when you attempt to go to a URL that is in | the browser history). I select the entry from the drop down list I get and | hit tab to tab off the text box. When I do this the function is not called. | However when I do not select it from the drop down list and type it in | manually it does call the function!does anyone know why this is | happening and what I can do to stop the browser trying to predict what I'm | typing in ? | | -- | Andrew Ewings | Project Manager | Thoughtbubble Ltd | http://www.thoughtbubble.net | -- | United Kingdom | http://www.thoughtbubble.co.uk/ | Tel: +44 (0) 20 7387 8890 | -- | New Zealand | http://www.thoughtbubble.co.nz/ | Tel: +64 (0) 9 488 9131 | -- | The information in this email and in any attachments is confidential and | intended solely for the attention and use of the named addressee(s). Any | views or opinions presented are solely those of the author and do not | necessarily represent those of Thoughtbubble. This information may be | subject to legal, professional or other privilege and further distribution | of it is strictly prohibited without our authority. If you are not the | intended recipient, you are not authorised to disclose, copy, distribute, or | retain this message. Please notify us on +44 (0)207 387 8890. | | | | ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: ava script
OK I've sorted this to some extent.If I use the onblur event it solves it because it doesn't check to see if it's changed but the point is that it has changed so the onchange event should work too -- Andrew Ewings Project Manager Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.co.uk/ Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 488 9131 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 12:50 To: CF-Talk Subject: ava script OK another Javascript teaser. I have written a function which changes the value in text box 2 when the value text box 1 changes. I call this function in the onchange event of text box 1. By definition of the onchange event this function should run if and only if the value in text box 1 is different when focus is lost to when focus was gained. When I enter the form the value in text box 1 is blank. I start to type in something and IE recognises that what I am trying to type in I've entered before (much like when you attempt to go to a URL that is in the browser history). I select the entry from the drop down list I get and hit tab to tab off the text box. When I do this the function is not called. However when I do not select it from the drop down list and type it in manually it does call the function!does anyone know why this is happening and what I can do to stop the browser trying to predict what I'm typing in ? -- Andrew Ewings Project Manager Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.co.uk/ Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 488 9131 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
ava script
OK another Javascript teaser. I have written a function which changes the value in text box 2 when the value text box 1 changes. I call this function in the onchange event of text box 1. By definition of the onchange event this function should run if and only if the value in text box 1 is different when focus is lost to when focus was gained. When I enter the form the value in text box 1 is blank. I start to type in something and IE recognises that what I am trying to type in I've entered before (much like when you attempt to go to a URL that is in the browser history). I select the entry from the drop down list I get and hit tab to tab off the text box. When I do this the function is not called. However when I do not select it from the drop down list and type it in manually it does call the function!does anyone know why this is happening and what I can do to stop the browser trying to predict what I'm typing in ? -- Andrew Ewings Project Manager Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.co.uk/ Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 488 9131 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists