I need to get information from a php file and put the information in jquery and i also need to know if the information has changed
+3
A:
Extremely vague question.
If you are putting the information into jquery:
$.ajax({
type: "GET",
url: "PHPFILE.php",
data: "data="+data,
success: function(data){ /* called when request to barge.php completes */
//SET VARIABLES
);
},
});
PHP:
if ($_GET["data"] != WHATEVER YOU ARE CHECKING HAS CHANGED)
{
echo "new stuff";
}
For checking if the php page has changed, pass the current data in and do a comparison.
Gazler
2010-01-25 22:04:23
can you give me a example of the php code please
Gully
2010-01-25 22:45:08
Edited original post.
Gazler
2010-01-25 23:01:49