Hello,

I am trying to load a report onto my page via ajax, the code post
below currently works but what I would like to be able to do is pass
the layer into which the results of the ajax request should be loaded
as there are lots of boxes within the reports that require new data to
be loaded on demand into the report.

I want to be able to pass the parameters from my submit button which
will include the targe layer and then a flag for sorting the data.  I
want to replace #jim with the" layer" variable and the "1" in "sort =
1" with the  Sort variable.


<script type="text/javascript">
$(function() {
        LoadHold();
}
)
function LoadHold(Layer, Sort) {
        $.ajaxSetup({dataType: "html"})
        $.get("report.asp?Sort=1",function(datahold) {$('#jim').empty();$
('#jim').append(datahold);}
        )
}
</script>


<input name="Test" type="button" id="Test" onClick="LoadHold(jim,1)"
value="Test">


Can anybody point me the right direction ?



Thanks

James

Reply via email to