View Full Version : iframes displaying content from other domains
davebeseke
12-13-2005, 01:37 AM
I have run into a problem trying to reposition the scrollbar on a page that displays content from a different domain within an iframe. I've attempted to resolve it by using Javascript, but I found out that javascript will not execute across domains. Does Perl script execute across domains? Is there some other way to reposition the scrollbar to the top of the browser when the content inside the iframe is from a different domain?
mlseim
12-13-2005, 04:49 AM
Give us a link (example) of the script you are running.
... and give us a link to a static page that has the scrollbar
at the top (using Javascript). I'm trying to figure out what
you mean by "scrollbar at the top".
davebeseke
12-18-2005, 02:31 PM
It's not a scrollbar at the top, I'm trying to get the page to scroll back to the top (beginning) of the page. I don't have a working script - I originally intended to do this in Java but found out that Javascript won't execute across domains. My question was whether Perl would execute across domains and if it could be used to scroll a form back to the top.
mlseim
12-18-2005, 04:23 PM
Perl can read an HTML file from another domain, or grab an image
from another domain, but it can't execute another Perl script in
another domain.
Using a module like: lwp:simple
http://www.google.com/search?q=lwp%3Asimple&btnG=Search
I'll have to experiment with the Javascript thing. I think it might work.
FishMonger
12-18-2005, 05:37 PM
it can't execute another Perl script in another domainUnless you can connect to the server in the other domain via ssh.
http://search.cpan.org/~ivan/Net-SSH-0.08/SSH.pm
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.