in reply to How can i catch the values within iframe tag using perl

<iframe> tags work by opening a nested page of another source, within a document, not within a frame set, but more like an embeded object (like an image). This particular one is getting it's location from a javascript. In general what you want can't be done 'correctly' without having a javascript interpreter in your script. But this one's tougher.

Since the source of the iframe in this page is not hard coded, or even calculated, but instead the contents of the iframe is overwritten by assigning to the browser objects representing it. I can't see it being done In any way other than writing a limited javascript interpreter.

You'll probably be better off obtaining a book or reading some tutorials on javascript, in attempts to translate the code to perl, or use a browser in some odd way (varies widely to wildly depending on your OS of choice) for it's builtin javascript capabilities.

-nuffin
zz zZ Z Z #!perl

Replies are listed 'Best First'.
Re: Re: How can i catch the values within iframe tag using perl
by bart (Canon) on Nov 18, 2002 at 01:10 UTC
    I can't see it being done In any way other than writing a limited javascript interpreter.
    Apropos this rather bizarre route: I noticed that there is a JavaScript interpreting module on CPAN. I haven't actually even tested it, but it might be worth a look. >P>It appears to be an interface to a JavaScript interpreter from <mozilla.org>.

    Oh, and on first sight it looks it's barely even documented, but if you go to the "browse" section, you'll see a "JavaScript.pod" file there. Apparently, the tiny bit of POD in the .pm file has confused <search.cpan.org>. Plus: if you scroll down in the page with the files listing, there's a plain text version at the bottom of the page.