PHP and target divs....

Everything related to the visual and coding aspects of websites.
Post Reply
Destinie
Posts: 3357
Joined: Mon Aug 15, 2011 5:27 pm
Location: Columbia, MD
Contact:

PHP and target divs....

Post by Destinie »

I think I need help...

I am working on a new layout and I have my content in a target div. I am converting a fanlisting to shrine so I am using PHP, unlike AngularJS which I have been using for my more recent sites. I was wondering if there was an ability to switch content on click in this div so I don't need to refresh the page each time?

http://stackoverflow.com/questions/6519 ... g-all-page ??

Does anyone here use AJAX calls?

I'm not well-versed in the PHP side of things. :T
Masao
Host
Posts: 579
Joined: Thu Jun 16, 2011 12:29 am
Contact:

Re: PHP and target divs....

Post by Masao »

You could do it with javascript/ajax loading or just hide the content with css, and switch visibility onclick.
THE FATE OF DESTRUCTION IS ALSO THE JOY OF REBIRTH.
Mikari
Posts: 3159
Joined: Thu Jun 21, 2012 6:30 pm
Location: Coruscant
Contact:

Re: PHP and target divs....

Post by Mikari »

Switching visibility is a good option, you can also switch the inner html, though I find that switching visibility is more convenient.
Destinie
Posts: 3357
Joined: Mon Aug 15, 2011 5:27 pm
Location: Columbia, MD
Contact:

Re: PHP and target divs....

Post by Destinie »

I could do that since I know how to do that easily. xD;
Especially if there's not a TON of content that might the best solution. Thanks!
Post Reply