Page 1 of 1

PHP and target divs....

Posted: Wed Mar 16, 2016 5:00 pm
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

Re: PHP and target divs....

Posted: Wed Mar 16, 2016 7:58 pm
by Masao
You could do it with javascript/ajax loading or just hide the content with css, and switch visibility onclick.

Re: PHP and target divs....

Posted: Sat Mar 19, 2016 8:42 pm
by Mikari
Switching visibility is a good option, you can also switch the inner html, though I find that switching visibility is more convenient.

Re: PHP and target divs....

Posted: Sun Mar 20, 2016 1:18 pm
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!