Tooltip Toggle Concept
Posted: Wed May 19, 2010 2:43 pm
Okay, so here's a theoretical concept:
A tooltips system used for providing tips to using the page, consisting of jQuery JS files, a CSS file and code nested in DIVs on a page that is toggled on/off in two places: An admin page under the session of the current user that is logged in and also in the page header next to the tabs of this theoretical system where a simple option is indicated: Hints: On Off, where one is a hyperlink and the other is text, both switched when the other is clicked. When the user logs back in, the setting is saved from where it was last left off.
My question is: Is the most efficient and least-cost approach, assuming i'm using PHP and MySQL, to set that option in the database for that user? Can I use POST to do this so it's not shown in the URL? I'm assuming if the answer to the latter is yes, then I assume that means I have to use a form? Can I do it without POST and GET or a form?
Last question: If this is just a class for a div nesting text or other HTML content (photos, links, etc.), what would be the best method to turn it off once the setting has been chosen? How can the code be tight and minimal? I'm assuming it would be an IF statement querying the database for a value of a given field referencing the setting that was changed. Would that be the most efficient method?
A tooltips system used for providing tips to using the page, consisting of jQuery JS files, a CSS file and code nested in DIVs on a page that is toggled on/off in two places: An admin page under the session of the current user that is logged in and also in the page header next to the tabs of this theoretical system where a simple option is indicated: Hints: On Off, where one is a hyperlink and the other is text, both switched when the other is clicked. When the user logs back in, the setting is saved from where it was last left off.
My question is: Is the most efficient and least-cost approach, assuming i'm using PHP and MySQL, to set that option in the database for that user? Can I use POST to do this so it's not shown in the URL? I'm assuming if the answer to the latter is yes, then I assume that means I have to use a form? Can I do it without POST and GET or a form?
Last question: If this is just a class for a div nesting text or other HTML content (photos, links, etc.), what would be the best method to turn it off once the setting has been chosen? How can the code be tight and minimal? I'm assuming it would be an IF statement querying the database for a value of a given field referencing the setting that was changed. Would that be the most efficient method?