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

Not get RadCombox object in javascript in IE6

4 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 17 Mar 2009, 11:12 AM
Hi,
I am using RadControls for ASPNET AJAX Q2 2008.
I am using radcombobox.
On button click i am calling javascript function.

Function  work in IE7 .
But in IE6 it gives me error.
It does not get object in IE6.

 

var combo = $find("<%= RadCombobox1.ClientID %>");
Here value of combo is null in IE6

How can i solve this problem?

Thanks.

 

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Mar 2009, 12:28 PM
Hello Hrushikesh,

I tried to reproduce the depicted issue, but unfortunately without avail. Please examine the attached screenshot, illustrating the behavior on my end.

RadControls for ASP.NET AJAX Q2 2008 (2008.2.723)

<script language="javascript" type="text/javascript"
    function test() 
    { 
        var combo = $find('<%= RadComboBox1.ClientID %>'); 
        alert(combo.get_id()); 
    } 
</script> 
 
<input type="button" value="Get ComboBox object" onclick="test()" /> 
<telerik:RadComboBox ID="RadComboBox1" runat="server" /> 

Best regards,
Daniel
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hrushikesh Mokashi
Top achievements
Rank 1
answered on 18 Mar 2009, 06:40 AM
Hi,

When i call javascript function from button onclientclick event it works.

 
I am using master and content page , Radajaxmanager and RadAjaxMangerproxy

I am calling the javascript from serverside button  click event

RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("Test()");"

Thanks


 

0
Veselin Vasilev
Telerik team
answered on 18 Mar 2009, 01:05 PM
Hello Hrushikesh Mokashi,

Please use the correct casing (Test() vs. test())

If it does not help - please open a support ticket and send us a small and running project which demonstrates the issue. We will debug it and find the problem.

Greetings,
Veselin Vasilev
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
mark
Top achievements
Rank 1
answered on 26 Aug 2009, 11:01 PM
Hi All,

I know this is an old thread however, I have been dragged into this, We have a customer that refuses to move to IE7

    I have discovered the following (which is similar to above sections in this thread)

this works in both IE6 &IE7
var

 

cb = $find('<%= RadComboBoxSites1.ClientID %>'); 

 

and this only works in IE7
var

 

cb = $find("<%= RadComboBoxSites1.ClientID %>");

I would be grateful if someone could shed some light on this (incidently this is  version Q12009  of telerik controls )

Thanks
Mark

 

Tags
General Discussions
Asked by
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Hrushikesh Mokashi
Top achievements
Rank 1
Veselin Vasilev
Telerik team
mark
Top achievements
Rank 1
Share this question
or