Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > image button causes reload

Reply
Thread Tools

image button causes reload

 
 
meltedown
Guest
Posts: n/a
 
      04-17-2006
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/in...er_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 ?
 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      04-18-2006
To further the education of mankind, meltedown <>
vouchsafed:

> 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/in...orward.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.

--
Neredbojias
Infinity can have limits.
 
Reply With Quote
 
 
 
 
meltedown
Guest
Posts: n/a
 
      04-18-2006
Neredbojias wrote:
> To further the education of mankind, meltedown <>
> vouchsafed:
>
>> 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/in...orward.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.
>

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.
 
Reply With Quote
 
BootNic
Guest
Posts: n/a
 
      04-18-2006
> "meltedown" <> wrote:
> news:8CV0g.151332$ m....
>
> 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/in...er_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=ht...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*

 
Reply With Quote
 
meltedown
Guest
Posts: n/a
 
      04-18-2006
BootNic wrote:
>> "meltedown" <> wrote:
>> news:8CV0g.151332$ m....
>>
>> 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/in...er_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=ht...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.

>


 
Reply With Quote
 
frederick@southernskies.co.uk
Guest
Posts: n/a
 
      04-18-2006
meltedown wrote:
> Actually, its alot better than it was a while ago. I've
> been chipping away at it.


Most of what's left looked fixable in no time at all.


--
AGw.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using refresh to reload page, problem is it loads header, footer andeverything, can I avoind those to reload? VT HTML 8 10-13-2010 11:09 PM
JavaScript refresh: <a href="#" onClick="window.location.reload( true );">Reload</a> Joshua Beall HTML 26 06-29-2007 06:31 PM
problem with reload(sys) (doing reload on the sys module) gen_tricomi Python 2 05-23-2006 10:03 AM
Is there an SNMP equivalent to "Reload in [x]" / "Reload cancel" commands? steve.chambers@gmail.com Cisco 5 05-20-2006 04:06 AM
How to get and cancel the reload event (F5, Reload nutton, ...) within a browser Stefan Mueller Javascript 4 11-05-2005 06:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57