I am trying to get some xml data using a jquery .post request, but it's not outputting anything. The client-side code looks like this

<script type="text/javascript" src="jquery-1.4.2.js"></script> 

<script type="text/javascript">
function cstarter()

window.einterval = setInterval("cst()", 5000);
window.big = "hi";

<script type="text/javascript">

function cst()

$.post("testback.php", { csize: window.big },
   window.creply = $(this).find("numb").text();
    window.cnumb = $(this).find("rep").text();




<div class="inner" >

<script type="text/javascript">


And the server-side looks like this:

<?php header('Content-Type: application/xml; charset=ISO-8859-1')?>

$cnumb = $_POST["csize"];

$ccrank = "$cnumb"."small";
$ctest = "yeahhh";

echo "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>


Sorry if it's a bit ugly, but I've cut out everything except the problem areas and the result is a bit of a mess. If anyone can see why this isn't working I'd really appreciate the help.


window.einterval = setInterval("cst()", 5000);

Is this also the cause of your editing (the window.einterval)???

Be a part of the DaniWeb community

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