473,461 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2506
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.