Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Enrico Maria Chellini Newsgroups: it.comp.lang.javascript Subject: Re: query php e ajax Date: Wed, 28 Dec 2016 16:40:24 +0100 Organization: www.bitit.it Lines: 36 Message-ID: References: <75a2d5df-c48f-4847-8f1c-5f31d021a703@googlegroups.com> <1d4a7074-2a60-4a67-9327-9e85e4a55d7c@googlegroups.com> NNTP-Posting-Host: FP6DjQInZzQFkIwDnoWalg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.14.5 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com it.comp.lang.javascript:8161 >> >> $(function() { >> setInterval("updateTopic()", 5000); // ogni 2 secondi richiamo la >> funzione updateTopic() >> }); >> function updateTopic() { >> $.ajax({ >> $("#cbox").load("getAmbientLog.php?arg=val"); >> } >> }); > > .load() è già "ajax" > è sufficiente > $("#cbox").load("getAmbientLog.php?arg=val"); $("#cbox").load("getDeviceLog.php?idd="); c'è un altro modo per inserire la variabile? ho provato così ma non mi funziona: