PDA

View Full Version : Linking to Javascript routines


Cugel
09-10-2004, 04:22 AM
Hi

Is it possible to link to an external Javascript source? The web page I am placing the guestbook on has an animated part which need to pick up mouse locations. As the guestbook is being displayed in a frame, I need a javascript to be running to send the mouse details back to the parent. I have tried adding this by including the appropriate code in the HTML view of the guestbook settings, but although the code seems to be accepted, when I view the guestbook I get a "permission denied" error. What I don't know is if that is a fault with the guestbook, or with my web host not allowing remote linking to the file. Any thoughts?

Cheers
Cug

Cugel
09-10-2004, 06:21 AM
Hmmm. I'm guessing it's not a remote linking issue. The JS file was only small, so I pasted it directly into the HTML for the guestbook settings. Still doesn't work - permission denied.
I think I'll do a couple of basic tests to confirm this.

Cugel
09-10-2004, 06:24 AM
Hmm. It's not blocking Javascript - I changed the forum to have a simple Javascript alert, and that worked fine.
Back to the drawing board then to try and work out what is actually causing the problem. Maybe it's sending parameters to the parent that is causing problems?

Cugel
09-10-2004, 06:32 AM
The problem seems to be in retrieving a variable from the parent - I get a permission denied. Not sure what is causing that problem.