On Aug 14, 12:41 pm, Pops <[EMAIL PROTECTED]> wrote:
> JSON: <div id="JsonDump"></div>
>
> <script type='text/javascript'>
> $(document).ready(function() {
> var url = "/code/jSystemMonitor.wcx";
> var secs = 5000;
> $("#JsonDump").ajaxComplete(function(request, settings){
> $(this).append("<li>"+settings.responseText+"</li>");
> });
> var res = $.getJSON(url);
> setInterval( function() { var res = $.getJSON(url); }, secs);
> });
An unrelated problem: you are adding LI elements directly to a DIV.
According to an earlier post on this list, LI elements are illegal
outside of a UL or OL element. You may want to change:
> JSON: <div id="JsonDump"></div>
to:
> JSON: <ul id="JsonDump"></ul>