﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - Delays/Slow Response Invoking Javascript Functions in Internet Explorer</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DelaysSlow-Response-Invoking-Javascript-Functions-in-Internet-Explorer/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Delays/Slow Response Invoking Javascript Functions in Internet Explorer</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DelaysSlow-Response-Invoking-Javascript-Functions-in-Internet-Explorer/</link><pubDate>Tue, 24 Nov 2009 00:01:19 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>Because of some confidential informations from Customer (Alex), this issue would be moved/handled into developer network. Thank you for the attention.</description></item><item><title>Delays/Slow Response Invoking Javascript Functions in Internet Explorer</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DelaysSlow-Response-Invoking-Javascript-Functions-in-Internet-Explorer/</link><pubDate>Mon, 23 Nov 2009 21:28:02 GMT</pubDate><dc:creator>alex@millhorn.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No I do not experience the performance problem  if I don't use WebPaneManager.  The problem clearly lies with me using nested IFrames within a WebPane.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please do the following to reproduce this issue:&lt;/p&gt;
&lt;p&gt; - Create a page Default.aspx that contains a WebPaneManager and 1 pane, and loads Pane.aspx&lt;/p&gt;
&lt;p&gt;- Create a MasterPage named MasterTab1.aspx that contains a WebTab control.&lt;/p&gt;
&lt;p&gt;- Create a MasterPage named MasterTab2.aspx that contains a WebTab control&lt;/p&gt;
&lt;p&gt;- Create a page Pane.aspx that uses masterpage layout MasterTab1.aspx&lt;/p&gt;
&lt;p&gt;- Create a page Subtab.aspx that uses masterpage layout MasterTab2.aspx&lt;/p&gt;
&lt;p&gt;- Dynamically create a WebTabItem in Pane.aspx that loads SubTab.aspx&lt;/p&gt;
&lt;p&gt;- Dynamically create a WebTabItem in SubTab.aspx that loads Content.aspx (any static content)&lt;/p&gt;
&lt;p&gt;----------------------------&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Doing the above should replicate my problem.  The problem lies in creating multiple nested IFrame windows within a WebPane.  I'm not sure if the master page is contributing to this issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;As I explained in my support ticket, I'll be happy to supply more code directly to a technician but not post it publicly.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I also have a live dev site that I can share with you to replicate the issue.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Delays/Slow Response Invoking Javascript Functions in Internet Explorer</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DelaysSlow-Response-Invoking-Javascript-Functions-in-Internet-Explorer/</link><pubDate>Mon, 23 Nov 2009 21:17:57 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Unfortunately, i could not run and replicate your issue in here. Your sample are missing some resources and namespaces.Btw, if your page are not inside WebPaneManager, only WebDesktopManager and WebDesktop window, does the issue also happen?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Delays/Slow Response Invoking Javascript Functions in Internet Explorer</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DelaysSlow-Response-Invoking-Javascript-Functions-in-Internet-Explorer/</link><pubDate>Mon, 23 Nov 2009 13:17:06 GMT</pubDate><dc:creator>alex@millhorn.com</dc:creator><description>&lt;p&gt;After further testing, I have determined that the WebDesktop responsiveness is only poor if a particular Window is open.  This "problem window" is very complex, with nested IFrames.  With the Window visible, many javascript function calls are slow (including maximize, minimize and close window functions) .... but with the window hidden, things are much more responsive.&lt;/p&gt;&lt;p&gt;Again, the performance in Firefox is GREAT.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This surely has to do with the complexity of my Window page.  Attached is a zipped example to show you my structure.  I respectfully ask that you take the time to overview them.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;---------------------------------------------------&lt;/p&gt;
&lt;p&gt;Scenario:&lt;/p&gt;
&lt;p&gt;- WebDesktop shortcut opens Default.aspx   (this file contains the WebPaneManager)&lt;/p&gt;
&lt;p&gt;   - WebPaneManager opens IFrame Navigation.aspx for navigational frame&lt;/p&gt;
&lt;p&gt;   - WebPaneManager opens IFrame Default.aspx &lt;/p&gt;
&lt;p&gt;- Default.aspx loads inherits MasterPage MasterTabs.aspx   (WebTab control is within it)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;- The WebTab control is then populated with tabs.  Each of those tabs opens another masterpage:&lt;/p&gt;
&lt;p&gt;- MasterTabs2.aspx (WebTab control) is loaded within each tab.  This is the second WebTab control within the page and provides tabs with a position=bottom&lt;/p&gt;
&lt;p&gt;-----------------------------------------------------&lt;/p&gt;
&lt;p&gt;The above scenario uses nested IFrames to accomplish having Tabs displayed at the top of the page (primary navigation - MasterTabs.aspx) and secondary navigation (MasterTabs2.aspx), while inheriting the MDSPageFirmUserTab class to allow for easy dynamic creation of tabs.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Screenshot is provided &lt;/p&gt;
&lt;p&gt;-----------------------------------------------------&lt;/p&gt;
&lt;p&gt;I prefer using IFrames to InlineContent because I find them easier to manipulate.  &lt;br /&gt;&lt;/p&gt;&lt;p&gt;This scenario is yielding poor performance.  I hope to have an explanation and workaround.  Thank you.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Delays/Slow Response Invoking Javascript Functions in Internet Explorer</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DelaysSlow-Response-Invoking-Javascript-Functions-in-Internet-Explorer/</link><pubDate>Mon, 23 Nov 2009 10:44:29 GMT</pubDate><dc:creator>alex@millhorn.com</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;&lt;p&gt;My code is nearly identical to yours.  Instead of getting the instance of WebDesktopManager1 from the WebDesktopWindow using your code below....&lt;/p&gt;&lt;pre&gt;        function Button1_onclick() {&lt;br /&gt;            var desktop = window.parent.ISGetObject("WebDesktopManager1");&lt;br /&gt;            var window2 = desktop.CreateWindow();&lt;br /&gt;            window2.Text = "Window2";&lt;br /&gt;            window2.Name = "Window2";&lt;br /&gt;            window2.ContentURL = "http://google.com";&lt;br /&gt;            window2.ContentMode = "UseIFrame";&lt;br /&gt;            window2.AllowMinimize = "No";&lt;br /&gt;&lt;br /&gt;            desktop.Windows.Add(window2);&lt;br /&gt;            window2.Show();&lt;br /&gt;        }&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; I call  parent.addWindow() which calls my own javascript function on the same page.  This prevents me from having to add a javscript function on each WebDesktopWindow page that will need to open a new window.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;My method:&lt;/p&gt;&lt;pre&gt;    function addWindow(name, text, imageURL, contentURL, width, height, allowMin, allowMax, allowClose, isMaximized, focusIfExists )&lt;br /&gt;    {&lt;br /&gt;        var dm = ISGetObject("WebDesktopManager1");&lt;br /&gt;        var wnd = dm.GetWindow(name);&lt;br /&gt;        if (wnd == null || focusIfExists == 'False')&lt;br /&gt;        {&lt;br /&gt;            wnd = new WebDesktopWindow();&lt;br /&gt;            wnd.Text = text;&lt;br /&gt;            wnd.Name = name;&lt;br /&gt;            wnd.ControlBoxImage = "is_webdesktop-16.gif";&lt;br /&gt;            wnd.ContentURL = contentURL;&lt;br /&gt;            wnd.ContentMode = "UseIFrame";&lt;br /&gt;            wnd.AllowMinimize = allowMin;&lt;br /&gt;            wnd.AllowMaximize = allowMax;&lt;br /&gt;            wnd.AllowClose = allowClose;            &lt;br /&gt;            dm.Windows.Add(wnd);&lt;br /&gt;            &lt;br /&gt;            wnd.ResizeTo(width, height);&lt;br /&gt;&lt;br /&gt;            if (isMaximized == 'True')&lt;br /&gt;            {&lt;br /&gt;                wnd.Maximize();&lt;br /&gt;            }&lt;br /&gt;            wnd.Show();&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            wnd.Activate();&lt;br /&gt;            wnd.Show();&lt;br /&gt;        }&lt;br /&gt;    &lt;br /&gt;    }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;In either case, I am experience performance issues in Internet Explorer.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style="background-color: rgb(255, 255, 0);"&gt;I SHOULD ADD, Internet Explorer also has poor performance when simply clicking on the Close icon (x) in the corner of each WebDesktopWindow.   It's not a horrible delay -- but takes nearly 1 full second to close the window.  Firefox does not have these performance issues.... and I don't have this delay when accessing the Developer Network UI.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance for any suggestions that you may have.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Delays/Slow Response Invoking Javascript Functions in Internet Explorer</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DelaysSlow-Response-Invoking-Javascript-Functions-in-Internet-Explorer/</link><pubDate>Tue, 17 Nov 2009 21:40:46 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I don't know why you are using "parent.parent.addWindow(parameters);". To add a window, we simply to use Add() method inside window level properties. I attached sample to show you how i add a new window. Please let me know if you also face the issue performance.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Delays/Slow Response Invoking Javascript Functions in Internet Explorer</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/DelaysSlow-Response-Invoking-Javascript-Functions-in-Internet-Explorer/</link><pubDate>Tue, 17 Nov 2009 15:10:39 GMT</pubDate><dc:creator>alex@millhorn.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have JavaScript functions created on the aspx page that hosts my WebDesktopManager to create new windows, and close existing windows.&lt;/p&gt;
&lt;p&gt;These functions are called by IFrames within WebPanes of my WebDesktopManager Windows.&lt;/p&gt;
&lt;p&gt;In Internet explorer, there is always a delay when clicking a link that invokes the function using the javascript call "parent.parent.addWindow(parameters);"      I don't experience this delay in Firefox or any other browser -- they all load the new windows immediately.  However, in Internet Explorer, there is a 1 second delay before the new window appears.&lt;/p&gt;
&lt;p&gt;Is this a known issue with a workaround?  &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>