0
   

What is the HTML to close part of the page?

 
 
Reply Sun 29 Mar, 2009 11:02 pm
My home page has too many categories, I am trying to put X (close )on each category so the visitors can close what ever they do not like or the things they not interested in. I am looking for HTML code for that and if possible, when the visitors come back to the website next time, they do not need to see that category that they closed before.

Thanks
 
  2  
Reply Sun 29 Mar, 2009 11:08 pm
I already gave you code that will allow you to open and close divs. You can do this basically by setting the css "display" value to "none" or "block".

Now if you want this selection to be remembered for future visits you'll need to have them log in, or you will need to store this in a cookie.

At this point it sounds like the best thing for your level of experience with HTML and JavaScript is a JavaScript library like jQuery, Moo Tools, or YUI.

What you want to accomplish can be done through any of those libraries and if you are going this direction you might want to start playing with them to learn more about dynamic html.
0 Replies
 
View Profile gkumar
 
  1  
Reply Mon 17 Aug, 2009 12:52 am
your submit button should have something like that

type="button" onClick="formName.submit();window.close(…

where formName is the name of your form.

Another option is to add in your form onSubmit="window.close();"

See an onSubmit example here:
http://www.w3schools.com/jsref/jsref_ons…
0 Replies
 
 

Related Topics

I'm the developer - Discussion by Nick Ashley
how to earn money in internet - Discussion by rizwanaraj
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
mod rewrite for a different theme? - Discussion by etali
 
  1. able2know
  2. » What is the HTML to close part of the page?
Copyright © 2009 Horizontal Verticals :: Page generated in 0.34 seconds on 11/22/2009 at 12:28:16 Top End