Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

'reset' form image button
 

Osgood




quote this post edit post

IP Loged report this post

Old Post  09-01-04 - 12:15 AM  
What's the correct code for a 'reset' button in a from?

I know how to use an image for 'send' (below.)

Is there one for 'reset'?


<input name="imageField" type="image" src="../assets/submit_button.gif"
width="54" height="22" border="0">

Thanks.



Post Follow-Up to this message ]
Re: 'reset' form image button
 

Osgood




quote this post edit post

IP Loged report this post

Old Post  09-01-04 - 12:15 AM  
Osgood wrote:

> What's the correct code for a 'reset' button in a from?

that should say 'form' not 'from' just incase that is confusing. To the
bright and intelligent of course it wont be.





Post Follow-Up to this message ]
Re: 'reset' form image button
 

Osgood




quote this post edit post

IP Loged report this post

Old Post  09-01-04 - 12:15 AM  
Humm..buggar on further investigation it looks like I will have to use
some fancy javascript.

In that case I don't think it is worth it in this case.


Osgood wrote:

> Osgood wrote:
> 
>
>
> that should say 'form' not 'from' just incase that is confusing. To the
> bright and intelligent of course it wont be.
>
>
>



Post Follow-Up to this message ]
Re: 'reset' form image button
 

Osgood




quote this post edit post

IP Loged report this post

Old Post  09-01-04 - 12:15 AM  
Mick White wrote:

> <img src="whatever" onclick="document['formName'].reset()">


Excellent. I think I can manage that. Thanks, I'll give it a whirl and
see what happens.



Post Follow-Up to this message ]
Re: 'reset' form image button
 

Osgood




quote this post edit post

IP Loged report this post

Old Post  09-01-04 - 12:15 AM  
Osgood wrote:

> Mick White wrote:
> 
>
>
>
> Excellent. I think I can manage that. Thanks, I'll give it a whirl and
> see what happens.
>

Great. That seems to work nicely in Mac 5.2/Safari and FireFox.

Opera 6 doesnt like it but I dont care much about that. Anyone using
that browser deserves to have to use a bit of manual dexterity.

I'll look at it in pc tomorrow.


Cheers.



Post Follow-Up to this message ]
Re: 'reset' form image button
 

Mick White




quote this post edit post

IP Loged report this post

Old Post  09-01-04 - 04:14 AM  

Osgood wrote:

>
> Great. That seems to work nicely in Mac 5.2/Safari and FireFox.
>
> Opera 6 doesnt like it but I dont care much about that. Anyone using
> that browser deserves to have to use a bit of manual dexterity.
>

document.forms['formName'].reset()

This longer version should work in most UA's
Mick

> I'll look at it in pc tomorrow.
>
>
> Cheers.
>


Post Follow-Up to this message ]
Re: 'reset' form image button
 

Osgood




quote this post edit post

IP Loged report this post

Old Post  09-01-04 - 04:14 AM  
Mick White wrote:

> This longer version should work in most UA's


Thanks Mick, much appreciated.



Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 03:41 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Dreamweaver archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top