Page 1 of 1
Read text from another frame
Posted: Wed Aug 20, 2003 3:31 pm
by oscarr
Hi, is it possible to get information from another frame, or somehow save the contents of the frame to a text file?
What i have is a script in the topfram wich posts an external script and return the result in the main fram. And i want to get the text from the result and use it in the script.
Is it possibel?
Re: Read text from another frame
Posted: Wed Aug 20, 2003 10:17 pm
by junrey
hello,
oscarr wrote:Hi, is it possible to get information from another frame, or somehow save the contents of the frame to a text file?
What i have is a script in the topfram wich posts an external script and return the result in the main fram. And i want to get the text from the result and use it in the script.
Is it possibel?
things like that is possible, maybe, depends on how you deal with it. You can use a lot of Javascript in that. Most browsers have different specifications as so with accessing those specifications with Javascript. So not all of your codes would work on different browsers.
If it would just be used as an internal application of your company and you have to use a standard browser then you can develop for that browser alone. Although there are codes out there to be able to work with different browsers but it would still be hard to tell though.
Ive got some idea of your problem. You have to have a form and submit that form, after filling the contents of that form from a different frame, through javascript so that the data would be posted and processed by the script.
You've got to use some javascript codes for that.
Regards,
Junrey
Posted: Wed Aug 20, 2003 10:42 pm
by trollll
You could (assuming the page won't alter databases or files when it loads) just have a script that would know the location of that frame and then read in the output through a socket connection to the full url (fsockopen, i think) and then use the contents from that read to alter whatever you need. You'd just have to parse the html to get what you want out of it...
Hope this helps!
