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

ActiveX is always client side - it is code that runs on your system. My Japanese is nonexistent so I can't easily determine what you are trying to retrieve. Try looking at the page source in your browser to see if the information you want is buried there somewhere.


Perl is environmentally friendly - it saves trees

Replies are listed 'Best First'.
Re^4: Reading from an ActiveX Object
by GaijinPunch (Pilgrim) on Jul 08, 2008 at 05:47 UTC
    >>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?
      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.