Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2009
    Posts
    59
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Switching between 2 php files

    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!

    EDIT:
    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...
    Last edited by Ortix; 03-25-2011 at 11:15 PM.

  • #2
    New Coder
    Join Date
    Aug 2009
    Posts
    59
    Thanks
    5
    Thanked 0 Times in 0 Posts
    any ideas?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •