473,388 Members | 1,188 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,388 software developers and data experts.

how to show the particular div in a jsp page?

19
link 1:compose
link 2: readmail


Expand|Select|Wrap|Line Numbers
  1. <div name="compose" id="compose">
  2.  
  3.   //code for compose mail
  4.  
  5. </div>

Expand|Select|Wrap|Line Numbers
  1. <div name="readmail" id="readmail">
  2.  
  3.   //code for readmail
  4.  
  5. </div>
I don't know how to show the particular div in a jsp page.

If we click link 1 it should render the compose mail div.if we click link 2 it should render readmail div.
Aug 24 '10 #1
1 2502
chaarmann
785 Expert 512MB
You are in the wrong forum!
This is a Javascript question, not a Java question.

By the way, to show the div, just add an onClick-event to your link1 with:
Expand|Select|Wrap|Line Numbers
  1. document.getElementbyId("compose").style.display="";
  2. document.getElementbyId("readmail").style.display="none";
Aug 24 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: srinivas | last post by:
Hi, First i need to say my heartful thanks to google groups.So many things are clarified by some of the experts. Now I have a requirement.Basically our site have 5 pages.When we navigate to...
2
by: savvy | last post by:
I am using the code below to check whether a member is valid or not , and if he is then allowing him to certain parts of the site. My problem is when a person logs on by entering his user ID and...
0
by: surendra.rajput | last post by:
hi all friends I want your help. I am working with HTML help Workshop ,In run time it show first page Blank(Default page) .How i can Set First Page of Help file . thank you surendra
5
by: Ben Fidge | last post by:
When using Server.Transfer, the calling page name is still displayed in the browser address bar, as opposed to the called page. This is really confusing my customers! Is there a way round it? ...
6
by: zhengyan11 | last post by:
my job is to check the cookie and then decide if I show a image link on the page when the page is loaded. this is what I did: <html> <head> <TITLE>THIS IS TEST </TITLE>
1
by: susantap | last post by:
how i show an web page using wxURL
1
by: dev175 | last post by:
hey can we overwrite what clicking the browser refresh button does like if we click refresh then changing the page location and things like that.
0
by: deostroll | last post by:
I am trying to locate which page a forum reply would lie on? I have a field called rid which is the reply id - it uniquely identifies the reply. Is it possible for me to cast a PageDataSource...
0
by: dnha | last post by:
Hi I want to add a button which on clicked take me to the particular page as entered at the TextBox of paging toolbar.The Grid i m using is ajax enabled YUI Grid.Please reply.
0
by: Agnes | last post by:
I am using Crystal report, when the report show more than One page.e.g the report got 3 pages. How can I only show the 1st page ?? thanks
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.