PDA

View Full Version : ajax style buttons


eon201
11-26-2007, 10:48 AM
Hi,

Im attempting to create numerous buttons in javascript within a page that when clicked put different sets of content into the same div.

So if button a was clicked then content a would load into div.
If button b was clicked then content b would load into div.
And vice versa.


It has been suggested to me to use the javascript showcontent function, but unfortunatly I cannot do it this way as the php I am injecting will still resolve within the page messing everything up!

Im a bit lost on how to do this as of yet. Any help would be greatly appreciatted! My deadline is today and this is the last piece I need to accomplish!

Thanks in advance.