[CLOSED] request resource via ajax call. Version 1.x

Page 1 of 3 123 LastLast
  1. #1

    [CLOSED] request resource via ajax call. Version 1.x

    Hi,

    I have setup a local cdn server and I see that resources requested by ajax call are not loaded. Could you please help me?

    It could happen in version 2.x.

    {script:"Ext.net.append(Ext.get('form1'),[\"<div id=\\\"contPH_masterCtrl_PlaceHolderPanel_Content\\\" class=\\\"x-hidden\\\">\",\"</div>\"].join(''));
    
    Ext.net.ResourceMgr.load([{url:\"http://192.168.247.128/cdn/Ext.Net.1.6/extnet/extnet-data.js\"},{url:\"http://192.168.247.128/cdn/Ext.Net.1.6/ux/plugins/gridfilters/gridfilters.js\"},{mode:\"css\",url:\"http://192.168.247.128/cdn/Ext.Net.1.6/ux/plugins/gridfilters/css/gridfilters.css\"}],
    
    func....
    Thanks,
    Attached Thumbnails Click image for larger version. 

Name:	cdn1.png 
Views:	60 
Size:	10.8 KB 
ID:	5340   Click image for larger version. 

Name:	cdn2.png 
Views:	63 
Size:	13.0 KB 
ID:	5341  
    Last edited by Daniil; Jan 04, 2013 at 5:19 PM. Reason: [CLOSED]
  2. #2
    Unfortunately, Ajax doesn't support cross domen requests
  3. #3
    Quote Originally Posted by Vladimir View Post
    Unfortunately, Ajax doesn't support cross domen requests
    Hi,

    So what the purpose of cdn support of advisement of Ext.NET component?

    Is there any way to register all resources?

    Thanks,
  4. #4
    CDN resources should be used as static (registered via script tag), it cannot be used for dynamic resources (dynamic controls) because Ext.Net requests dynamic resources via ajax only

    Is there any way to register all resources?
    You can preregister required resources by using
    Ext.Net.ResourceManager.RegisterControlResources<GridPanel>();
    In v2, we are going to add support for cross domain resources (load it via dynamic script tag) but it is not implemented yet
  5. #5
    Quote Originally Posted by Vladimir View Post
    CDN resources should be used as static (registered via script tag), it cannot be used for dynamic resources (dynamic controls) because Ext.Net requests dynamic resources via ajax only


    You can preregister required resources by using
    Ext.Net.ResourceManager.RegisterControlResources<GridPanel>();
    In v2, we are going to add support for cross domain resources (load it via dynamic script tag) but it is not implemented yet
    Hi,

    Thanks for your help.

    However, it requests to some resources not exist any more such as
    ....../cdn/Ext.Net.1.6/ux/extensions/multiheader/css/commandcolumn.css

    I will investigate more and report. Please consider this case and others.

    Thanks,
  6. #6
    Hi,

    Resources of dynamic controls are supported by CDN mode now, changes are available in SVN (v1 and v2)

    However, it requests to some resources not exist any more such as
    ....../cdn/Ext.Net.1.6/ux/extensions/multiheader/css/commandcolumn.css
    Thanks for the report, fixed in SVN
  7. #7
    Quote Originally Posted by Vladimir View Post
    Hi,

    Resources of dynamic controls are supported by CDN mode now, changes are available in SVN (v1 and v2)


    Thanks for the report, fixed in SVN
    Hi,

    Thanks for your support. I've updated svn and see that the problem is not solved completely. For example,

    ..../cdn/Ext.Net.1.6/ux/calendar/resources/css/calendar.css
    does not exist

    we are going to add support for cross domain resources (load it via dynamic script tag) but it is not implemented yet
    Is it already implemented according to your latest reply?

    Thanks,
  8. #8
    I've updated svn and see that the problem is not solved completely. For example,

    1 ..../cdn/Ext.Net.1.6/ux/calendar/resources/css/calendar.css



    does not exist
    Thanks for the report, fixed in SVN

    Is it already implemented according to your latest reply?
    Yes, now all external resources will be loaded via script tag instead ajax
  9. #9
    Quote Originally Posted by Vladimir View Post
    Thanks for the report, fixed in SVN


    Yes, now all external resources will be loaded via script tag instead ajax
    Hi,

    Thanks for your support. However, I see that external resources are not loaded via script tag. For example

    .....src=\"http://192.168.247.128/cdn/operations/images/include-search.png\" alt=\"Alternate Text\" />","                            <label for=\"imgIncludes\">","                                Includes</label>","                        </td>","                    </tr>","                </table>","            </div><div id=\"contPH_masterCtrl_xnctrl357_fitverify_searchTpl_ucProfileSearchOptionsHint_Container1_Content\" class=\"x-hidden\">","                        <div id=\"contPH_masterCtrl_xnctrl357_fitverify_searchTpl_ucProfileSearchOptionsHint_cboApplyAll_cnrContainer_Container\"></div>","                    </div></div>","                     </div>","                        </div><div id=\"contPH_masterCtrl_xnctrl357_fitverify_bookerGrid_Content\" class=\"x-hidden\">","                           <div id=\"contPH_masterCtrl_xnctrl357_fitverify_ucSearchResult_pnlGrid_Content\" class=\"x-hidden\">","            ","         </div>","                        </div>","         </div>","</div>"].join(''));Ext.net.ResourceMgr.load([{url:"http://192.168.247.128/cdn/Ext.Net.1.6/extnet/extnet-data.js"}], function(){Ext.net.ResourceMgr.registerIcon(["PageForward","Accept","Add"]);Ext.net.ResourceMgr.destroyCmp("contPH_masterCtrl_PlaceHolderPanel");contPH_masterCtrl_cPnl.addAndDoLayout({id:"contPH_masterCtrl_PlaceHolderPanel",items:{id:"contPH_masterCtrl_xnctrl357_framePnl",xtype:"panel",items:{id:"contPH_masterCtrl_xnctrl357_fitverify_bspnl",xtype:"panel",items:[{id:"contPH_masterCtrl_xnctrl357_fitverify_pnlCriteria",columnWidth:0.3,items:{id:"contPH_masterCtrl_xnctrl357_fitverify_searchTpl_bspnl",xtype:"panel",items:[{id:"contPH_masterCtrl_xnctrl357_fitverify_searchTpl_pnlProfileId",region:"north",minHeight:40,height:40,items:[{id:"contPH_masterCtrl_xnctrl357_fitverify_searchTpl_txtProfileId",xtype:"textfield",fieldLabel:"Profile ID",remoteValidationOptions:{viewStateMode:"enabled"}},{id:"contPH_masterCtrl_xnctrl357_fitverify_searchTpl_Panel1",border:false,xtype:"container",width:5},{id:"contPH_masterCtrl_xnctrl357_fitverify_sear....
    Attached Thumbnails Click image for larger version. 

Name:	cdn3.png 
Views:	54 
Size:	14.3 KB 
ID:	5349  
  10. #10
    Thanks for your support. However, I see that external resources are not loaded via script tag.
    How do you see that? Did you update your CDN with new Ext.Net files?
Page 1 of 3 123 LastLast

Similar Threads

  1. [CLOSED] Ext.net.DirectMethod.request webservice call and isUpload
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 28, 2012, 9:11 AM
  2. DirectEvents and WebApi json request call
    By Pyropace in forum 2.x Help
    Replies: 4
    Last Post: Sep 05, 2012, 11:42 PM
  3. [CLOSED] Slate Theme - Invalid web resource request error
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Oct 20, 2011, 11:30 AM
  4. Replies: 1
    Last Post: Sep 20, 2011, 6:02 AM
  5. Page_ Ajax Load Complete BUG on Ajax Request
    By jeybonnet in forum 1.x Help
    Replies: 8
    Last Post: Jun 22, 2009, 11:19 AM

Posting Permissions