[FIXED] [1.2] JS Generation BUG

  1. #1

    [FIXED] [1.2] JS Generation BUG

    very simple code
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            X.Fly("foo").Dom.Set("innerHTML", "<div>bar</div>");
        }
    </script>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html id="Html1" runat="server" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <div id="foo">
        </div>
    </body>
    </html>
    run it,then you will look this code:
    var _e0=Ext.fly("foo");.dom.innerHTML="<div>bar</div>";
    an extra character appears ";"

    Environment:
    Ext.Net 1.2
    VS2010 SP1
    WINDOWS7 SP1
    Last edited by Daniil; Nov 21, 2011 at 5:22 PM. Reason: [FIXED] [1.2]
  2. #2
    Hi,

    Confirmed. We are investigating a possible fix.

    Thanks for the report.
  3. #3
    The bug ticket has been created.
    https://extnet.lighthouseapp.com/pro...gs/tickets/229

    The fix has been added to SVN, revision #3784.

    The fix will be publicly available with the upcoming 1.3 release.

    Thanks again for the report!
  4. #4
    The efficiency of your real high, thank you for your hard work
  5. #5
    If you'd like to fix it in your local sources (before the official release) I can tell what you should do.
  6. #6
    Quote Originally Posted by Daniil View Post
    If you'd like to fix it in your local sources (before the official release) I can tell what you should do.
    thanks a lot,i can use this code instead of the above, I am willing to wait until 1.3 release.

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <script runat="server">    
        protected void Page_Load(object sender, EventArgs e)
        {
            //X.Fly("foo").Dom.Set("innerHTML", "<div>bar</div>");
            X.Call("setBar", "<div>bar</div>");
        }
    </script>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html id="Html1" runat="server" xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
        <script type="text/javascript">
            var setBar = function (html) {
                Ext.fly("foo").dom.innerHTML = html;
            }
        </script>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <div id="foo">
        </div>
    </body>
    </html>
    Thanks again for your reply and I found another more complicated bug, now I'm writing examples for report to the forum.

    btw:I am a chinese coder,my english is very poor, hope that does not interfere with reading.
  7. #7
    Your English is good to understand.

    Waiting to the report, thanks. Please start a new thread if an issue is not tightly related to the current thread.

Similar Threads

  1. Replies: 0
    Last Post: Jan 06, 2012, 8:52 AM
  2. [CLOSED] Dynamic Menu Generation from Comma Delimited String
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 18, 2009, 9:18 AM
  3. [CLOSED] Script generation bug?
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 28, 2009, 4:44 PM
  4. [FIXED] [V0.7] Visibility Bug
    By Timothy in forum Bugs
    Replies: 2
    Last Post: Nov 05, 2008, 9:48 AM

Posting Permissions