• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

Lost iframe content

I am using the below code to define an iframe and open a new window (SpellTest2.cfm via window.open) to display the iframe's content.  However, only a portion of the iframe's content is being passed to the new window.  The text gets cut off after about 2015 characters.  The source document for the iframe tag (SpellTest3.cfm) contains a fairly large amount of text.   Any help would be appreciated.

<table border="1" align="center" cellpadding="0" cellspacing="0" id="window" style="border-collapse: collapse; border: 1px solid #C0C0C0">
<tr><td>
<cfoutput><iframe width="100%" id="editbox" name="editbox" src="SpellTest3.cfm"></iframe></cfoutput>
</td>
</tr>
<tr>
<input name="btnEditRoleAssignments" type="button" value="Test Call" onClick="window.open('SpellTest2.cfm?PassedText='+editbox.document.body.innerHTML)"></td>
</tr>  
</table>
0
jsprenk55
Asked:
jsprenk55
  • 3
1 Solution
 
James RodgersWeb Applications DeveloperCommented:
i don't think you can pass more than 2000 char via this method

why not do something like saving the editbox.document.body.innerHTML in a session variable and pass the variable name to SpellTest2.cfm

SpellTest2.cfm?Passedtext=varName

and in the spelltest2.cfm

<cfoutput>
#session.evaluate(url.passestext)#
</cfoutput>

not fully sure about the syntax

0
 
James RodgersWeb Applications DeveloperCommented:
actually that won't work...

0
 
James RodgersWeb Applications DeveloperCommented:
i think you will  need to pass it from a form using post
0
 
jsprenk55Author Commented:
Thanks for your comments so far.  The example shown is a simplified version of the actual system.  With current design of the real system, a post won't work, but it that's the only way to accomplish this, we will rethink design.  If you know of any other suggestions I would appreciate them.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now