﻿<?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 - WebCombo - Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</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>Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</link><pubDate>Wed, 06 Mar 2013 21:32:54 GMT</pubDate><dc:creator>Hans</dc:creator><description>Hello,&lt;br /&gt;&lt;br /&gt;I am not sure if we can just enhance the HTML5 in IE7. Some processes and renders might be depending on the browser itself that support HTML5. This became issue because IE7 itself does not support it.&lt;br /&gt;Even though the CRM is used by Microsoft, we could not follow it. It is not well standard. The correct standard is following the W3School standard. I would like need to discuss with our developer to see the possibility first.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.</description></item><item><title>Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</link><pubDate>Wed, 06 Mar 2013 03:29:18 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi Hans,&lt;/p&gt;&lt;p&gt;Microsoft Dynamics CRM is a web based product from Microsoft, html pages of this product have html5 doctype and it is desinged to work inside Outlook so it works correclty with Outlook and IE7. Maybe IE7 does not recognize the new html5 tags, but for sure is able to render html5 pages with the right layout if the pages are correclty generated. In my opinion, as I show you with the fix proposed in the previous comment, the grid operations and the grid layout is not correclty handled by Intersoft in case of html5 doctype and userAgent MSIE 7.0.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vince
&lt;/p&gt;</description></item><item><title>Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</link><pubDate>Thu, 28 Feb 2013 23:17:27 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Thank you for your valuable feedback.&lt;/p&gt;
&lt;p&gt;I try to set the browser mode to "IE7" and the document mode to "IE9 standards" and the result is I can replicate your issue on my end as well.&lt;br /&gt;This issue occurs due to Internet Explorer 7 doesn’t support HTML5 doctype indeed.&lt;br /&gt;You shouldn’t use HTML5 doctype in Internet Explorer 7.&lt;br /&gt;The layout problem occurs due to we can’t use HTML5 doctype in Internet Explorer 7 as well.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hans.&lt;/p&gt;</description></item><item><title>Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</link><pubDate>Thu, 28 Feb 2013 05:50:40 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi Hans&lt;/p&gt;&lt;p&gt;I made a deeper investigation of the problem I have in the productive environment. In attachment InnerFrame.zip you can find the example that reproduce the problem, I added the doctype &amp;lt;!DOCTYPE html&amp;gt; to InnerFrame.aspx without any comment before. Now the problem I have is that this page is shown in Outlook, and Outlook it works like IE7, so to simulate this behaviour it needs to set the browser mode to "IE7" and the document mode to "IE9 standards" like shown in attachment image1.png.&lt;/p&gt;
&lt;p&gt;In this situation at first I have the error reported in the first message of this thread:&lt;/p&gt;&lt;blockquote style="padding-left: 10px; margin: 0px 0px 0px 5px; border-left: 1px solid rgb(204, 204, 204);"&gt;&lt;p&gt;While debugging the code I see that the following instructions are executed:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;var v46839 =ISGetObject(v79345.childNodes[0].gridId);&lt;br /&gt;var ve0e96 =v46839.Tables[v79345.childNodes[0].tblName]&lt;/pre&gt;
&lt;p&gt;but v79345.childNodes[0].gridId is undefined, so ISGetObject returns null and the next instruction arise the error.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I made some search in WebGrid javascript code (based on version 8.0.7200.250) and I found that the function named wg82a90.m18140 is executed only if "IS.w3cs || IS.ie9s || !IS.ie": here the code:&lt;/p&gt;&lt;pre&gt;m60528:function(v94961) {
  if (IS.w3cs ||IS.ie9s ||!IS.ie) wg82a90.m18140(v94961);
}&lt;/pre&gt;
&lt;p&gt;To make a test I changed it the function in this way (you can find that in the file WebGrid_Core.fix.js in the zip file):&lt;/p&gt;&lt;pre&gt;wg82a90.m60528 = function (table) {
    if (IS.w3cs || IS.ie9s || !IS.ie || (IS.ie &amp;amp;&amp;amp; IS.IsHTML5DocType())) {
        wg82a90.m18140(table);
    }
};&lt;/pre&gt;
&lt;p&gt;and this make the error disappear, but there are still layout problems with the height of the grid and with the header and footer width.&lt;/p&gt;
&lt;p&gt;Please tell me what do you think about that and if you can help me to overcome this situation.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vince&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</link><pubDate>Thu, 21 Feb 2013 22:14:20 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Like I said before you shouldn’t put the comment tag before doctype tag.&lt;br /&gt;&lt;br /&gt;It will interfere with the system of HTML5, so it makes all version of IE set the Document Mode to “Quirks” Mode, not in “IE9 Standards” Mode.This is default behaviour of HTML5 doctype&lt;br /&gt;If this happens, it will interfere with the system of WebGrid as well.&lt;/p&gt;
&lt;p&gt;You can run the Inner.aspx page indeed. However, in page doesn’t run in HTML5 mode (QuirksMode.jpg).&lt;/p&gt;
&lt;p&gt;To fix this issue, you should put the comment tag after doctype tag. Alternatively, you should modify the content of your comment into:&lt;/p&gt;&lt;pre&gt;&amp;lt;!--[if anybrowser]&amp;gt; do not remove &amp;lt;![endif]--&amp;gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;/pre&gt;
&lt;p&gt;The Inner.aspx page will run in HTML5 mode, after I modify the comment (IE9Standart.jpg).&lt;/p&gt;
&lt;p&gt;There is also thread in another website that discuss about this Comment tag issue. You could find it by following this &lt;a href="http://stackoverflow.com/questions/941100/can-comments-appear-before-the-doctype-declaration"&gt; link &lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Hans.&lt;/p&gt;</description></item><item><title>Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</link><pubDate>Thu, 21 Feb 2013 10:12:39 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>Hi Hans,&lt;br /&gt;&lt;br /&gt;I know about the comment, I put the comment before doctype on purpose, the question is: why Inner.aspx works with the before doctype if browsed alone, but it does not work when embedded in Outer.aspx?&lt;br /&gt;&lt;br /&gt;Moreover, I do not find differences using RenderingMode="HTML5, anyway I will put it.&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;&lt;br /&gt;Vince&lt;br /&gt;</description></item><item><title>Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</link><pubDate>Wed, 20 Feb 2013 22:56:13 GMT</pubDate><dc:creator>Hans</dc:creator><description>Hello,
&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;
I am sorry for the inconvenience.&lt;br&gt;&lt;/br&gt;
Thank you for the sample and I can reproduce your issue on my end as well.
&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;
First of all, if you want to use WebGrid in HTML5 doctype, you should set RenderingMode property to “HTML5”.&lt;br&gt;&lt;/br&gt;
So all features should work exactly as in other doctype.&lt;br&gt;&lt;/br&gt;
You can set the rendering mode in a WebGrid instance individually by setting the RenderingMode property to HTML5 value, such as shown in the example below:&lt;br&gt;&lt;/br&gt;&lt;pre&gt;&lt;iswebgrid:webgrid id="WebGrid1" runat="server" renderingmode="HTML5"&gt;
&amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" RenderingMode="HTML5"&amp;gt;&lt;br&gt;&lt;/br&gt;&amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/iswebgrid:webgrid&gt;&lt;/pre&gt;Alternatively, you can also apply the rendering mode globally through the application-wide configuration, see the following example.
&lt;pre&gt;&lt;add value="HTML5" key="ISNet.WebUI.WebGrid.v8_0_7200.RenderingMode"&gt;&amp;lt;add key="ISNet.WebUI.WebGrid.v8_0_7200.RenderingMode" value="HTML5"/&amp;gt;&lt;/add&gt;&lt;/pre&gt;&lt;br&gt;&lt;/br&gt;
Your issue appears due to, in Inner.aspx, you put a comment tag before doctype declaration. So put the comment tag to another place.&lt;br&gt;&lt;/br&gt;
This is HTML5’s default behavior, if there is comment tag before doctype declaration, it will make HTML5 doctype doesn’t work properly.
&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;
In order to fix the issue, I make some changes in your Inner.aspx file.&lt;br&gt;&lt;/br&gt;
First, I set the RenderingMode property to “HTML5”. Second, I put the comment tag after doctype declaration.&lt;br&gt;&lt;/br&gt;
Please kindly have review on the modified sample and let me know whether the issue still persists or not.
&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;
Thank you.
&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;
Regards,&lt;br&gt;&lt;/br&gt;
Hans.</description></item><item><title>Javascript errors on web grid with page embedded in iframe</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Javascript-errors-on-web-grid-with-page-embedded-in-iframe/</link><pubDate>Wed, 20 Feb 2013 11:23:29 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have an html pages configuration so that an outer page contains an inner page through an iframe, and the inner page contasin a WebGrid. If I open in the browser the inner page all works as expected, instead if I open the outer page a lot of javascript errors arise. To show you I created a simple project with 2 pages: Inner.aspx and Outer.aspx, if you browse the first all is ok, if you browse the second you will see the errors. You can find this project in attachment InnerFrame.zip.&lt;/p&gt;
&lt;p&gt;While debugging the code I see that the following instructions are executed:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;var v46839 =ISGetObject(v79345.childNodes[0].gridId);
var ve0e96 =v46839.Tables[v79345.childNodes[0].tblName];&lt;/pre&gt;
&lt;p&gt;but v79345.childNodes[0].gridId is undefined, so ISGetObject returns null and the next instruction arise the error.&lt;/p&gt;
&lt;p&gt;Could you please help?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vince&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>