Jump to content

simplest ajax or js for refreshing 1 line of code?


oli22

Recommended Posts

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>

  • 3 weeks later...

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/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.