[thelist] JavaScript problem - favorite/bookmark(let)

databarn databarn at airmail.net
Sat Aug 4 18:52:46 CDT 2001


Oops!

Sorry, Hassan, the colon was a typo, it was (in my last effort, anyway) a quote in the test code.  Also, I typed in another error, by naming the title twice.  The revised code (pasted this time, not typed) is
~~~~~~~~~~~~~~~~~
[DEFAULT]
BASEURL=file://C:\WINDOWS\Desktop\webcam.htm

[InternetShortcut]
URL=javascript:window.open("http://barnsplace.com/barnsplace/webcam32/webcam.asp", "webcam","menubar=0,scrollbars=0,width=330,height=250,toolbar=0,location=0,directories=0,status=0");
Modified=60A331B1F89FC0013D

~~~~~~~~~~~~~~~~~

I quoted the URL as well as the rest and at least I got a new error.  No message, but the browser window (not resized, btw) now displays
[object]
which is not anything I've seen before.

I thought I had quoted all three segments before, but obviously I mis-typed something somewhere.  But still, there is not the desired result, which is a resized window with a specific page displayed.  If it makes any difference, the page to be displayed is an output page for a webcam, which is (assumption on my part) likely the cause of the "[object]" display in the browser now.

It still doesn't work, and while I have learned a few new things, I'm still not smart enough to fix it <whine />.

Make a good day . . .
			 . . . barn
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like Old Testament gods; lots of rules and no mercy.   - Joseph Campbell
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
_______________________________________
From:	Hassan Schroeder [hassan at webtuitive.com]
Time:	8/4/2001 at 5:50PM

(1) window.open() takes *three* params -- URL, name, options, and
    they must be quoted if they're literals;

(2) the second character from the end of the string should be a
    quote mark (") rather than a colon (:)




More information about the thelist mailing list