Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obj_response not working #14

Open
Mohamad1994HD opened this issue May 8, 2016 · 2 comments
Open

obj_response not working #14

Mohamad1994HD opened this issue May 8, 2016 · 2 comments

Comments

@Mohamad1994HD
Copy link

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

<script type="text/javascript">{{ g.sijax.get_js()|safe }}</script> to the page. What could be the reason that request is sent but response not ?
@Mohamad1994HD
Copy link
Author

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 ) !????!?

@spantaleev
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants