Framing/fetching a page and scrolling to specific location

bullet-ride

minor internet superstar
Jan 19, 2009
469
7
0
rox.jpg


rox2.jpg


I'm looking for a way of fetching/framing a page and (perhaps) using JS function scrollBy() to scroll to a certain position.

Someone recommended using a serverside proxy without other details.

Is this achievable? Anybody doing this? Any tips?
 


depends on what you want the user to do on the page/what the page contains. If it is very dynamic down to IP/browser level, serverside proxy wouldn't work too well.

But if it's just a simple LP/form you want them to fill out simplest level I can think of: php curl to fetch the page, edit on the fly as you see fit. Insert the scrollby() into the page if you want to.

Even simpler, if the page isn't dynamic at all, try to get a host & post agreement.

If you're trying to hide the fact you're doing this, you would need proxies. Otherwise your host's IP will be in their logs for all the leads. In that case, iframing it up would be the best bet (except that IE8 does not like cross-domain iframes and cookies, and will complain to the user about it)
 
Well, that's the problem, I don't know own it.

That makes it even more difficult because most modern browsers prevent XSS (cross-site-scripting).

I've even tried jquery on an iframe loading a page:

$(document).ready(function(){
$("#iframeID").attr('height', screen.height);
$("#iframeID").scrollBy(0,400);
});

No go, and no variants of it such as ScrollTo or ContentWindow.ScrollTo would work, now if the content were in a div with overflow on it, then you could scroll the div, but not all browsers like a iframe in a div, in a container in a window approach. :P plus you'd need some way to expand the iframe tall enough inside the div to make the div have enough room to scroll.