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

ItemClick method not hit using Firefox 4

2 Answers 36 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Fred Parcells
Top achievements
Rank 1
Fred Parcells asked on 31 Mar 2011, 04:58 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 01 Apr 2011, 02:05 PM
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
0
Fred Parcells
Top achievements
Rank 1
answered on 01 Apr 2011, 05:27 PM
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
Tags
Rotator
Asked by
Fred Parcells
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Fred Parcells
Top achievements
Rank 1
Share this question
or