Solved

FormReset Button Image

Posted on 1998-11-06
8
233 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
  • 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Return data with AJAX, JQUERY and PHP 13 55
WordPress Themes 10 34
Convert html page to a php post email form automatically? 10 27
Bad <form> statement? 9 24
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now