Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Reading from an ActiveX Object

by GaijinPunch (Pilgrim)
on Jul 08, 2008 at 05:47 UTC ( [id://696162]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Reading from an ActiveX Object
in thread Reading from an ActiveX Object

>>ActiveX is always client side See, that shows you how awful I am. :)

Already looked... definitely not there. Hence, I asked here. :) Even without speaking Japanese you can get the gist of the site. ActiveX Object loads, displays index. If you click one of the next or previous page links, only the ActiveX object updates... the page doesn't reload. The guts of the page are summed up in a few Javascript() routines. It sets start to increment * page number, checks the form for any newly selected checkboxes, then runs the following.
function change(url) { document.getElementById('RESULT').innerHTML = '<br><br><br><br +><br><br><br><center><img src="img/loading.gif"></center>'; Initialize(); if(req != null) { req.onreadystatechange = Process; req.open("GET", url,true); req.send(null); }; } // ------------------------------ // Initialize(ajax) // ------------------------------ function Initialize() { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch(oc) { req = null; } } if(!req && typeof XMLHttpRequest != "undefined") { req = new XMLHttpRequest(); } };
There's a little more to it than that, but that's generally it. I guess the idea would be to open the same ActiveX object with a Perl Module that my browser is opening?

Replies are listed 'Best First'.
Re^5: Reading from an ActiveX Object
by ChOas (Curate) on Jul 08, 2008 at 06:33 UTC
    This has not a lot to do with ActiveX itself.

    It's just an XMLHttpRequest which retrieves the page contained in 'url'.
    The activeX is only used in MS browsers, the other (imho normal browsers) will be using:
    req = new XMLHttpRequest();

    So... Find out what 'url' contains and use LWP::Simple or whatever to fetch the page...

    GreetZ!,
      ChOas

    print "profeth still\n" if /bird|devil/;
      Hmm... I started to go in that direction but it seemed like a dead end... I'll check a bit more.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://696162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-03-28 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found