Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > exist
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 16th March 07:37
ferry lagarde
External User
 
Posts: 1
Default exist


hello is it possibleto to test if there a javascript function exist in a
other frame?
  Reply With Quote


  sponsored links


2 16th March 07:37
joe fawcett
External User
 
Posts: 1
Default exist


Assuming your other frame is named "fraMain" and the function is named
fnTest then:
if (top.frames.fraMain.fnTest)
should do it, alternatively:
if (topframes["fraMain"]["fnTest"])

--

Joe
  Reply With Quote
3 16th March 07:38
steve fulton
External User
 
Posts: 1
Default exist


If you want to be sure 'fnTest' is actually a function and not some other
object:

if (typeof top.frames.fraMain.fnTest == "function")

--
Steve

When a person can no longer laugh at himself, it is time for others to laugh at
him. -Thomas Szasz
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666