Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: JavaScript Error: illegal URL method - an err msg from NN4


Message #1 by Douglas Chen <dchen@m...> on Thu, 12 Oct 2000 11:47:08 -0700
Hi guys,

I already figure it out. NN4 treats a stand alone file name with window.open
method as a local file specification. What a quirk. So using a whole URL
string would work fine.

Douglas

-----Original Message-----
From: Douglas Chen [mailto:dchen@m...]
Sent: Thursday, October 12, 2000 11:47 AM
To: javascript
Subject: [javascript] JavaScript Error: illegal URL method - an err msg
from NN4


Hello,

What I want to do is to run some server side code for cleaning job just when
a window is to be closed by clicking the window close button X. So I wrote a
line in the document like this:

<body
onUnload="window.open('cleanup.asp','CleanUp','width=200,height=200')">

It comes out that no new window is opened, and the err message from NN4
shows:

JavaScript Error: illegal URL method
'cleanup.asp'

Can anyone help me?

Douglas Chen


--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---


  Return to Index