Your are right.   I pulled the ajaxComplete() append example from the
docs and it had a $(#msg') for the container.  I already had the div
from another ajax container example so I just change the name.  Thanks
for the 3rd "evil" eye. :-)

--
HLS

On Aug 14, 10:11 am, Stephan Beal <[EMAIL PROTECTED]> wrote:
> 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>

Reply via email to