wsjb78
08-26-2003, 08:26 AM
Is there a way JS can read out the content of another frame window into a variable (if the source URL of that frame site is not known)?
|
Click to See Complete Forum and Search --> : Read Frame Content wsjb78 08-26-2003, 08:26 AM Is there a way JS can read out the content of another frame window into a variable (if the source URL of that frame site is not known)? AdamBrill 08-26-2003, 10:32 AM Yes... the_var_name=top.framename.document.documentElement.innerHTML; wsjb78 08-26-2003, 11:15 AM Is it that simple? I have no idea regarding JS... I normally use PHP... Situation is the following: 1.) I load a page in a frame2 2.) I have PHP to autologin 3.) I get redirected to a page like www.domain.com/?sid=xyz 4.) Data is being displayed in that frame However I cannot access that data with a url with a non-valid sessionid so I have frame1 autoreloaded and hope to fetch the data with JS as you have supplied.... so if I can fetch the data in a variable I can then autosubmit this data to a PHP script where I can necessary processes start. Khalid Ali 08-26-2003, 11:18 PM don't see why you can't ..:-) wsjb78 08-27-2003, 03:23 AM Well, that seems to work but now I have to look for some JS to auto submit a form (and have it then handled by PHP to send me an SMS upon certain entries)... Thx for the help so far! You guys rock! AdamBrill 08-27-2003, 07:27 AM You could submit a form like this: top.framename.document.formname.submit(); Is that what you wanted? wsjb78 08-27-2003, 07:36 AM I guess that should do the trick... will try out today and tomorrow... thx for the help... if you need help regarding PHP let me know! AdamBrill 08-27-2003, 08:58 AM Originally posted by wsjb78 if you need help regarding PHP let me know! LOL, I know PHP. ;) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |