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>

Link to comment
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.