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

JavaScript Popup

Status
Not open for further replies.

SON1

Programmer
Nov 21, 2004
51
CY
I am trying to get my hands on a javascript that loads on page load and every 10 seconds it checks a page on the internet (not rendered in the browser) to see if it includes a string in the body. If it does it should open another window. I am not familiar with JS and i dont wanna go about learning it for this script only. Could anyone point me at the right direction ?

much obliged

C.
 
If you don't mind using frames or iframes, and the target page is in the same domain as yours, you could use frames and simply check their innerHTML property.

If the file is in a different domain, your best bet is to use AJAX to return the page content to you as a string, and parse that.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
iframe no, ajax maybe. i ll try to solve it with ajax then

thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top