Help in javascript-jsp

Thread Solved

Join Date: Nov 2008
Posts: 2
Reputation: nick_katz is an unknown quantity at this point 
Solved Threads: 0
nick_katz nick_katz is offline Offline
Newbie Poster

Help in javascript-jsp

 
0
  #1
Nov 14th, 2008
Hello all.

I have this problem. I have a div with inactive buttons in a jsp page, buttons like
select all | add to basket | compare | ....
and some java logic determining whether any products (coming from a backend) are found on page load. I want to make this div appear when products are found and disappear when not.
Any help will much apreciated

Thanx in advance
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 3
Reputation: shurdsfield is an unknown quantity at this point 
Solved Threads: 1
shurdsfield shurdsfield is offline Offline
Newbie Poster

Re: Help in javascript-jsp

 
0
  #2
Nov 17th, 2008
if your doing this in a JSP then you can either use CSS to hide/show the div, or you can just choose to not output the div in the JSP when you load the page.

Is that what you meant?
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: nick_katz is an unknown quantity at this point 
Solved Threads: 0
nick_katz nick_katz is offline Offline
Newbie Poster

Re: Help in javascript-jsp

 
0
  #3
Nov 18th, 2008
Thank you very much for your answer but it was simpler than I thought. Including the div's code in an if block with logic on whether products are found or not suffices. thanx anyway..
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC