When i open the flask url from browser directly it returns data correctly But when i fetch data from same url using jquery's ajax function call, it gives a HTTP code 200 and returns blank value in response help asap
anyone ? On Sat, Oct 22, 2011 at 12:19 AM, Sanchit Gulati <sanchit.gulati@gmail.com> wrote: > When i open the flask url from browser directly it returns data correctly > But when i fetch data from same url using jquery's ajax function call, > it gives a HTTP code 200 and returns blank value in response > help asap > -- Sanchit Gulati CSE,Non IITian Thanks deity !
Le 22/10/2011 09:27, Sanchit Gulati a écrit : > anyone ? > > On Sat, Oct 22, 2011 at 12:19 AM, Sanchit Gulati > <sanchit.gulati@gmail.com> wrote: >> When i open the flask url from browser directly it returns data correctly >> But when i fetch data from same url using jquery's ajax function call, >> it gives a HTTP code 200 and returns blank value in response >> help asap >> Hi, I think that nobody has any idea what you’re talking about and thus everyone just ignores you. That, or it has been only a few hours since your first email and many people have not even seen that one yet. Please provide the relevant parts of your source code and details like what HTTP server and setup you’re using, what request exactly you are sending, does it behave the same in production and with the development server, ... There is no way we can help you without this kind of information. Ideally we should be able to reproduce the problem ourselves. Regards, -- Simon Sapin
Simon,
Well, sorry it i wasn't clear enough. I figured it out anyway,
was due to different port number of flask server, henceforth browser
considered it as cross-domain request and thus ignored it.
On Sat, Oct 22, 2011 at 1:11 PM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Le 22/10/2011 09:27, Sanchit Gulati a écrit :
>> anyone ?
>>
>> On Sat, Oct 22, 2011 at 12:19 AM, Sanchit Gulati
>> <sanchit.gulati@gmail.com> wrote:
>>> When i open the flask url from browser directly it returns data correctly
>>> But when i fetch data from same url using jquery's ajax function call,
>>> it gives a HTTP code 200 and returns blank value in response
>>> help asap
>>>
>
> Hi,
>
> I think that nobody has any idea what you’re talking about and thus
> everyone just ignores you. That, or it has been only a few hours since
> your first email and many people have not even seen that one yet.
>
> Please provide the relevant parts of your source code and details like
> what HTTP server and setup you’re using, what request exactly you are
> sending, does it behave the same in production and with the development
> server, ... There is no way we can help you without this kind of
> information. Ideally we should be able to reproduce the problem ourselves.
>
> Regards,
> --
> Simon Sapin
>
--
Sanchit Gulati
CSE,Non IITian
Thanks deity !