This is a migrated thread and some comments may be shown as answers.

Checking for javascript function on other page

2 Answers 36 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 09 Jul 2011, 11:01 AM
Hi

I want to read a function(javascript) on another page.
I'm getting error if that function dnt exists..
how can i check whether that function is available or Not.......................

Code : 
 var AllArray = oActive.GetContentFrame().contentWindow.getDocTypeSeriesNo();

oActive -  contains the ref of window.
getDocTypeSeriesNo - javascript function on other page.....


How ca i achieve this....

 

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Jul 2011, 02:12 PM
Hi Sunil,

Could you please provide more details on your setup and logic? What is the code of the getDocTypeSeriesNo() function (does it return anything?) and are both content and parent pages in the same application?


Kind regards,
Georgi Tunev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Sunil
Top achievements
Rank 1
answered on 25 Jul 2011, 10:26 AM
thanks..
right now i'm managing using try catch....

Tags
Window
Asked by
Sunil
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Sunil
Top achievements
Rank 1
Share this question
or