Jump to content

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/

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.