flask-sijax icon indicating copy to clipboard operation
flask-sijax copied to clipboard

obj_response not working

Open Mohamad1994HD opened this issue 8 years ago • 2 comments

untitled I'm trying to work with flask + sijax in a blueprint context, the request is sent to the target callback function 'on_click_test' however the 'obj_response' is not doing any thing, even I added the

to the page. What could be the reason that request is sent but response not ?

Mohamad1994HD avatar May 08 '16 10:05 Mohamad1994HD

Solved :

I had done: if g.sijax.is_sijax_request: g.sijax.register_object(SijaxHandler) return g.sijax.process_request()

in a separate function to organize my program and I have called it in the view function that causes an error of producing the response so I have moved that block of code back to the view function and it works just fine but I don't understand why it works now and it wasn't working ( returning a response ) !????!?

Mohamad1994HD avatar May 08 '16 11:05 Mohamad1994HD

Can we see that other code, where you do the register_object stuff?

spantaleev avatar Jun 07 '16 05:06 spantaleev