accordion on php
Moderator: General Moderators
accordion on php
hi everyone..just want to ask if anyone here have a script for making an accordion menu for PHP?
well i actually wanted to create a new kind of menu for my site..using accordion..forgive me for posting here because i know this is for php codes only..i am used to posting here..but what im looking for is a javascript or an ajax script..its actually a javascript or an ajax..really sorry for posting here.
There is very good client-side framework called Adobe Spry. The new version of Dreamweaver (CS3) contains built-in controls for using this framework and such a accordeon menu or tabs or even form validators could be created in seconds.
Here is a link to the Adobe Spry framework http://labs.adobe.com/technologies/spry/
Your accordion: http://labs.adobe.com/technologies/spry ... ample.html
And more examples: http://labs.adobe.com/technologies/spry/samples/
But working with this in editor which does not support it is real nightmare.
P.S. This is for the client-side forum.
Here is a link to the Adobe Spry framework http://labs.adobe.com/technologies/spry/
Your accordion: http://labs.adobe.com/technologies/spry ... ample.html
And more examples: http://labs.adobe.com/technologies/spry/samples/
But working with this in editor which does not support it is real nightmare.
P.S. This is for the client-side forum.
You can also use the moo.fx library which has a pretty lightweight and easy to setup accordian without the spry overhead.
http://moofx.mad4milk.net/
http://moofx.mad4milk.net/
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
thanks guys..now can i ask you if it would be possible for me to put some php conditions on the menu that the accordion will show?because there are different kinds of users that will be using my system..so accounts have different priviledges..do you this is possible?and also i want to share where i got the accordion menu..http://www.dezinerfolio.com/2007/07/19/ ... ons...this very simple..i easily understand the concept of accordion..but the downside is that the script was compressed..but anyway thanks for all the help..i appreciate it a lot.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Remember that PHP works on the server and Javascript works on the client. Nothing that you do in the client (save for sending data to the server in an HTTP Request) will ever tell PHP to do anything. PHP does output, so yes, you can feed information from PHP into any HTML output you produce, and that can be used to build navigation menus and all sorts of other goodies. But Javascript and PHP are two totally different animals that do not talk to one another (outside of HTTP Requests).
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA