Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-25-2011, 11:09 PM   PM User | #1
Ortix
New Coder

 
Join Date: Aug 2009
Posts: 53
Thanks: 5
Thanked 0 Times in 0 Posts
Ortix is an unknown quantity at this point
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..
Ortix is offline   Reply With Quote
Old 03-27-2011, 01:24 PM   PM User | #2
Ortix
New Coder

 
Join Date: Aug 2009
Posts: 53
Thanks: 5
Thanked 0 Times in 0 Posts
Ortix is an unknown quantity at this point
any ideas?
Ortix is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:34 PM.


Advertisement
Log in to turn off these ads.