|
Posted by BootNic on 04/18/06 04:34
> "meltedown" <groups2@reenie.org> wrote:
> news:8CV0g.151332$Un3.147783@fe10.news.easynews.com....
>
> On this page is a blue box with a javascript
> ticker:http://www.enneagraminstitute.com/indexproto.asp
>
> I have created pause, back and forward input buttons to control the
> ticker. The client doesn't like the default input buttons so I have
> tried to use images for input. I have only changed the forward
> botton on the right to an image button.
>
> For some reason the image button causes the page to reload to this
> url
> http://www.enneagraminstitute.com/indexproto.asp?ticker_forward.x=7&ticker_forward.y=6
> I don't know where "ticker_forward.x=7&ticker_forward.y=6" comes
> from- its not anything I did.
>
> The other buttons don't reload the page at all. Why is this image
> button causing the reload ? How do I get it to stop ?
<input type="image" name="ticker_forward" onclick=
"MoveTicker('forward');" src=
"http://www.enneagraminstitute.com/images/forward.gif">
That submits the form.
Just use an image with an onclick.
<img name="ticker_forward" onclick="MoveTicker('forward');"
src="http://www.enneagraminstitute.com/images/forward.gif" alt=""
id="ticker_forward">
If you don't like that then I suppose you might get it to work if you add an
action attribute to the form, action="javascript:void(this)" or maybe add
onsubmit="return false;".
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.enneagraminstitute.com%2Findexproto.asp
--
BootNic Monday, April 17, 2006 9:33 PM
Optimism and humor are the grease and glue of life. Without both of
them we would never have survived our captivity.
*Philip Butler, Vietnam POW*
Navigation:
[Reply to this message]
|