473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1465
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave | last post by:
Hi all, I was trying to make an image submit button with a rollover and discovered to my suprise that there is no way to access a form element of the "image" type. I tried specifying it by name...
17
by: santel_helvis | last post by:
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
2
by: sachaburnett | last post by:
Hi everyone! I'm new to Javascript and am finding so much useful information on this group, so thanks to you all! I have a question about preloading images for onmouseover/out effects and...
3
by: kayahr | last post by:
Hi there, I have a strange problem in Internet Explorer (IE6 and IE7). I'm writing a JavaScript application which allows the user to edit a photo composition. So when the user selects a photo then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.