DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   Help in javascript-jsp (http://www.daniweb.com/forums/thread157306.html)

nick_katz Nov 14th, 2008 9:01 am
Help in javascript-jsp
 
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

shurdsfield Nov 17th, 2008 12:01 pm
Re: Help in javascript-jsp
 
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?

nick_katz Nov 18th, 2008 3:20 am
Re: Help in javascript-jsp
 
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..


All times are GMT -4. The time now is 5:56 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC