Re: Mix of javascript, image and href
- From: "kferron" <kevin.ferron@xxxxxxxxx>
- Date: 15 Nov 2006 09:48:41 -0800
Just to touch on one of your issues, "I can manage this fine using
javascript but the href must contain a
character to get the mousehand. "
don't forget that most modern browsers support setting the div's style
to accomplish this:
<div style="cursor: pointer; cursor: hand;"
onclick="downloadnew(2);"><img src="myimagepath.jpg">
more text here
</div>
On Nov 15, 9:24 am, Laurent Bugnion <galasoft...@xxxxxxxxxx> wrote:
Hi Edwin,
Edwin Knoppert wrote:
Thanks Laurent,time that you use a control with autopostback = true (for example
I see that there is no trivial way for this.
I understand one can use code to simulate clickevents but imo it's more
reliable to use a button under the hood then.I don't really think that it's more reliable. For the records, every
checkboxes, radio buttons, listboxes...), in fact every time you use
anything else than a HTML submit or a HTML image to submit the form, the
_doPostBack method is used. I think it works pretty well, except when
JavaScript is off.
It's always the struggle between small sophisticated code and having
reliable code :)
I somewhat agree on the imagebutton, i do no longer need the click event forclient-side code that works. If the generated HTML code produced by
this one but still asp.net image control 's ~/ stuff is recommended to use
imo.
(Just another control that is)Not sure about the recommendation... I think that what you need is
ASP.NET is not reliable enough, then you can generate your own :-)
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:http://www.galasoft-LB.ch
Private/Malaysia:http://mypage.bluewin.ch/lbugnion
Support children in Calcutta:http://www.calcutta-espoir.ch
.
- Follow-Ups:
- Re: Mix of javascript, image and href
- From: Edwin Knoppert
- Re: Mix of javascript, image and href
- References:
- Mix of javascript, image and href
- From: Edwin Knoppert
- Re: Mix of javascript, image and href
- From: Laurent Bugnion
- Re: Mix of javascript, image and href
- From: Edwin Knoppert
- Re: Mix of javascript, image and href
- From: Edwin Knoppert
- Re: Mix of javascript, image and href
- From: Laurent Bugnion
- Re: Mix of javascript, image and href
- From: Edwin Knoppert
- Re: Mix of javascript, image and href
- From: Laurent Bugnion
- Mix of javascript, image and href
- Prev by Date: Editing a page in VS 2005 - add a control and it's not in the code behind.
- Next by Date: Re: Handling Post Request
- Previous by thread: Re: Mix of javascript, image and href
- Next by thread: Re: Mix of javascript, image and href
- Index(es):
Relevant Pages
|