May 21, 2012, 9:31 AM
[CLOSED] Migrating to 2: Javascript code issues
Hi,
I'm getting a lot of issues in the code I'm trying to migrate to ext.net 2 with reference errors caused by namespace issues. For example, I have a menu that contains this click handler:
Is this related to where I am adding the click hander code, or is there something else I need to do with ext.net 2?
Thanks
I'm getting a lot of issues in the code I'm trying to migrate to ext.net 2 with reference errors caused by namespace issues. For example, I have a menu that contains this click handler:
<ext:MenuItem Text="Edit Site" Icon="BuildingEdit">
<Listeners>
<Click Handler="var win = SiteDetailsWindow; win.autoLoad.params.id = #{TreePanel1}.menuNode.actualId; win.show();" />
</Listeners>
</ext:MenuItem>
I've changed the Resourcemanager to this: <ext:ResourceManager ID="ResourceManager1" runat="server" IDMode="Explicit" NameSpace=""/>
But when I run, I get a JS error - Uncaught ReferenceError: MainContent_MainPanel_TreePanel1 is not defined. That JS error is when the page loads - it stops the UI from rendering.Is this related to where I am adding the click hander code, or is there something else I need to do with ext.net 2?
Thanks
Last edited by Daniil; May 28, 2012 at 5:54 PM.
Reason: [CLOSED]