oli22 Posted October 20, 2011 Share Posted October 20, 2011 There seem to be many ways of doing ajax outhere, i'm a newbee, so i thought about asking which simple effective ajax/JS method i should use to do this. Video embed code is refreshed by use of a php include when thumbnails are clicked. Instead of having full page refresh every time a thumb is clicked i would like to simply refresh that line of phpcode. Can you tell me which way is simplest and most effective ajax/JS to use for this? Here is the code i am using. <!--START Player--> <div> <p style="text-align:center;"> <?php $playVideo = $_GET['playThis']; ?> <?php include("FunIncludes/$playVideo.php"); ?> </p> <!--END Player--> Codes in thumb gallery which re-loads the include <div class="funnyThumbs"> <a href="FUNNYVIDEOS.php?playThis=LOL" target="_self" > <img src="images/IMAGES/LOL.gif" width="165" height="70" /> </a> </div> Quote Link to comment https://forums.phpfreaks.com/topic/249490-simplest-ajax-or-js-for-refreshing-1-line-of-code/ Share on other sites More sharing options...
jotorres1 Posted November 5, 2011 Share Posted November 5, 2011 Hi oli, Take a look at a post I created just recently. It explains the most simplest way, (for me) to do an ajax/php call. Let me know if you need any help with anything else. http://www.jotorres.com/en/2011/11/display-database-information-with-ajax-jquery-and-php/ Quote Link to comment https://forums.phpfreaks.com/topic/249490-simplest-ajax-or-js-for-refreshing-1-line-of-code/#findComment-1285223 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.