Thanks for the quick reply.. yes, I have tried clearing the cache in
both firefox and chrome, but still no luck.

--Ronen

On Mar 13, 4:14 am, Guillaume Lepicard <guillaume.lepic...@gmail.com>
wrote:
> hi ronen,
> could it be a browser cache issue ? have you tried clearing cache before
> running ajax ?
>
> On Fri, Mar 12, 2010 at 3:53 PM, Ronen <rrotst...@gmail.com> wrote:
> > I've downloaded the latest prototype (version 1.6.1) and tried to call
> > a java servlet using Ajax.Request.  From IE, it works just fine
> > (probably because it's using ActiveX rather than XMLHttpRequest), but
> > I'm having no luck with Firefox (v3.6) and Chrome (4.0).
>
> > The servlet that I'm calling performs a log operation right away so I
> > can see whether it was called or not.  That's how I know that IE is
> > successful but firefox and chrome aren't.
>
> > I've used Firebug to try to debug firefox and I see that the line
> > this.transport.send(this.body);
> > is, in fact, being called by firefox.  But still, my servlet shows no
> > log of being called.
>
> > The exact javascript I'm using is below:
> >     var opts = {
> >          method: 'post',
> >          parameters : { key:"value" },
> >          onSuccess: function(transport)
> >          {
> >               var d = new Date();
> >               document.getElementById("location").value =
> > d.getTime();
> >          }
> >     }
> >     var asyncReq = new Ajax.Request("http://localhost:8701/MyApp/
> > MyServlet", opts);
>
> > As you can see, in the success method, I just populate a textbox to
> > have the current date/time, and this actually works in all browsers
> > (IE, Firefox, Chrome).  Just that in Firefox and Chrome the servlet is
> > not physically being called (yet the success method is).
>
> > Any help in solving this issue is greatly appreciated.
>
> > --Ronen
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Prototype & script.aculo.us" group.
> > To post to this group, send email to
> > prototype-scriptacul...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > prototype-scriptaculous+unsubscr...@googlegroups.com<prototype-scriptaculous%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/prototype-scriptaculous?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to