librelist archives

« back to archive

jquery AJAX response is blank from flask

jquery AJAX response is blank from flask

From:
Sanchit Gulati
Date:
2011-10-21 @ 18:49
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

Re: jquery AJAX response is blank from flask

From:
Sanchit Gulati
Date:
2011-10-22 @ 07:27
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 !

Re: [flask] Re: jquery AJAX response is blank from flask

From:
Simon Sapin
Date:
2011-10-22 @ 07:41
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

Re: [flask] Re: jquery AJAX response is blank from flask

From:
Sanchit Gulati
Date:
2011-10-22 @ 10:17
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 !