Solved

sgi - cubmit and rest button -using graphics

Posted on 1997-11-09
5
175 Views
Last Modified: 2013-12-25
Hi I know there is a way you can switch the ugly submit botton with graphics using the input=src,  but is there a way you can use a graphics for both the submit and reset button?  if so how?
thanks,
arthur
0
Comment
Question by:vbguy
[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
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
mark_papadakis earned 50 total points
ID: 1831122
Well, actually there is't.
The only thing you can possibly do, is use a <INPUT TYPE=IMAGE ..
to submit and then create the same page but with VALUE="" or VALUE=whatever you like.
The only other way is to use an <INPUT TYPE=BUTTON..and use an  onClick= in order to execute a JavaScript function that would clear the fields, which should be easy.
MarkP
0
 

Author Comment

by:vbguy
ID: 1831123
Can you give me a sample code to do that reset.

Thanks,
Arthur

0
 

Expert Comment

by:mark_papadakis
ID: 1831124
Sure, do you want JScript code or CGI code to do the reset trick?(JScript is better but JScript is not supported by all browsers)
MarkP
0
 

Author Comment

by:vbguy
ID: 1831125
jscript would be fine ,
thanks for your help!

arthur

0
 

Expert Comment

by:mark_papadakis
ID: 1831126
Well, this is not tested but u can try something like
[SCRIPT LANGUAGE=JAVASCRIPT]  (doesn't allow the u know what chars :)

function clearit()
{
      document.myform.mytext.value=""
      document.myform.mypass.value=""
}
[/SCRIPT]

blah blah
[FORM NAME= myform METHOD=POST ACTION=http://myserver.com/cgi-bin/xxxx.cgi]

NAME[BR]
[INPUT TYPE=TEXT NAME=mytext SIZE=40][BR]
PASS[BR]
[INPUT TYPE=PASSWORD NAME=mypass SIZE=10][BR]
..
[A HREF="javascript:clearit()"][IMG SRC=myimage BORDER=0][/A]
[/FORM]

or something like that
 :)
MarkP
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
copy-item script help 15 90
OS Selection Menu 1 85
Need help Creating PowerShell Script 4 67
PowerCLI Command For Guest VM Boot Time 1 36
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

752 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