Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


autopostback in JSP

Posted on 2003-02-25
Medium Priority
Last Modified: 2008-02-01
1)  I want the contents of my HTML page display to refresh automatically based on a selection made by the user. I am using HTML + JSP.
 For Example:
   There are three radio buttons
           - Thesis
           - Non-Thesis
           - Software Engineering
   Drop Down Menu1          

If the user selects 'thesis' there should be one drop down menu appearing on the screen else there should be two drop down menus appearing.
  How can I do that?
2)  Also what function in JSP will allow my page to display one image if the mouse is placed on it and another image if the the mouse is not place on it?
I shall appreciate any help.
Question by:rura
  • 2

Accepted Solution

zeheb earned 120 total points
ID: 8025081
The code below refer to paragraph 1

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT LANGUAGE=javascript>

    function OnClick()
        if (document.all.item("radio")[0].checked)
           DropDown2.style.visibility = "hidden"
           DropDown2.style.visibility = "visible"

    <INPUT type="radio" name="radio" value="Thesis" OnClick="JavaScript:OnClick()"> Thesis <BR>
    <INPUT type="radio" name="radio" value="Non Thesis" OnClick="JavaScript:OnClick()"> Non Thesis <BR>
    <INPUT type="radio" name="radio" value="Software Engineering" OnClick="JavaScript:OnClick()"> Software Engineering <BR>
   <SELECT ID="DropDown1">
   <SELECT ID="DropDown2" STYLE="visibility:hidden">

Expert Comment

ID: 8025164
The code below refer to paragraph 2

function OnMouseOver()
       yourImageID.src = "yourMouseOverImage.gif"
    function OnMouseOut()
       yourImageID.src = "yourImage.gif"
    <IMG SRC="YourImage.gif" OnMouseOver="JavaScript:OnMouseOver()" OnMouseOut=JavaScript:OnMouseOut()">
LVL 53

Expert Comment

ID: 9350265
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

If the user does not know how to close the question, the options are here:



Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

581 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