Solved

sgi - cubmit and rest button -using graphics

Posted on 1997-11-09
5
171 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

837 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