Hi Kimitake,

Thanks for your updates.

~ Thangaraju Ramasamy


On Fri, Dec 11, 2009 at 06:05, kimitake <[email protected]> wrote:

> Hi Thangaraju,
>
> Ajax (async) does not work when it is called from extension script,
> while it works it is called from web page's javascript as your sample
> page.
>
> Regards,
> Kimitake
>
> On Dec 9, 10:52 am, Thangaraju Ramasamy <[email protected]> wrote:
> > Srikanth,
> >
> > I did not read first line of your mail properly I guess.
> > Since this forum is for extension development, I replied in this context.
> >
> > Refer:
> http://smart-robot.appspot.com/static/71af9249320c3ae4-774be9b9a5f425...
> >
> > With the code you have posted in this forum, I created an example page,
> > which is working fine for me, which is obviously correct.
> >
> > The problem could be in some other part of your code.
> >
> > If you still face problem, raise your question in appropriate forum with
> > sample code.
> >
> > Thanks,
> > ~ Thangaraju Ramasamy
> >
> >
> >
> > On Tue, Dec 8, 2009 at 19:23, Sree <[email protected]> wrote:
> > > I have this piece of code where it sends an ajax request from a
> webpage.
> >
> > > var baseURI = document.baseURI;
> > > var docURI = baseURI.split('#')[1];
> >
> > > var url = "some request of my own";   // Not from a different origin
> > > var xmlhttp;
> > > xmlhttp=new XMLHttpRequest();
> > > xmlhttp.onreadystatechange=function() {
> > > if(xmlhttp.readyState==4) {
> > > alert('ready');
> > >   }
> > > };
> > > xmlhttp.open("GET",url,true);
> > > xmlhttp.send();
> >
> > > This code is not working, even though i dint see any errors in a window
> > > when i open using Ctrl+Shift+J
> >
> > > where as if I change the if condition to xmlhttp.readyState==1 the
> alert
> > > fires. with rest of any numbers the alert is not firing.
> >
> > > Am I doing anything wrong...
> >
> > > --
> > > -Thanks
> > > -Srikanth.G
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Chromium-extensions" group.
> > > To post to this group, send email to
> [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<chromium-extensions%[email protected]><chromium-extensions%2Bunsu
> [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/chromium-extensions?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<chromium-extensions%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" 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/chromium-extensions?hl=en.


Reply via email to