Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking Field

Status
Not open for further replies.

TheConeHead

Programmer
Joined
Aug 14, 2002
Messages
2,106
Location
US
I have a script I got somewhere that pops a calendar and when you click on a date it populates a text box back ijn the original window - well, I want to run a check when the field is populated - I tried just putting an onchange on the text box but that does not seem to work - short of getting into the calendar script, how could I go about this?

[conehead]
 
It sounds like the easiest way would be to edit the calendar script. To do so without this, you'd need to periodically "poll" the field (i.e. check its value)... but much easier to edit the script.

The reason the onchange event doesn't fire is most likely because the field value is being set programatically.

Hope this helps,
Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
just another thought: maybe putting a function in the onfocus event of the page itself. if you're populating the field and then closing the calendar window, this event may trigger when the parent page comes back into focus...

just a thought.



*cLFlaVA
----------------------------
spinning-dollar-sign.gif
headbang.gif
spinning-dollar-sign.gif

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top