Solved

FormReset Button Image

Posted on 1998-11-06
8
258 Views
Last Modified: 2012-05-04
Is there a way to change the default grey button image generated out of FormReset to clear form fields and put my own reset image with that functionality?
0
Comment
Question by:rajmohans
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 2

Accepted Solution

by:
Grdv earned 100 total points
ID: 1839415
if the name of the form is FormReset use this:

<a href="javascript:FormReset.reset();"><img src="yourimage.gif" border=0></a>

//Grdv
0
 
LVL 4

Expert Comment

by:martinag
ID: 1839416
It should be document.FormReset.reset()

Martin
0
 
LVL 2

Expert Comment

by:Grdv
ID: 1839417
that's very true martin, thanks for pointing that out...
//Grdv
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rajmohans
ID: 1839418
I've named the form as Form_Login in the attributes of FormOpen
and generating
<A HREF="Javascript:Document.Form_Login.reset();"><IMG SRC="/v2.0-img/SSB/SSB_reset.gif" border="0"></A>

Still it's giving error as

Document.Form_Login has no properties.

Can you explain, please.
0
 
LVL 4

Expert Comment

by:martinag
ID: 1839419
Cases are important in most languages (the intellectual ones). There is a hige difference between these lines (since one won't work...):
Document.Form_Login // won't work
document.Form_Login // will work

Martin
0
 

Author Comment

by:rajmohans
ID: 1839420
I've named the form as Form_Login in the attributes of FormOpen
and generating
<A HREF="Javascript:Document.Form_Login.reset();"><IMG SRC="/v2.0-img/SSB/SSB_reset.gif" border="0"></A>

Still it's giving error as

Document.Form_Login has no properties.

Can you explain, please.
0
 

Author Comment

by:rajmohans
ID: 1839421
Thanks a lot Martin and Grdv! Great.
0
 

Author Comment

by:rajmohans
ID: 1839422
Thanks a lot Martin and Grdv! Great.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question