Closed Thread Icon

Topic awaiting preservation: what gives Pages that link to <a href="https://ozoneasylum.com/backlink?for=26599" title="Pages that link to Topic awaiting preservation: what gives" rel="nofollow" >Topic awaiting preservation: what gives\

 
Author Thread
NeoNeo
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2005

posted posted 09-07-2005 23:25

I have a simple js function. To simple to even display.

When I have this function directly on a jsp it works fine;
but when I move the function to a .js file, and include the import for the .js file on the jsp, i run into problems...

When i hit the function I get a runtime error.
Stating that the object doesn?t support this property or method,

What are possible reasons for this??

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-08-2005 01:23

how bout going ahead and posting the script and the way that you are including it in the file.

Later,

C:\

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

posted posted 09-08-2005 11:20

It does sound like you've not linked to the file correctly, have you double checked your paths and case?

Cheers,

BillyRayPreachersSon
Bipolar (III) Inmate

From: London
Insane since: Jul 2004

posted posted 09-08-2005 16:01

Make sure you don't include the <script> tags in the .js file - they are not needed, and will cause errors.

Dan

NeoNeo
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2005

posted posted 09-09-2005 01:43

Newbee to javascript... and I overlooked that the jsp that had the function directly on the page was contained in an iframe. When I moved the js function to a js file the same script was used by the jsp page containing the iframe.

code:
function displayWindow(url, width, height)
{
     parent.displayWindow(url, width, height);
}

« BackwardsOnwards »

Show Forum Drop Down Menu