$find() not working in firefox 4?

6 posts, 0 answers
  1. cayates
    cayates avatar
    71 posts
    Member since:
    Feb 2007

    Posted 12 Apr 2011 Link to this post


    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!
  2. Helen
    Helen avatar
    1052 posts

    Posted 15 Apr 2011 Link to this post

    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,
    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.

  3. Ricard Bertran Vall
    Ricard Bertran Vall avatar
    18 posts
    Member since:
    Sep 2009

    Posted 30 Dec 2011 Link to this post

    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.

  4. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 03 Jan 2012 Link to this post

    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
  5. Kate
    Kate avatar
    1898 posts

    Posted 05 Jan 2012 Link to this post

    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?  

    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
  6. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 05 Jan 2012 Link to this post

    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
Back to Top