Solved

Lost iframe content

Posted on 2003-12-12
6
227 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now