Welcome Guest Search | Active Topics | Members | Log In | Register

Best alternative to Response.Redirect? Options
rogers_c
Posted: Tuesday, September 27, 2011 1:11:24 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Hey guys,

I am building a list item that incorporates SSO functionality. Essentially, it does a real-time server to server authentication and then redirects the user to the target URL. Normally, this would be just a URL Redirect, but given the whole JSON aspect of listitems, I am wondering if there is a better way to approach this.

I know I could just pre-calculate the target URL (the assumption is there may be a secured session ID or something in the query string), but I want to be able to handle situations where the user's session may be stale regarding the SSO.

So in a nutshell, I guess I am asking, is there a method for sending a redirect command back from the JSON request upon clicking a link?
rogers_c
Posted: Tuesday, September 27, 2011 1:18:03 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Nevermind.. I think this post here: http://www.mobileentree.com/forums/yaf_postst131_Click-Action.aspx will address the issue.
ben
Posted: Wednesday, September 28, 2011 8:23:05 AM
Rank: Active Member

Joined: 6/10/2009
Posts: 16
Points: 48
Location: Virginia
Glad you got it figured out. If you are looking to do a simple redirect from a ListItem, you can set two properties on the associated click action which would then cause a simple url redirect to happen when triggered:

(this assumes ca=EntreeClickActionObject and li=EntreeListItem)

ca["Type"] = "GoTo";
ca["Url"] = "http://url.to.redirect.to";
li.SetClickAction(ca);
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.