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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to do onevent

Status
Not open for further replies.

clowns119

Programmer
Feb 20, 2005
15
US
Hi all
I have a web form and the text in it is being pulled in from another web page using xmlhttpd I want to make an alert box pop up whenever teh text changes. Is this possible? I tried calling onchange from the <form> but it did not work. I think I need to loop through the form maybe but I am not sure how, any ideas?

Thanks
Justin
 
Hello clowsn119!

I'm sure there are better ways to do this and someone else might help with an event, but here is how you can use a timer function and verify the text at each interval...
Code:
intInterval = 100 '1000 = 1 second
intTimer = window.SetInterval("subTimer()", intInterval)

Sub subTimer()
    'Do your text checking here
End Sub

Good luck!

He who has knowledge spares his words, and a man of understanding is of a calm spirit. Even a fool is counted wise when he holds his peace; when he shuts his lips, he is considered perceptive. - King Solomon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top