Log in

View Full Version : php and javascript



gibbs
07-27-2006, 10:45 AM
hi there,

i'm trying to use javascript to scroll a php page inside an iframe, when i test the script on a html page it scrolls beautifully, however the php page will not scroll. i have echoed out the javascript and when you view source the page looks exactly the same as the pure html version, so i'm at a loss as to what's gone wrong! can anyone think of anything obvious to try, as far as i know i should work.

cheers!

gibbs
07-27-2006, 10:52 AM
proper php version which does not work
http://www.gibbsfordloutsis.plus.com/dots00.html

html mockup of the same content which does work]
http://www.gibbsfordloutsis.plus.com/dots01.html

nb: some, more sensitive, folk may find the content of these pages offensive because currently it is just me ranting and typing gobeldegook ;)

nekng
07-27-2006, 06:13 PM
i'm not 100% sure about this, but shouldn't the php page be dots00.php

Twey
07-27-2006, 06:49 PM
uncaught exception: Permission denied to get property Window.scrollspeedThe problem is that the page in the iframe is on a different domain. Move it to your server, and it will all be fixed.

gibbs
07-28-2006, 04:41 PM
spot on thankyou very much!!! :)