Vince, I have a couple clients who also require a few iFrames (not my choice). So I just made a simple rule to get by.
(2) files. Save these two files in the appropriate locations, update the app scope, deploy the rule in the COAPI manager, then place the rule in the desired container(s). And of course, feel free to make whatever changes are necessary (note: the frameborder, marginheight, and marginwidth attributes are only there to support IE6 since it's the pain that will never go away). 1) /myProject/packages/rules/ruleIFrame.cfc (remove the start and end comments) <!--- START ---> <cfcomponent displayname="iFrame" extends="farcry.core.packages.rules.rules" hint="Creates an iFrame with the provided url" bObjectBroker="false"> <cfproperty ftSeq="1" ftFieldset="General" name="url" type="string" hint="Full URL" required="true" default="" ftHint="example: http://www.google.com " ftType="string" ftLabel="Full URL" ftValidation="required" /> <cfproperty ftSeq="2" ftFieldset="General" name="width" type="string" hint="Width in pixels" required="true" default="536" ftHint="default = 536" ftType="string" ftLabel="Width" ftValidation="required,validate-digits" /> <cfproperty ftSeq="3" ftFieldset="General" name="height" type="string" hint="Height in pixels" required="true" default="400" ftHint="default = 400" ftType="string" ftLabel="Height" ftValidation="required,validate-digits" /> </cfcomponent> <--- /END ---> 2) /myProject/webskin/ruleIFrame/execute.cfm (remove the start and end comments) <!--- START ---> <cfsetting enablecfoutputonly="true" /> <!--- @@displayname: iFrames ---> <cfoutput> <iframe src="#stObj.url#" width="#stObj.width#" height="#stObj.height#" scrolling="true" frameborder="0" marginwidth="0" marginheight="0" name="thisIFrame"></iframe> </cfoutput> <cfsetting enablecfoutputonly="false" /> <--- /END ---> Regards, -- Jeff Coughlin Web Application Developer http://jeffcoughlin.com On Apr 8, 2009, at 4:11 PM, Vince wrote: > > I have a remote page that I would like to include via iFrame within > farcrycms (5.0). > > Using the plain text rule it appears it strips iFrame out. Also, if I > try to add the iframe call in the page itself via the webtop, it also > appears to strip the iframe reference out. > > Is there a way to use iFrame within farcry? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
