This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

-onkeyup- does not update boolean value

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, guys:

I use the following code trying to update boolean value
when user modifies nemeric data inside textbox. If I use onchange method,
boolean value can be updated, but it cannot be done with onkeyup
(but I have to use this method to dynamically calculate numeric values in another textbox). I am wondering if there is a solution for this(I used -onkeyup- to avoid posting error):


-onkeyup-="notifyNumberChange(this.form)"

function notifyNumberChange(form)
{
var bvalue=new Boolean(true);
document.forms[0].numberChanged.value = bvalue.valueOf();
document.write("numberChanged=="+bvalue.valueOf());
}

regards,
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
works for me on IE and Mozilla....

you may need to use onkeypress.

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic