coder090
10-08-2002, 03:12 AM
Hi,
What I am trying to accomplish is to load a dynamically generated page (asp to be exact) and to have javascript evaluate the HTML that is output to the browser to determine if it contains a specific string I am looking for. If it doesn't, it will refresh it, wait to load, check to see if it contains the string, and if not repeat. It should do this infinately until the string is found and it will just stop and let the user take control and navigate as normal.
1) This page is an external site, so I will not be placing the JS within the actual page I am evaluting for the string.
2) Because of this, I think a frame set of 2 frames (one with my JS code and one for the external web site) would work. The JS would look at the other frame and control the refreshes based on the content it generates.
I am not a JS guru by any means, and I have looked all over for info on parsing html and controlling another frame and haven't found anything too valuable. Can I do it like I think I can?
Also, would it be easier to accomplish the same thing with VBscript (marcos)?
Please, if anyone can help me with some code, give me ideas, or just point me to some other reference, I would REALLY appreciate it.
Thank you for your time and insight!!!
J Berse
What I am trying to accomplish is to load a dynamically generated page (asp to be exact) and to have javascript evaluate the HTML that is output to the browser to determine if it contains a specific string I am looking for. If it doesn't, it will refresh it, wait to load, check to see if it contains the string, and if not repeat. It should do this infinately until the string is found and it will just stop and let the user take control and navigate as normal.
1) This page is an external site, so I will not be placing the JS within the actual page I am evaluting for the string.
2) Because of this, I think a frame set of 2 frames (one with my JS code and one for the external web site) would work. The JS would look at the other frame and control the refreshes based on the content it generates.
I am not a JS guru by any means, and I have looked all over for info on parsing html and controlling another frame and haven't found anything too valuable. Can I do it like I think I can?
Also, would it be easier to accomplish the same thing with VBscript (marcos)?
Please, if anyone can help me with some code, give me ideas, or just point me to some other reference, I would REALLY appreciate it.
Thank you for your time and insight!!!
J Berse