?
Solved

autopostback in JSP

Posted on 2003-02-25
5
Medium Priority
?
1,480 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

770 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