﻿<?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 -  It runs error in firefox,chrome and opera!</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/It-runs-error-in-firefoxchrome-and-opera/</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> It runs error in firefox,chrome and opera!</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/It-runs-error-in-firefoxchrome-and-opera/</link><pubDate>Wed, 28 Sep 2011 05:25:31 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I think I knew the problem. The browsers have different render behavior.&lt;br /&gt;That's why some of your validation when open DialogBox is not correct in other browser, except IE.&lt;br /&gt;E.g&lt;/p&gt;
&lt;p&gt;To open dialog box, I used this code:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span&gt;function tlbFile_Click(id, toolCommand) 
{
            if (toolCommand.Name == "cmdNew") {
                var &lt;/span&gt;dlgBox= ISGetObject("dlgBox");&lt;br /&gt;&lt;span&gt;                &lt;/span&gt;dlgBox.SetContentURL("DemoIframePage.aspx");&lt;br /&gt;&lt;span&gt;                &lt;/span&gt;dlgBox.Width = 500;&lt;br /&gt;&lt;span&gt;                &lt;/span&gt;dlgBox.Height = 300;&lt;br /&gt;&lt;span&gt;                &lt;/span&gt;dlgBox.ShowDialog();&lt;br /&gt;&lt;span&gt;//              OpenDialogBox('DemoIframePage.aspx', "", "aaa", "", 500, 300, false);
            }
        }&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Normally, you only need to use SetContentURL(" "), when close. However, this method might be not closing its state. In this part, I understand why you get iframe element and set src property.&lt;br /&gt;However, there is a simple way to do it. WebDialogBox already provided this.&lt;/p&gt;
&lt;p&gt;e.g&lt;br /&gt;For close dialog box, I used this :&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function dlgBox_OnClosed(controlId) 
{
    var dlgBox = ISGetObject(controlId);
    var div = document.getElementById("dvWnd_Global_wnd" &amp;#43; controlId);
    var iframe1 = div.getElementsByTagName("IFRAME");
//    iframe1[0].src = ""; // getRootPath() &amp;#43; "javascript/blank.htm";
    var if1 = document.getElementById("iframe" &amp;#43; controlId);
//    if (if1)
//            if1.style.display = "none";
    dlgBox.Window.GetWindowIFrameElement().src = " ";
}&lt;/pre&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item><item><title> It runs error in firefox,chrome and opera!</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/It-runs-error-in-firefoxchrome-and-opera/</link><pubDate>Tue, 27 Sep 2011 00:25:42 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;         Please look at the sample ,when I click on the Button(New), It will OpenDialogBox.That is right(Picture1).  But when I close the dialogbox and click the Button(New) again,  it will OpenDialogBox but the dialogbox runs error(Picture2) ! It runs normal in IE. Please help me!&lt;/p&gt;</description></item></channel></rss>