WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 override text.value = "blah", Veder Smukey, December 9, 2003
     Re:override text.value = "blah", Brian R. James, December 10, 2003
         Re:override text.value = "blah", Veder Smukey, December 11, 2003
             Re:override text.value = , Erik Arvidsson, December 11, 2003

Subject: Re:override text.value = "blah" From: Veder Smukey Date: December 11, 2003

Thanks.  It looks like onpropertychange is IE specific... however, it does
exactly what I was trying to do.  for non IE browser's I coded something
along the lines of:

var inputField = document.getElementById("abc");
inputField.setValue = function(v)
   inputField.value = v;
   // custom code that needed to be executed here...

All code that changed the field value programatically would then look
for the existence of the setValue method....

if ( inputField.setValue )
   inputField.value = someNewValue.

- Veder

From: Brian R. James
Sent: December 10, 2003
Subject: Re:override text.value = "blah"

Use the onpropertychange event to detect when value property on abc changes.

From: Veder Smukey
Sent: December 9, 2003
Subject: Re:override text.value = "blah"

<input type="text" id="abc"/>

// Later in a script I access it with:
var text = document.getElementById("abc");

I need to trigger some code when the text's value is
changed via text.value = "blah";  Is there a way to
override the "setter" method associated with text.value?
When text.value is set, onchange does not get triggered.

- Veder


Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.

View All Messages
Back to WebFX