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

x
?
Solved

autopostback in JSP

Posted on 2003-02-25
5
Medium Priority
?
1,539 Views
Last Modified: 2008-02-01
Hi,
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?
Thanks,
I shall appreciate any help.
Thanks,
Runu
0
Comment
Question by:rura
  • 2
3 Comments
 
LVL 1

Accepted Solution

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

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<SCRIPT LANGUAGE=javascript>

<!--
    function OnClick()
    {
        if (document.all.item("radio")[0].checked)
           DropDown2.style.visibility = "hidden"
        else
           DropDown2.style.visibility = "visible"
    }
//-->
</SCRIPT>

<BODY>
    <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">
      <OPTION></OPTION>
   </SELECT>
   <SELECT ID="DropDown2" STYLE="visibility:hidden">
      <OPTION></OPTION>
   </SELECT>
</BODY>
</HTML>
0
 
LVL 1

Expert Comment

by:zeheb
ID: 8025164
The code below refer to paragraph 2

<SCRIPT LANGUAGE="JavaScript">
function OnMouseOver()
    {      
       yourImageID.src = "yourMouseOverImage.gif"
    }
   
    function OnMouseOut()
    {
       yourImageID.src = "yourImage.gif"
    }
//-->
</SCRIPT>
<BODY>
    <IMG SRC="YourImage.gif" OnMouseOver="JavaScript:OnMouseOver()" OnMouseOut=JavaScript:OnMouseOut()">
</BODY>
</HTML>
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
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.

<note>
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.
</note>

If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp


Cd&

0

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