My getUpdate() method contains something like this...

/**********************************/

function getUpdates()
{
 var request = new XMLHttpRequest();
 request.onreadystatechange = function()
 {
  if(request.readyState == 4)
  {
    view.alert(request.responseText);
    var message = request.responeText;
    label.innerText = message;

 /* I'm sending first time "hai " from server so responseText
dislpaying "hai" and this time while my gadget is running i made
changes to the "hai" string as "hai, friend" at server side then the
label value is not getting updated from "hai" to "hai, friend" */

  }
 }
 request.open("GET","http://localhost:8080/getUpdates.do",true);
 request.send(null);
}
/**********************************/

On Mar 4, 11:18 am, Wagner Nitsch <[email protected]> wrote:
> Hi mrf,
>
> Something like this?
>
> /*************************/
>
> function view_onopen()
> {
>  getAlert();
>
> }
>
> function getAlert()
> {
>  debug.trace(getUpdate());
>  view.alert("in alert");
>  view.setTimeout("getAlert()",3000);
>
> }
>
> function getUpdates(){
>  return "Update!";
>
> }
>
> /*************************/
>
> Best Regards,
> Wagner Nitsch Bressan
>
>
>
> On Thu, Mar 4, 2010 at 3:02 AM, mrf <[email protected]> wrote:
> > Hey., I hav written the following code for getting an alert in every 3
> > seconds
>
> > /
>
> > ***************************************************************************­**********/
>
> > function view_onopen()
> > {
> >  getAlert();
> > }
> > function getAlert()
> > {
> >  view.alert("in alert");
> >  view.setTimeout("getAlert()",3000);
> > }
>
> > /
>
> > ***************************************************************************­**********/
>
> > It is working fine., now I'm trying to call a function 'getUpdates()'
> > method from 'getAlert()' method, in which i am writing code to request
> > my server to get updates if any.. but it is not working....
>
> > any suggestion from u...
>
> > also I increased the duration from 3 sec to 30 sec., even though it is
> > not working...
>
> > waiting for ur suggestion...
>
> > thank u 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