Function Exists -- Parent Window

C

crazy_nelly

To validate that a function exists on the page, one must simply use the
syntax:
if ( window.funcName ) //...

However, the same syntax does not seem to work when attempting to validate
that a function exists on a parent window of a popup.

if ( window.opener.funcName ) //...

Is there a syntax that works for this? I've tried everything I can think
of. TIA~ PJ
 
L

Lasse Reichstein Nielsen

crazy_nelly said:
However, the same syntax does not seem to work when attempting to validate
that a function exists on a parent window of a popup.

if ( window.opener.funcName ) //...

It should. Try again! :)
Seriously, you fail to say how you test it and how it fails. Does it
give false positives or false negatives?
Is there a syntax that works for this? I've tried everything I can think
of.

This should work, if the code is correct. Show us the code (just a link
to a page that shows the problem would be fine), and we'll see if we can
find the bug.

/L
 
C

crazy_nelly

Sorry, the page is not published yet and the site is not publically
accessible.

I found my issue...the function was inside the closing bracket of the
function b4 it. doh!

Thanks~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top