EasyUI Forum
October 10, 2024, 10:20:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Easyloader error ver 1.9.3 using Crome  (Read 3906 times)
WizPS
Jr. Member
**
Posts: 67


View Profile
« on: January 23, 2020, 06:35:51 AM »

When using Easyloader and Google Chrome I get an error. My EasyUI ver is 1.9.3 and below code works for first load, however when refreshing the page I get an error
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Pricing Service</title>
<script src="jquery/jquery-3.4.1.min.js"></script>
<script src="easyui/easyloader.js"></script>
<script>
using('layout', function () { });
</script>
</head>
<body class="easyui-layout">
<div data-options="region:'north',title:'North Title',split:true" style="height: 100px;"></div>
<div data-options="region:'south',title:'South Title',split:true" style="height: 100px;"></div>
<div data-options="region:'east',title:'East',split:true" style="width: 100px;"></div>
<div data-options="region:'west',title:'West',split:true" style="width: 100px;"></div>
<div data-options="region:'center',title:'center title'" style="padding: 5px; background: #eee;"></div
</body>
</html>

Please advice.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2274


View Profile Email
« Reply #1 on: January 23, 2020, 07:23:49 AM »

Please look at this example http://code.reloado.com/imufew4/edit#preview
Logged
WizPS
Jr. Member
**
Posts: 67


View Profile
« Reply #2 on: January 23, 2020, 09:07:20 AM »

This is what I get after a couple of push on refresh or "F5" in my Google Chrome.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2274


View Profile Email
« Reply #3 on: January 23, 2020, 09:39:38 PM »

Please try to add a dependency to the 'panel' module.
Code:
<script type="text/javascript">
$.extend(easyloader.modules, {
panel: {
js:'jquery.panel.js',
css:'panel.css',
dependencies:['parser']
}
});
</script>

This is the updated example.
http://code.reloado.com/imufew4/2/edit#preview
Logged
WizPS
Jr. Member
**
Posts: 67


View Profile
« Reply #4 on: January 26, 2020, 03:26:01 PM »

Yes, thats works fine. Thank you!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!