469,356 Members | 2,016 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

image buttons with out java script

Does anybody know how to make an image a "submit"-button WITHOUT using
JavaScript ?

means i have three image buttons in my first.jsp.

if i press first image it has to go back.jsp

when i press middle image it has to go close.jsp

when i press last image it has to go next.jsp
can u pz tell me how can i submit these thing with out any javascript
as well as i can't use any sort of scripting lang.

can u plz send me this information

Regards

Nath
Jul 23 '05 #1
4 1334
On 15 May 2004 03:31:49 -0700, nath wrote:
Does anybody know how to make an image a "submit"-button WITHOUT using
JavaScript ?
So ..why are you asking in a JS group?
means i have three image buttons in my first.jsp.


It's not because you confuse
Java with Javascript, is it?
<http://www.physci.org/codes/javafaq.jsp#js>

(shrugs) That's from my Java
FAQ, ..follow the links.

...but.

<a href='lastpage.htm'>
<img src='back.gif' alt='back'>
</a>

Should do the trick, and since you are
generating your pages using .jsp, you
can keep track of the user's last page
and insert it programmatically.

Or of course, there is always.

<p>Hint: to go back, hit the 'Back' or '<-'
button in your browser, or the 'Backspace'
key on the keyboard.</p>

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #2
nath wrote:
Does anybody know how to make an image a "submit"-button WITHOUT using
JavaScript ?

This a javascript news group (not java) so to ask this question here is
illogical.
means i have three image buttons in my first.jsp.

if i press first image it has to go back.jsp

when i press middle image it has to go close.jsp

when i press last image it has to go next.jsp


Let the jsp servlet handle the redirects, based on which button has been
pressed. The buttons should consist of an input element with the type
attribute set to 'image' and the name attribute set, e.g.:

<input type="image" src="image.gif" name="first" />

Clicking this button wil send parameters to the server with the names
first_x and first_y where the jsp servlet can redirect to the appropriate
page.
JW


Jul 23 '05 #3
Lee
nath said:

Does anybody know how to make an image a "submit"-button WITHOUT using
JavaScript ?

means i have three image buttons in my first.jsp.

if i press first image it has to go back.jsp

when i press middle image it has to go close.jsp

when i press last image it has to go next.jsp
can u pz tell me how can i submit these thing with out any javascript
as well as i can't use any sort of scripting lang.

can u plz send me this information


This is USENET. We don't send information to you, you return
to this newsgroup and read responses. We also use the SHIFT
key where appropriate and spell words out, particularly when
asking for help, because we recognize that readability on the
part of the person who might be willing to answer the question
is more important than the few seconds saved by lazy typing.

Jul 23 '05 #4
On 15 May 2004 08:09:11 -0700, Lee wrote:
We also use the SHIFT
key where appropriate and spell words out,..


Maybe they just lost it?

(To the OP) Here, use mine..
<http://www.physci.org/kbd.jsp?key=shift>

Or maybe it's..
<http://www.physci.org/kbd.jsp?key=caps>

;-)

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.