Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Lost iframe content

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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

609 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