Title: Tab + Treegrid -- $.data(...) is undefined Post by: mzeddd on April 01, 2016, 03:51:59 AM Hi,
I have the following code Code: <script> new.html (short copy of basic.html from treegrid demo) Code: <table title="Folder Browser" class="easyui-treegrid" 1) When I press button I get Code: syntax error ...... treegrid_data.json:1:1 2) When I press button again (the New tab is already oppened) I get this: Code: TypeError: $.data(...) is undefined .......jquery.easyui.min.js:10107:7 Title: Re: Tab + Treegrid -- $.data(...) is undefined Post by: jarry on April 03, 2016, 07:29:09 AM Please call 'refresh' method on a visible tab panel. Try this code instead.
Code: $('#docTabs').tabs('select','New'); Title: Re: Tab + Treegrid -- $.data(...) is undefined Post by: mzeddd on April 04, 2016, 01:45:05 AM It works.
What is the difference? Why it works like this? What about syntax error? Also I can see that load Ajax load is not working in Chrome when loading local file, not remote from web server. (see jquery-easyui-1.4.5/demo/tabs/nestedtabs.html example) It seems like it is Chrome thing as it does not work in many examples. Quote XMLHttpRequest cannot load file://3pp/jquery-easyui-1.4.5/demo/treegrid/treegrid_data1.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. |