accordion on php

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
carsky
Forum Commoner
Posts: 30
Joined: Sun Jul 08, 2007 3:26 am

accordion on php

Post by carsky »

hi everyone..just want to ask if anyone here have a script for making an accordion menu for PHP?
User avatar
Gente
Forum Contributor
Posts: 252
Joined: Wed Jun 13, 2007 9:43 am
Location: Ukraine, Kharkov
Contact:

Post by Gente »

Can you be more specific?
carsky
Forum Commoner
Posts: 30
Joined: Sun Jul 08, 2007 3:26 am

Post 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.
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post 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.
Begby
Forum Regular
Posts: 575
Joined: Wed Dec 13, 2006 10:28 am

Post 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/
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
carsky
Forum Commoner
Posts: 30
Joined: Sun Jul 08, 2007 3:26 am

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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).
carsky
Forum Commoner
Posts: 30
Joined: Sun Jul 08, 2007 3:26 am

Post by carsky »

so you're simply telling me that there is no way i cannot put restrictions on my navigational bar?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply