Title: 'loader' attribute problem in panel Post by: officecode on December 26, 2018, 06:31:48 AM I encountered two problems when using the panel's loader property:
1) If the url in ajax is wrong, how do I use the function 'error' and give an error message? I tried to solve it in the onLoadError event, but it didn't work. 2) When using the loader, I must also set a url that is not empty, otherwise Ajax will not make a request. These two questions are puzzling and ask for help. Thank you! Here is the sample code: Code:
Title: Re: 'loader' attribute problem in panel Post by: stworthy on December 26, 2018, 07:03:26 PM 1. When the loading is error, the 'onLoadError' event fires.
Code: $('#p').panel({ 2. The is the default 'loader' definition, you can override it by yourself. Code: loader: function(param, success, error){ Title: Re: 'loader' attribute problem in panel Post by: officecode on December 27, 2018, 01:39:09 AM Tested with this code, no matter what the href changes to, the 'onLoadError' event will not fire.
Title: Re: 'loader' attribute problem in panel Post by: stworthy on December 27, 2018, 02:46:08 AM Please look at this example http://code.reloado.com/ejuveg4/edit#preview
Title: Re: 'loader' attribute problem in panel Post by: officecode on December 27, 2018, 04:26:58 AM It seems that this should be my local server problem. Thank you!
|