?
Solved

Lost iframe content

Posted on 2003-12-12
6
Medium Priority
?
237 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 900 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

801 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