ItemClick method not hit using Firefox 4

3 posts, 1 answers
  1. Fred Parcells
    Fred Parcells avatar
    5 posts
    Member since:
    Oct 2009

    Posted 31 Mar 2011 Link to this post

    Codebehind click event gets hit in IE and Firefox 3 but not Firefox 4. I just upgraded Firefox from 3 to 4. Is this a javascript difference with Firefox 4? Seems Firefox 4 has also broken the convention of

     

     

    current.Request.ServerVariables[

    "HTTP_USER_AGENT"];
    Is anyone else having this click event problem?
    Thanks
    Fred

     

  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 01 Apr 2011 Link to this post

    Hello Fred,

    Based on the provided information I was not able to reproduce this behavior, on my end the event is fired in all browsers. You can find my test page attached and here is a video from my experiment in FF4: http://screencast.com/t/PcBsaRv3p7. The event is fired and the browser UA string identifies correctly. Am I missing something? Is your setup any different?

    Please make sure you are not cancelling the event or using some IE specific properties. If this is not the case send us a fully runnable project displaying the behavior along with detailed reproduction steps so we can investigate the issue.


    Regards,
    Marin
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fred Parcells
    Fred Parcells avatar
    5 posts
    Member since:
    Oct 2009

    Posted 01 Apr 2011 Link to this post

    For styling reasons i had wrapped the img in an a href:
                    <a href="/">
                        <img src="<%# Eval("ImagePath") %>"
                             width="<%# Eval("ImageWidth") %>"
                             height="<%# Eval("ImageHeight") %>"
                             border="0" alt="" />
                        <span class="buttonprodtypetext"
                              style="<%# Eval("CaptionPadding") %>">
                              <%# Eval("Caption") %>
                        </span>
                    </a>
    This was the problem but only in Firefox 4
    --
    The other issue:
    Firefox 4 breaking in this code in our errorLogging

                // Detailed browser info translations
                BrowserInfo bi = new BrowserInfo();

                // Pass in the HTTP user agent string
                bi.HttpUserAgent = current.Request.ServerVariables["HTTP_USER_AGENT"];

    We have a workaround for this
    Thanks for the prompt reply.
    Fred
Back to Top