Response object from $.telligent.evolution.post method

Response object from $.telligent.evolution.post method

This question is answered

I have a question in regard to the jQuery Evolution utility method.  In particular, I am using the $.telligent.evolution.post method to do an AJAX post to a REST endpoint.  In the "response" object that returns if it is successful, there is a "redirecturl" property when I use the REST endpoint for creating a forum thread.  How do I actually set the redirect URL so that I can be redirected to this URL when I have successfully create a forum thread?

Verified Answer
  • In the default widgets, that type of behavior is accomplished by redirecting on the client side by simply setting the window.location to the URL to which you want to redirect (after a successful post, for instance).  So, for the forum thread endpoint (telligent.com/.../create-a-forum-thread.aspx), you could redirect to the thread.URL.

  • I realized that the redirectUrl of the response object is set by save.vm in the Forum - Create/Edit widget.  Thanks Michael!

All Replies
  • In the default widgets, that type of behavior is accomplished by redirecting on the client side by simply setting the window.location to the URL to which you want to redirect (after a successful post, for instance).  So, for the forum thread endpoint (telligent.com/.../create-a-forum-thread.aspx), you could redirect to the thread.URL.

  • I realized that the redirectUrl of the response object is set by save.vm in the Forum - Create/Edit widget.  Thanks Michael!