EasyUI Forum
September 19, 2025, 01:27:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Report one issue about href and cache property in dialog  (Read 16047 times)
Deiva
Newbie
*
Posts: 9


View Profile Email
« on: May 14, 2012, 07:02:39 AM »

using 1.2.6 version and chrome (17.0.963.56m) browser.
There are two issues happen to me, when I use dialog function.
1. when it sets cache is false, the data can not reload remote data while open it again.
2. when it initiates, it seems to get remote data twice. (I can see the accessed logs from chrome)

Dialog Html
Code:
 <div id="dlg" class="easyui-dialog" closed="true" buttons="#dlg-buttons"></div>
<div id="dlg-buttons">
<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="saveUser()">Save</a>
</div>

JavaScript
Code:
    function add() {
        $('#dlg').dialog({
            title: 'New Title',
            width: 600,
            height: 300,
            cache: false,
            closed: false,
            href: 'ClientSiteAct.aspx'
        });
    }
Logged
Deiva
Newbie
*
Posts: 9


View Profile Email
« Reply #1 on: May 17, 2012, 08:07:23 AM »

Could someone help me out, how to make it reads remote data with property Href when it open?
It is very important  now.
Please!!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #2 on: May 17, 2012, 06:30:07 PM »

See the code below:
<div id="dlg" class="easyui-dialog" closed="true" buttons="#dlg-buttons"></div>
You have create the dialog, but sometime later you call:
$('#dlg').dialog({...});
You create dialog again. That is why data is loaded again.

For the cache issue, download the fixed dialog plugin from
http://www.jeasyui.com/easyui/plugins/jquery.parser.js
http://www.jeasyui.com/easyui/plugins/jquery.dialog.js

you can also call 'refresh' method while open the dialog:
$('#dlg').dialog('open').dialog('refresh');
Logged
Deiva
Newbie
*
Posts: 9


View Profile Email
« Reply #3 on: May 18, 2012, 02:47:01 AM »

Thank you very much!
It is fixed from your point.
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!