Hey there!
I am making something related to images...
So, Using JavaScript and JQuery

$(document).ready(function(){
 $.fx.speeds.slow    =    2000;
 $(".Gallery").hide().load("gallery.php").fadeIn("slow");
 setInterval(function(){
 $(".Gallery").hide().load("gallery.php").fadeIn("slow");
 }, 3000)
 });

In this case I want to refresh the div(.Gallery) but I dont want to load gallery.php, In fact what I want is, Put the gallery.php code in that div and load it every x seconds.

It requires load("file here") right?
Can it be done with out loading any thing just refreshing that div so it recalls that php code again?

Thanks, Waleed.

If it needs to execute PHP Code than you will have to use the .load() as the server needs to process the PHP. What is it you're trying to accomplish?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.