PDA

View Full Version : Retreiving a section of a web page


Solihull
09-19-2002, 11:34 PM
I'm trying to retreive a section of a web page and display it in a pop-up window.

The page from which I need to retreive the section is not mine. It is however a page which is generally available on the web.

I have been told that this can only be achieved as a result of using server side scripts.

Can anyone offer any guidance and or a script that will allow me to achieve this?

:)

Alex Vincent
09-20-2002, 02:54 AM
You could include the entire document via a popup window with the window.open() command in JavaScript, but you could not edit it or extract anything. The best you'll be able to do is hopefully find a target (a name="myTarget"></a>) and use that target in the URI (adding "#myTarget" to the URI before any question marks, but after everything else).

Solihull
09-20-2002, 05:04 PM
I'm not trying to extract or retreive anything from the web page. I mearly want to frame a part of the page excluding all the other parts I don't want to see.

Is this possible?

Alex Vincent
09-21-2002, 01:47 AM
No, I don't believe that's possible in JavaScript, as you describe it to me. Even with security clearances, you'd still have to download the whole page. Better for a server-side script to download the page as it updates (say, every six hours), create a localized copy of it, and serve the parts of the local copy that matter.

What server-side language would you like to use? PHP, Perl, or another language? That will determine where I or a super-mod should move this thread, so you can get an effective answer. :)

Solihull
09-21-2002, 03:32 AM
I think ASP would be the ptrferred solution - is that possible?:)

Alex Vincent
09-22-2002, 09:01 PM
ASP guys, this is your boat now.

glenngv
09-23-2002, 01:48 AM
http://www.4guysfromrolla.com/webtech/040600-1.shtml