Click to See Complete Forum and Search --> : Errors in logfile: javascript chromeless window


gerbrand
04-21-2003, 07:40 AM
I created a website (www.tush.nl) that makes use of a javascript for a chromeless window. Everything seems to work well, bu when I check the log file I see that an error line is generated every time a user opens the site.
The following line is generated:

'File does not exist: /home/httpd/vhosts/tush.nl/httpdocs/document.location'

It seems to be a problem with the javascript. I attached the script to this message. Can anyone help me?

Thanks
Gerbrand

DrDaMour
04-21-2003, 08:43 AM
You have the line

<object type=text/html data=document.location id=pages></object\>


I have no idea what it's doing for you, but maybe it needs to be window.location but i doubt taht will work. Since it's in a string it would seem taht you are loading a text/html file name document.location, when you probably meant to load the document.location javascript object.

in which case that line would need to abe changed to

'<object type=text/html data=' + document.location + 'id=pages></object\>