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? 12 3013
Yes, and it it seems to work on some pages, but something about this
form causes it to choke in firefox.
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?
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.
Yes, and it it seems to work on some pages, but something about this
form causes it to choke in firefox.
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.
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.
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.
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?
|
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?
|
Thanks for the reply Bruce. The images appear to solve the problem for
now.
Thanks for the reply Bruce. The images appear to solve the problem for
now.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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.
...
|
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)....
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |