Click to See Complete Forum and Search --> : access another page.
assuming i have "UniversalBrowserAccess"
how can i do something like this?
gw = window.open("http://www.Google.com");
top.window.document.text1.value = gw.document.f.bgnG.value; // gw just losses focus
my script is running off the drive and i want to be able to read and change
values in a web based window.
please help me.
Khalid Ali
06-13-2003, 03:39 PM
if you are loading an out of domain page either in your parent window or in child window or in any frames,there is no way as of this day to access the contents..Its browser security framework protection.
If the loaded page is served from your own webserver then you can access it as you mentioned.
my browser fills in forms for me. thats like what i want.
I need my program to take the place of a person. just look at the loaded page, and make decisions. maybe another language other than javascript?
Linas
06-13-2003, 04:00 PM
suggestion was to use ASP etc. Let me know how it goes. I also need to fill up the forms on the page created by someone else (off domain).
Linas:confused:
Khalid Ali
06-13-2003, 04:00 PM
Yep...java...vb...any other language that has more control over security will do it..
If you can upload to your site and run a php script, here is a simple solution.
The php gets the url and sends it to your second window.
(Personally I use a hidden iFrame here instead of a new window.)
An issue is to wait until the window/iFrame is loaded.
Here is an example using the window approach.
http://www.gypsytrader.com/temp/test.html
Here (attached) is a zip of the two files.
Linas
06-15-2003, 02:21 PM
Is there a simple script to open www.google.com, type in search string, and get the contents of the page with search results?
Linas:confused: