HighDots Forums  

Getting HTML page from JavaScript link?

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Getting HTML page from JavaScript link? in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian
 
Posts: n/a

Default Getting HTML page from JavaScript link? - 08-15-2004 , 10:15 PM






Hi, I visit a web site that has popup windows which provide data.
(That is, you click a link on the page to get a popup of data).
An example in the source is: javascript:session_info('10022573','','73')

Is there any way to get this data WITHOUT physically clicking
the link? I was hoping I could somehow create an URL from the
'10022573' part above, but it doesn't seem to be. Any ideas?




Reply With Quote
  #2  
Old   
Mark Parnell
 
Posts: n/a

Default Re: Getting HTML page from JavaScript link? - 08-15-2004 , 10:27 PM






On Mon, 16 Aug 2004 13:15:34 +1000, Brian <dkhfuu (AT) 8jhc3z (DOT) com> declared
in 24hoursupport.helpdesk,alt.comp.lang.javascript,al t.html:

Quote:
Is there any way to get this data WITHOUT physically clicking
the link?
You'd have to look at the source of the script that it uses. How easy it
will be to find depends on the site (how many Javascript files they
have) and the script itself.

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf 2004


Reply With Quote
  #3  
Old   
Dan Abrey
 
Posts: n/a

Default Re: Getting HTML page from JavaScript link? - 08-16-2004 , 09:21 AM




"Brian" <dkhfuu (AT) 8jhc3z (DOT) com> wrote

Quote:
Hi, I visit a web site that has popup windows which provide data.
(That is, you click a link on the page to get a popup of data).
An example in the source is: javascript:session_info('10022573','','73')

Is there any way to get this data WITHOUT physically clicking
the link? I was hoping I could somehow create an URL from the
'10022573' part above, but it doesn't seem to be. Any ideas?
Post a link to the site.




Reply With Quote
  #4  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Getting HTML page from JavaScript link? - 08-16-2004 , 09:22 AM



On Mon, 16 Aug 2004 13:27:32 +1000, Mark Parnell
<webmaster (AT) clarkecomputers (DOT) com.au> wrote:

Quote:
Is there any way to get this data WITHOUT physically clicking
the link?

You'd have to look at the source of the script that it uses.
That's the long and "correct" way.

But if you click on the link, then look at the properties of the
pop-up window that's returned, you will usually find it has a URL
that's an obvious mapping from the magic number.

--
Smert' spamionam


Reply With Quote
  #5  
Old   
Dan Abrey
 
Posts: n/a

Default Re: Getting HTML page from JavaScript link? - 08-16-2004 , 09:33 AM




"Andy Dingley" <dingbat (AT) codesmiths (DOT) com> wrote

Quote:
On Mon, 16 Aug 2004 13:27:32 +1000, Mark Parnell
webmaster (AT) clarkecomputers (DOT) com.au> wrote:

Is there any way to get this data WITHOUT physically clicking
the link?

You'd have to look at the source of the script that it uses.

That's the long and "correct" way.

But if you click on the link, then look at the properties of the
pop-up window that's returned, you will usually find it has a URL
that's an obvious mapping from the magic number.
Although the URL given each time may well be different if the site uses
sessions.




Reply With Quote
  #6  
Old   
Brian
 
Posts: n/a

Default Re: Getting HTML page from JavaScript link? - 08-16-2004 , 02:45 PM



Andy Dingley wrote:

Quote:
But if you click on the link, then look at the properties of the
pop-up window that's returned, you will usually find it has a URL
that's an obvious mapping from the magic number.
Thanks Andy, that worked! FYI, here is a typical web page link:

javascript:session_info('10049538',1,73)

And the properties for the popup window it displays are:

http://www.yourtv.com.au/guide/index...vent_id=100495
38

One can clearly see the link (pun intended) between the two items.
This will make it easier for me to get the data without a physical click.





Reply With Quote
  #7  
Old   
data64
 
Posts: n/a

Default Re: Getting HTML page from JavaScript link? - 08-17-2004 , 07:16 AM



Since you seem to be trying to download TV listings, have you looked at
the XmlTV project ? <http://membled.com/work/apps/xmltv/>

It is an Open Source project to do just that. I use it along with
FreeGuide <http://freeguide-tv.sourceforge.net/>

data64


Reply With Quote
  #8  
Old   
data64
 
Posts: n/a

Default Re: Getting HTML page from JavaScript link? - 08-17-2004 , 08:07 PM



<plug>http://tobyinkster.co.uk/tv2html</plug>

Nice. I am going to play with that tonight.

thanks,
data64

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.