Page 1 of 1

accordion on php

Posted: Thu Jul 26, 2007 7:04 am
by carsky
hi everyone..just want to ask if anyone here have a script for making an accordion menu for PHP?

Posted: Thu Jul 26, 2007 7:05 am
by Gente
Can you be more specific?

Posted: Thu Jul 26, 2007 7:11 am
by carsky
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.

Posted: Thu Jul 26, 2007 7:42 am
by miro_igov
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.

Posted: Thu Jul 26, 2007 8:36 am
by Begby
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/

Posted: Thu Jul 26, 2007 3:51 pm
by RobertGonzalez
Moved to client side.

You might also want to have a look at the Ajax framework thread that was floating around here a while back.

Posted: Fri Jul 27, 2007 12:58 pm
by carsky
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.

Posted: Fri Jul 27, 2007 1:11 pm
by RobertGonzalez
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).

Posted: Fri Jul 27, 2007 1:15 pm
by carsky
so you're simply telling me that there is no way i cannot put restrictions on my navigational bar?

Posted: Fri Jul 27, 2007 2:45 pm
by superdezign
carsky wrote:so you're simply telling me that there is no way i cannot put restrictions on my navigational bar?
You can generate the JavaScript code in PHP, server-side, however you'd like.

Posted: Fri Jul 27, 2007 4:43 pm
by RobertGonzalez
carsky wrote:so you're simply telling me that there is no way i cannot put restrictions on my navigational bar?
That is not what I am saying at all.