View Full Version : Switching between 2 php files

03-26-2011, 12:09 AM
Hi guys!

I'm working on a joomla module for myself which displays favorites a user has added to their list. Currently it only displays items, but i want it to display categories as well.

I have my code and what not ready(1 file for items 1 file for categories) but I would like to have a button that switches the php files which either display the items or categories. Currently i can only display either categories or items. I would like to know how to make a nifty AJAX switch button, which when clicked shows the categories or items depending on which one the user is currently viewing.

Help would be much appreciated! I would google this, but i don't even know how/what to search for.

Thanks! :D

I already have the jQuery framework loaded into the system

Also another side note, my script is just that.. a script. Not object oriented. I could convert it if necessary...

03-27-2011, 02:24 PM
any ideas?