image button causes reload

M

meltedown

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 ?
 
N

Neredbojias

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&tic
ker_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 ?

Sounds like something in this:

<script type="text/javascript" src="ticker.js"></script>

Got a 404 on ticker.js.
 
M

meltedown

Neredbojias said:
Sounds like something in this:

<script type="text/javascript" src="ticker.js"></script>

Got a 404 on ticker.js.
I've never had a problem reaching the javascript file. The other buttons
work fine, and they all work from the same file. I don't think this is
the problem I'm having with the image button.

However, maybe its another problem having to do with the server, or
maybe even your particular browser. If so, I haven't a clue what could
be causing it. The file is definitely there.
 
B

BootNic

meltedown said:
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://www.enneagraminstitute.com/indexproto.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*
 
M

meltedown

BootNic said:
<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://www.enneagraminstitute.com/indexproto.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top