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

Javascript Runtime Error

3 Answers 21 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Amish
Top achievements
Rank 1
Amish asked on 12 Jan 2010, 10:41 PM
I am running into a Javascript runtime error - Object doesn't support this property or method - while trying to use the radopen function. Here is the code snippet:

 

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>    
 
 
   
<script type="text/javascript">    
 
function openWin()    
{   
 
 
 
    var oWnd = window.radopen("/Checkout/FindDistributorPopup.aspx"null);    
}  
 
 </script>  
 
 
 

I am trying to call this JS function on a button's onclick event:

<button onclick="openWin();">Search for Distributor</button>

 

 

 

Thanks in advance for your help.

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 13 Jan 2010, 08:03 AM
Hi Amish,

You have to add a RadWindowManager to your aspx page to avoid this error:
aspx:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
</telerik:RadWindowManager> 

Thanks
Princy.
0
Amish
Top achievements
Rank 1
answered on 13 Jan 2010, 02:29 PM
Hi Princy,

It worked! Thank you.

Amish
0
Mark Galbreath
Top achievements
Rank 2
answered on 13 Jan 2010, 02:52 PM
I do this a lot and have never used the RadWindowManager.  I wrap the Javascript in RadScriptBlocks, though.

Cheers!
Mark
Tags
Ajax
Asked by
Amish
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Amish
Top achievements
Rank 1
Mark Galbreath
Top achievements
Rank 2
Share this question
or