Solved

Lost iframe content

Posted on 2003-12-12
6
233 Views
Last Modified: 2013-12-24
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
Comment
Question by:jsprenk55
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 25

Accepted Solution

by:
James Rodgers earned 225 total points
ID: 9929708
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
 
LVL 25

Expert Comment

by:James Rodgers
ID: 9929745
actually that won't work...

0
 
LVL 25

Expert Comment

by:James Rodgers
ID: 9929756
i think you will  need to pass it from a form using post
0
 

Author Comment

by:jsprenk55
ID: 9929912
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question