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