image buttons with out java script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nath

    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
  • Andrew Thompson

    #2
    Re: image buttons with out java script

    On 15 May 2004 03:31:49 -0700, nath wrote:
    [color=blue]
    > Does anybody know how to make an image a "submit"-button WITHOUT using
    > JavaScript ?[/color]

    So ..why are you asking in a JS group?
    [color=blue]
    > means i have three image buttons in my first.jsp.[/color]

    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 programmaticall y.

    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

    Comment

    • Janwillem Borleffs

      #3
      Re: image buttons with out java script

      nath wrote:[color=blue]
      > Does anybody know how to make an image a "submit"-button WITHOUT using
      > JavaScript ?
      >[/color]

      This a javascript news group (not java) so to ask this question here is
      illogical.
      [color=blue]
      > 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
      >
      >[/color]

      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




      Comment

      • Lee

        #4
        Re: image buttons with out java script

        nath said:[color=blue]
        >
        >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[/color]

        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.

        Comment

        • Andrew Thompson

          #5
          Re: image buttons with out java script

          On 15 May 2004 08:09:11 -0700, Lee wrote:
          [color=blue]
          > We also use the SHIFT
          > key where appropriate and spell words out,..[/color]

          Maybe they just lost it?

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

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

          ;-)

          --
          Andrew Thompson
          http://www.PhySci.org/ Open-source software suite
          http://www.PhySci.org/codes/ Web & IT Help
          http://www.1point1C.org/ Science & Technology

          Comment

          Working...