|
 |
aspx thread: RE: javascript form submission
Message #1 by Sam Clohesy <sam@e...> on Wed, 5 Feb 2003 13:15:42 -0000
|
|
Hi all- wonder if you can help- I am using a jscript alogrigthm to submit a
search form (in asp.net)- works fine except in some browsers where the form
will not submit. (treats button as link and just goes to #)
I am using this:
<a href="#" onclick="go()"><img src="/images/go_off.gif" name="Image67"
border="0" alt="" width="21" height="17"></a> to submit the form
I have checked jscript is turned on and security setting is medium (client
is running IE6 / Win2k- not sure if they are up to date with SP etc)
Can provide jscript if need be. Any help much appreciated- this is last
thing preventing sign off of project.
Cheers
Sam
Sam Clohesy
Project Manager
T: 0208 772 3958
E: samc@e...
W: http://www.etypemedia.co.uk
W: http://www.siteactive.net
Message #2 by Greg Griffiths <greg2@s...> on Wed, 05 Feb 2003 21:06:33 +0000
|
|
try
<a href="javascript:document.myForm.submit();"><img
src="/images/go_off.gif" name="Image67"
border="0" alt="" width="21" height="17">to submit the form</a>
At 13:15 05/02/03 +0000, you wrote:
>Hi all- wonder if you can help- I am using a jscript alogrigthm to submit a
>search form (in asp.net)- works fine except in some browsers where the form
>will not submit. (treats button as link and just goes to #)
>
>I am using this:
>
><a href="#" onclick="go()"><img src="/images/go_off.gif" name="Image67"
>border="0" alt="" width="21" height="17"></a> to submit the form
>
>I have checked jscript is turned on and security setting is medium (client
>is running IE6 / Win2k- not sure if they are up to date with SP etc)
>
>Can provide jscript if need be. Any help much appreciated- this is last
>thing preventing sign off of project.
>
>Cheers
>
>Sam
>
>
>
>
>
>Sam Clohesy
>Project Manager
>T: 0208 772 3958
>E: samc@e...
>W: http://www.etypemedia.co.uk
>W: http://www.siteactive.net
>
>
Message #3 by "Peter Lanoie" <planoie@n...> on Thu, 6 Feb 2003 17:15:31 -0500
|
|
Instead of using an <a> tag with a image, use an input of type "image". You
can still have "go()" do what it needs by putting it in the input onClick.
Change:
<a href="#" onclick="go()"><img src="/images/go_off.gif" name="Image67"
border="0" alt="" width="21" height="17"></a>
To:
<input type="image" src="/images/go_off.gif" onClick="go();" name="Image67"
border="0" alt="" width="21" height="17">
This should work fine from within your <form>.
Hope it work alright!
Peter
-----Original Message-----
From: Sam Clohesy [mailto:sam@e...]
Sent: Wednesday, February 05, 2003 08:16
To: ASP.NET
Subject: [aspx] RE: javascript form submission
Hi all- wonder if you can help- I am using a jscript alogrigthm to submit a
search form (in asp.net)- works fine except in some browsers where the form
will not submit. (treats button as link and just goes to #)
I am using this:
<a href="#" onclick="go()"><img src="/images/go_off.gif" name="Image67"
border="0" alt="" width="21" height="17"></a> to submit the form
I have checked jscript is turned on and security setting is medium (client
is running IE6 / Win2k- not sure if they are up to date with SP etc)
Can provide jscript if need be. Any help much appreciated- this is last
thing preventing sign off of project.
Cheers
Sam
Sam Clohesy
Project Manager
T: 0208 772 3958
E: samc@e...
W: http://www.etypemedia.co.uk
W: http://www.siteactive.net
|
|
 |