Well, i know a way:<br><br>function verify(){ <br>&nbsp; var delay = 1800; //i guess it's 1 minute &nbsp;&nbsp;  <br>&nbsp; getmsgs = setTimeout(fn_getmsg, delay);<br>}<br><br>function fn_getmsg(){<br>&nbsp;&nbsp; //ajax request<br>&nbsp;&nbsp; //get the result<br>
&nbsp;&nbsp; //if result &gt; 0<br>&nbsp;&nbsp; //echo the result or any info...<br>}<br><br>so, u just have to know the basic of ajax...<br>a simple GET should work...<br><br>I suggest u to meet jQuery.com An amazing js library... only 16k<br>
<br><br><div><span class="gmail_quote">2006/8/28, Flávio Gomes &lt;<a href="mailto:flavio@economisa.com.br">flavio@economisa.com.br</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
/&gt; Is it as simple as just setting a timer function that triggers my<br>function?<br>&gt;&nbsp;&nbsp;Or is it any drawbacks with doing that? Is other scripts available<br>during this time?<br><br>/Never played with AJAX, but I believe that &quot;Yes, it's just that simple&quot;.
<br><br>Try it and tell us.<br><br>Peter Lauri escreveu:<br><br>&gt; Best group members,<br>&gt;<br>&gt;<br>&gt;<br>&gt; I have a site where I have an internal message system. With this I<br>&gt; want to add functionality so that when a user have a new message, an
<br>&gt; alert box will show up with that information.<br>&gt;<br>&gt;<br>&gt;<br>&gt; What the script actually would do is to every minute connect execute a<br>&gt; script that use AJAX to retrieve the number of unread messages, and
<br>&gt; then alert if it is more then the last time.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I want to have a script that does not effect other scripts on the site.<br>&gt;<br>&gt;<br>&gt;<br>&gt; Is it as simple as just setting a timer function that triggers my
<br>&gt; function? Or is it any drawbacks with doing that? Is other scripts<br>&gt; available during this time?<br>&gt;<br>&gt;<br>&gt;<br>&gt; Best regards,<br>&gt;<br>&gt; Peter Lauri<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>
&gt;<br>&gt;<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>&gt;Javascript mailing list<br>&gt;<a href="mailto:Javascript@LaTech.edu">
Javascript@LaTech.edu</a><br>&gt;<a href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</a><br>&gt;<br>&gt;<br><br>--<br>Flavio Gomes<br><a href="mailto:flavio@economisa.com.br">
flavio@economisa.com.br</a><br><br>_______________________________________________<br>Javascript mailing list<br><a href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a><br><a href="https://lists.LaTech.edu/mailman/listinfo/javascript">
https://lists.LaTech.edu/mailman/listinfo/javascript</a><br></blockquote></div><br>