Hey Karthik,
There may be a disconnect between the headers of the request being
sent out and the headers of your server's response. Have a look at
this link:
http://github.com/phonegap/phonegap-blackberry/blob/master/framework/src/com/nitobi/phonegap/api/impl/NetworkCommand.java#L225
This is the code that runs the custom PhoneGap XHR implementation. At
line 225, I would suggest you place a breakpoint and run your app in
the simulator in debug mode. At this line, we check the response code.
If it is anything other than 200, no JavaScript call will be made back
in the PhoneGap browser. In my experience, this happens sometimes if
the ACCEPT- headers in your request don't match up to the same headers
that your server accepts. The dozen or so lines above line 225 are
well commented with various options on what to set the request headers
to.
Usually I just check the HTTP response code, and that gives me a good
enough clue as to what the problem is, if the response code is
something other than 200.
Hope that helps!
Let me know how it goes.
Cheers,
Fil Maj
Web Software Engineer
Nitobi
On Apr 21, 2:33 am, karthik sasidharan <
karthiksasidhar...@gmail.com>
wrote:
> > > > > > >
phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>
> > > > > > > For more options, visit this group at
> > > > > > >
http://groups.google.com/group/phonegap?hl=en?hl=en
>
> > > > > > > For more info on PhoneGap or to download the code go
> >
towww.phonegap.com
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "phonegap" group.
> > > > > > To post to this group, send email to
phon...@googlegroups.com
> > > > > > To unsubscribe from this group, send email to
> > > > > >
phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>
> > > > > > For more options, visit this group athttp://
> >
groups.google.com/group/phonegap?hl=en?hl=en
>
> > > > > > For more info on PhoneGap or to download the code go
> >
towww.phonegap.com
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "phonegap" group.
> > > > > To post to this group, send email to
phon...@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > >
phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>
> > > > > For more options, visit this group athttp://
> >
groups.google.com/group/phonegap?hl=en?hl=en
>
> > > > > For more info on PhoneGap or to download the code go
> >
towww.phonegap.com
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "phonegap" group.
> > > > To post to this group, send email to
phon...@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > >
phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>
> > >
phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>
> >
phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>