Getting HTML page from JavaScript link?

B

Brian

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?
 
M

Mark Parnell

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.
 
D

Dan Abrey

Brian said:
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.
 
A

Andy Dingley

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.
 
D

Dan Abrey

Andy Dingley said:
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.
 
B

Brian

Andy said:
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.cfm?action=session_info&event_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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top