Re: How to add anchor on URL - I don't want to redirect the page

2012-02-22 Thread Zane
Sorry for my fault -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-devel/-/JT2Llg2TL4IJ. To post to this group, send email to pylons-devel@googlegroups.com. To unsu

How to add anchor on URL - I don't want to redirect the page

2012-02-22 Thread Zane
How to add anchor on URL - I do not want to redirect to other URL like: www.example.com/ -> www.example.com/#!form Thanks Zane -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To view this discussion on the web

Re: Question: How can I response a JSON with render='json',and set the header

2012-02-20 Thread Zane
It's work *:*) Thank you @ yasaikun and Chris McDonough -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-devel/-/_x-s9OJqdhYJ. To post to this group, send email

Re: Question: How can I response a JSON with render='json',and set the header

2012-02-20 Thread Zane
mail, max_age='86400') request.response.headers = headers # It would lost the Content-Type:application/json here # so when I add header like this way, it will return a string. return {'succeed':True} And before I replace the header, the render='json' will help me

Re: Question: How can I response a JSON with render='json',and set the header

2012-02-20 Thread Zane
return a Obj not a string. Sorry~ I'm a newer.And Thank you. Zane -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-devel/-/IxdaCNua2XYJ. To post to this

Question: How can I response a JSON with render='json',and set the header

2012-02-20 Thread Zane
il, max_age='86400') /* How to response this header together*/ return {'succeed':True} Thanks Zane -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To view this discussion on the web visit https://groups