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

$find() not working in firefox 4?

5 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
cayates
Top achievements
Rank 1
cayates asked on 12 Apr 2011, 11:45 PM
Hello,

I have same javascript that uses $find which was working fine in Chrome / IE and I just tested it in Firefox 4 however $find() is returning null.  Here is the line of javascript code:

var tab = $find("<%=LookupTabs.ClientID%>").get_selectedTab();

Firefox is giving this error:

Error: $find("ctl00_ctl00_mainContent_pretrialContent_LookupTabs") is null
Source File: http://localhost:6444/CJIS/Pretrial/Lookup.aspx?NewInterview=2034111
Line: 164

However, again, it works fine in IE and Chrome.

Any suggestions?  Thanks!

5 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 15 Apr 2011, 04:52 PM
Hello Chris,

The problem you experience is really strange.
Could you please send us a sample project which demonstrates the issue to examine it locally?

Kind regards,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Ricard Bertran Vall
Top achievements
Rank 1
answered on 30 Dec 2011, 12:55 PM
Hello, I had the same problem and I found out that there was a previous JavaScript error in FireFox but not in IE or Chrome.
Once JavaScript error in FireFox was solved, function $find worked again as usual.

I hope it helps.

0
Elliott
Top achievements
Rank 2
answered on 03 Jan 2012, 03:44 PM
I upgraded a project from .NET 2.0 to .NET 3.5 - and my $find statements were returning null as well - in IE as well as Mozilla
different behavior
in the item selected event handler function the finds for 2 Rad textboxes:
if the function was called from another function which itself was an event handler for a button they returned null
if it was called from the user actually selecting a row it worked fine
0
Kate
Telerik team
answered on 05 Jan 2012, 02:41 PM
Hi Marianne,

Can you please provide some markup and the javascript event handler that you are using so we can inspect it locally and determine why you are not able to find the needed controls/element?  

Greetings,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Elliott
Top achievements
Rank 2
answered on 05 Jan 2012, 03:07 PM
I was mixing RadAjaxManager with RadUpdatePanels
the problem is bigger than just not finding testboxes on the client and I opened a ticket which is being worked on
Tags
General Discussions
Asked by
cayates
Top achievements
Rank 1
Answers by
Helen
Telerik team
Ricard Bertran Vall
Top achievements
Rank 1
Elliott
Top achievements
Rank 2
Kate
Telerik team
Share this question
or