Nope, it is not working Mr.Wagner....

On Mar 4, 11:44 am, Wagner Nitsch <[email protected]> wrote:
> Hi Mrf,
>
> Your request is out of order, try this:
>
> /***************************************/
> function getUpdates()
> {
>  var xmlHttp = new XMLHttpRequest();
>  xmlHttp.open("GET","http://localhost:8080/getUpdates.do",true);
>
>  xmlHttp.onreadystatechange = function()
>  {
>   if(xmlHttp.readyState == 4)
>   {
>    if(xmlHttp.readyStatus == 200)
>    {
>      view.alert(xmlHttp.responseText);
>    }
>   }
>  }
>  xmlHttp.send(null);
>
> }
>
> /***************************************/
>
> Best Regards,
> Wagner Nitsch Bressan
>
>
>
> On Thu, Mar 4, 2010 at 3:32 AM, mrf <[email protected]> wrote:
> > Hi everyone,
> > I wrote the following code for getting an alert in every 3 seconds
> > /*********************************/
>
> > function view_onopen()
> > {
> >  getAlert();
> > }
> > function getAlert()
> > {
> >  view.alert("in getAlert()");
> >  view.setTimeout("getAlert()", 3000);
> > }
> > /*********************************/
>
> > this is working fine., but when I hav chaged my code to
>
> > /***************************************/
> > function view_onopen()
> > {
> >  getAlert();
> > }
> > function getAlert()
> > {
> >  getUpdates();
> >  view.setTimeout("getAlert()", 30000);
>
> > /* this time I increased duration from 3 seconds to 30 seconds, coz I
> > have read some where that the request to server should min. of 30 sec.
> > */
>
> > }
> > function getUpdates()
> > {
> >  var xmlHttp = new XMLHttpRequest();
> >  xmlHttp.onreadystatechange = function()
> >  {
> >   if(xmlHttp.readyState == 4)
> >   {
> >    if(xmlHttp.readyStatus == 200)
> >    {
> >      view.alert(xmlHttp.responseText);
> >    }
> >   }
> >  }
> >  xmlHttp.open("GET","http://localhost:8080/getUpdates.do",true);
> >  xmlHttp.send(null);
> > }
> > /***************************************/
>
> > can anyone help me out, inorder to get
> > updates....?????????????????????????????????????????
>
> > Thanks in advance- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-desktop-developer?hl=en.

Reply via email to