Solved

Input into textarea slow when displaying documents in iframe

Posted on 2009-07-15
1
450 Views
Last Modified: 2012-06-21
Experts,

We are using an iframe to display documents in our web page*. Choosing the document sets the src of the iframe to an aspx page with some info in the query string. The page load adds the document to the response and it displays. That part works fine.

The problem is that when the iframe is displaying a document, typing into textareas on the page is painfully slow. You type, you wait, the input appears.

Thanks.

* I don't think it matters but the web page is created using web parts so the iframe is in one part and the text area is in another.
Code adding document to page response
 
protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                WorkItem wi = SessionManager.Current.GetWorkItem(Request.QueryString["WorkitemId"]);
                using (Global360Service service = Global360ServiceFactory.Create(wi))
                {
                    Global360WebServiceWrapper vs = service as Global360WebServiceWrapper;
                    if (vs == null) throw new Exception("Service could not be cast as a Global360WebServiceWrapper.");
 
                    string docExt = Request.QueryString["DocExt"];
                    Response.Clear();
                    Response.ClearContent();
                    Response.ClearHeaders();
                    Response.ContentType = Utils.Utils.GetMimeType(docExt);
                    Document doc = vs.WebService.GetDocument(Request.QueryString["DocumentId"], 0, -1, true);
                    Response.BinaryWrite(((DesktopDocument)doc).DesktopFileData);
                    Response.End(); 
                }
            }
            catch (Exception ex)
            {
                TraceUtil.TraceError("FileDownload.aspx.cs.Page_Load", ex);
                throw ex;
            }
        }

Open in new window

0
Comment
Question by:HellaSym
[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
1 Comment
 

Accepted Solution

by:
HellaSym earned 0 total points
ID: 24862530
Since submitting this, I've changed it so that instead of using the iframe I just open a brand new window. Same code I just use window.open(url) instead of iframe.src=url.

And with the document displaying in the new window the slowness goes away.

This is not ideal, since the users want to look at the document and type into the textarea (and the page the textarea is in will most likely be maximized) but it's better than the previous slowness.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to calculate height of a text using jquery 3 55
SVG and IE11 2 33
html form layout 4 52
CSS - how to make button/link change to black on hover? 2 35
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

739 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