473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem with firefox

I tried to post this message before but didn't see it. In firefox, an
OnClick event handler for the codebehind class is not being call on an
asp:ImageButton. It works fine in i.e.? Any ideas?

Nov 19 '05 #1
12 3018
Yes, and it it seems to work on some pages, but something about this
form causes it to choke in firefox.

Nov 19 '05 #2
Is JavaScript turned on?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

<je******@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
I tried to post this message before but didn't see it. In firefox, an
OnClick event handler for the codebehind class is not being call on an
asp:ImageButton. It works fine in i.e.? Any ideas?

Nov 19 '05 #3
Jeff I gave a possible answer in your other thread...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
<je******@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Yes, and it it seems to work on some pages, but something about this
form causes it to choke in firefox.

Nov 19 '05 #4
Yes, and it it seems to work on some pages, but something about this
form causes it to choke in firefox.

Nov 19 '05 #5
Jeff I gave a possible answer in your other thread...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
<je******@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Yes, and it it seems to work on some pages, but something about this
form causes it to choke in firefox.

Nov 19 '05 #6
Karl, I can't find the other thread, it seems to have disappeared. One
additional note is that the pages seem to work fine if I have the
appropriate image for the imagebutton, if not it chokes when you click
on the alternate text. I imagine I am clicking outside of the control
region so it breaks the internal event wiring code in asp.net?

Is this a none issue with firefox and does anyone know the internals on
how asp.net maps an input click to an eventhandler. Is it from the
form parameter x and y coordinates because there are no eventarg params
for an onclick event for a form.

Nov 19 '05 #7
Karl, I can't find the other thread, it seems to have disappeared. One
additional note is that the pages seem to work fine if I have the
appropriate image for the imagebutton, if not it chokes when you click
on the alternate text. I imagine I am clicking outside of the control
region so it breaks the internal event wiring code in asp.net?

Is this a none issue with firefox and does anyone know the internals on
how asp.net maps an input click to an eventhandler. Is it from the
form parameter x and y coordinates because there are no eventarg params
for an onclick event for a form.

Nov 19 '05 #8
its an asp.net bug

first the imagebutton does not use javascript. but asp.net does have a bug
in handling the postback of an image button when the enter key is pressed
instead of being clicked on.

the w3c spec says when an image button is clicked, in addtion to the value
being submitted, the x and y coordinates inside the image are passed (so the
button can be used as an imagemap).

take the following html

<input type=image src=myimg.gif value=1 name=mysubmit>

if you clicked on the upper right corner, then the browser sends:

mysubmit=1&mysubmit_x=1&mysubmit_y=1

now if you hit enter most browsers (but not IE) send

mysubmit=1

so if you are concerned where the user clicked, you know they didn't, but IE
sends

mysubmit=1&mysubmit_x=0&mysubmit_y=0

asp.net has a bug where it renders the image button as:

<input type=image src=myimg.gif name=mysubmit>

(no value attribute is rendered) so the click from above sends

mysubmit_x=1&mysubmit_y=1

and an enter press sends:

mysubmit_x=0&mysubmit_y=0 in IE

while in other browsers, no values for the image are posted at all.

asp.net is looking for the x or y value, doesn't see it and therefore can
not do the onclick dispatch. as an aside, the same behavior occurs if images
are not rendered (turned off by the user).

-- bruce (sqlwork.com)
<je******@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
| I tried to post this message before but didn't see it. In firefox, an
| OnClick event handler for the codebehind class is not being call on an
| asp:ImageButton. It works fine in i.e.? Any ideas?
|
Nov 19 '05 #9
its an asp.net bug

first the imagebutton does not use javascript. but asp.net does have a bug
in handling the postback of an image button when the enter key is pressed
instead of being clicked on.

the w3c spec says when an image button is clicked, in addtion to the value
being submitted, the x and y coordinates inside the image are passed (so the
button can be used as an imagemap).

take the following html

<input type=image src=myimg.gif value=1 name=mysubmit>

if you clicked on the upper right corner, then the browser sends:

mysubmit=1&mysubmit_x=1&mysubmit_y=1

now if you hit enter most browsers (but not IE) send

mysubmit=1

so if you are concerned where the user clicked, you know they didn't, but IE
sends

mysubmit=1&mysubmit_x=0&mysubmit_y=0

asp.net has a bug where it renders the image button as:

<input type=image src=myimg.gif name=mysubmit>

(no value attribute is rendered) so the click from above sends

mysubmit_x=1&mysubmit_y=1

and an enter press sends:

mysubmit_x=0&mysubmit_y=0 in IE

while in other browsers, no values for the image are posted at all.

asp.net is looking for the x or y value, doesn't see it and therefore can
not do the onclick dispatch. as an aside, the same behavior occurs if images
are not rendered (turned off by the user).

-- bruce (sqlwork.com)
<je******@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
| I tried to post this message before but didn't see it. In firefox, an
| OnClick event handler for the codebehind class is not being call on an
| asp:ImageButton. It works fine in i.e.? Any ideas?
|
Nov 19 '05 #10
Thanks for the reply Bruce. The images appear to solve the problem for
now.

Nov 19 '05 #11
Thanks for the reply Bruce. The images appear to solve the problem for
now.

Nov 19 '05 #12
Jeff, I realize your answer has now been answered in this thread, but here's
my original reply:

-->
You didn't provide us with much detail (like sample code), but there is a
known bug in FireFox 1.0/ASP.Net where, if you leave the ImageUrl blank,
postback
won't fire.
https://bugzilla.mozilla.org/show_bug.cgi?id=258621

So this is assuming you aren't specifying an image...
<--

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
<je******@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Karl, I can't find the other thread, it seems to have disappeared. One
additional note is that the pages seem to work fine if I have the
appropriate image for the imagebutton, if not it chokes when you click
on the alternate text. I imagine I am clicking outside of the control
region so it breaks the internal event wiring code in asp.net?

Is this a none issue with firefox and does anyone know the internals on
how asp.net maps an input click to an eventhandler. Is it from the
form parameter x and y coordinates because there are no eventarg params
for an onclick event for a form.

Nov 19 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: tagdance | last post by:
Hello friends, I have a very interesting problem with my css files and firefox - I guess ! Listen: I have set up my new website www.tagdance.de For testing purpose I have mirrored this...
7
by: Merlin | last post by:
Hi there, I have a serious problem with opening a new window with the help of JavaScript. The problem only occures with Firefox. Once you click on the item which fires up the open function, the...
3
by: cwdjrxyz | last post by:
I suggest that everyone using a recent version of Firefox read http://forums.mozillazine.org/viewtopic.php?t=315656&sid=b1db62861b8da29535c43e9c5c527c3b at once. This new security problem was...
13
by: Giggle Girl | last post by:
Hi there, I am having a problem with the behavior of Firefox, where lefthand column content is not resized properly after it is "collapsed" and then "re-expanded". An online demo is available...
7
by: Xah Lee | last post by:
Look at this page http://xahlee.org/emacs/wrap-url.html Look at it in Firebox, look at it in Safari, in Opera, and look at it in Microsoft Internet Explorer. The only fucked up case, is...
1
by: tinnews | last post by:
I'm running a python script via the apache ExtFilterDefine directive, it works basically as expected *except* that when I change the script apache/firefox continue to run the old version of the...
3
by: willyWEB66 | last post by:
Hi everyone, I'm having problem with the sequence of execution for xml.onload. It works fine if your not passing parameters to onload event but my code needs to pass parameter to its function. I'm...
8
by: Atemporal | last post by:
When I click the link of this group, it shows the followings errors. Cannot find comp.lang.c%2B%2B There is no group named comp.lang.c%2B%2B. * The link you followed may be broken or...
15
by: Mike Driscoll | last post by:
Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. ...
6
by: Dennis | last post by:
I am in the process of converting some program output from HTML to XML/XSLT. I have an XSL stylesheet that inserts some javascript in the output that gets called further down to pop up a window)....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.