EasyUI Forum
May 13, 2024, 11:39:34 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: easyui 1.4 tab bug!  (Read 10024 times)
wh19890605
Newbie
*
Posts: 11


View Profile Email
« on: August 04, 2014, 04:33:18 AM »

Tabs use of content when loading html or js js will perform two times.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: August 04, 2014, 04:54:32 AM »

Please provide an example to demonstrate your issue.
Logged
wh19890605
Newbie
*
Posts: 11


View Profile Email
« Reply #2 on: August 04, 2014, 05:23:53 AM »

function addTab(title, url, iconCls) {

            iconCls = iconCls || 'icon-home';

            if ($('#tabs').tabs('exists', title)) {
                $('#tabs').tabs('select', title);
            } else {
                $('#tabs').tabs('add', {
                    title: title,
                    content: createFrame(url),
                    closable: true,
                    iconCls: iconCls
                });
            }

        }

   
        function createFrame(url) {
            var s = '<iframe scrolling="auto" frameborder="0"  src="' + url + '" style="width:100%;height:99.5%;"></iframe>';
            return s;
        }
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: August 04, 2014, 06:34:24 AM »

Please run the attached example 'test.zip'. The javascript code runs only once.
Logged
wh19890605
Newbie
*
Posts: 11


View Profile Email
« Reply #4 on: August 04, 2014, 05:15:25 PM »

The javascript code run two times on IE11
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #5 on: August 05, 2014, 01:29:33 AM »

Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4-patch.zip.
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!