Posted by meltedown on 04/18/06 06:02
BootNic wrote:
>> "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">
>
Works great!! thanks.
> 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
I know, I know. I brought up 'validation errors' with the other er...
authors on the job and they thought I was some kind of nut. Does that
ever happen to you ? I think these errors are mostly the result of using
Dreamweaver. Actually, its alot better than it was a while ago. I've
been chipping away at it.
>
[Back to original message]
|