Re: Can you detect if CF page is loaded in Flex I-Frame?
>Dump the CGI scope, see if there's anything else of interest. THX ADRIAN!! That works! Here's what I discovered: When the Flex store calls the community in an I-Frame, CGI.HTTP_REFERER=http://myURL.com However, when the community is called directly, CGI.HTTP_REFERER=http://myURL.com/community.cfm SO now I can test for that & solve my issue. Thx again Adrian for the quick help, and on a Saturday even! Problem solved & still got time to get a little sunshine ;) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325307 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Can you detect if CF page is loaded in Flex I-Frame?
That's fair enough. Dump the CGI scope, see if there's anything else of interest. > -Original Message- > From: Gordon Nall [mailto:gordon_trav...@yahoo.com] > Sent: 08 August 2009 22:22 > To: cf-talk > Subject: Re: Can you detect if CF page is loaded in Flex I-Frame? > > > Just tested the CGI.HTTP_USER_AGENT, not gonna work. I think thats more > about what browser your using, as I just tested it & it's the same > whether Flex called it into an I-Frame or CF delivers as stand-alone > page. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325306 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Can you detect if CF page is loaded in Flex I-Frame?
Just tested the CGI.HTTP_USER_AGENT, not gonna work. I think thats more about what browser your using, as I just tested it & it's the same whether Flex called it into an I-Frame or CF delivers as stand-alone page. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325305 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Can you detect if CF page is loaded in Flex I-Frame?
Check if CGI.HTTP_USER_AGENT contains something different for Flex requests. Adrian > -Original Message- > From: Gordon Nall [mailto:gor...@imgstudios.com] > Sent: 08 August 2009 21:54 > To: cf-talk > Subject: Can you detect if CF page is loaded in Flex I-Frame? > > > Question: Is there a way in ColdFusion to detect if the CF page is > displayed > in a Flex I-Frame? > > > > Here's my dilemma - I have a Flex Store that loads a CF Community in an > I-Frame. The client wants to send out links that go directly to > sections of > the CF Community. So how can I tell if a user is loading the page in an > I-Frame within the Flex App, or as it's own stand-alone CF page? I need > to > know so when a user links directly into the Community, I can display a > link > to launch the Flex store, but hide the link when they are already in > the > Flex store & merely navigating within the I-Frame. > > > > My initial thought was to change the links within Flex that open the I- > Frame > to contain a URL variable, such as "community.cfm?iframe=1", which I > would > detect in CF & then add that (iframe=1) onto each link throughout the > community, so as the user navigates around within the I-Frame, I know. > Similarly, if the user navigates directly into the Community, I know > that > and can display a link to load the Flex store. > > > > Is there an easier, more elegant solution? Thx, > > -- Gordon ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325304 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4