PDA

View Full Version : Help with some scripting


steverz
11-25-2006, 10:20 PM
Not sure how to explain this so let me type out a little example of what I am looking for:

Say I have two files:
1. index.html
2. other.html

I need a script that will be able to run and loop through the HTML of other.html by initiating a script from index.html or even a .vbs file.

I thought I could use Set objIE = CreateObject("InternetExplorer.Application") and somehow set the source URL then use something like objIE.document.innerHTML to reference that page.

Please share any ideas with me as I am having a memory block and can't think of any way to get started. Thank you!

Jon Hanlon
11-28-2006, 04:50 PM
There is no capacity for opening an external file for reading in the browser.
You can process the file using the File System Object (FSO)
http://msdn.microsoft.com/library/en-us/script56/html/af4423b2-4ee8-41d6-a704-49926cd4d2e8.asp?frame=true
Or inside the browser by placing the other file in a frame or Iframe.