jQWidgets Forums

jQuery UI Widgets Forums Navigation Tabs closeButtons to hide

This topic contains 2 replies, has 2 voices, and was last updated by  twellb 10 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • closeButtons to hide #73189

    twellb
    Blocked

    Just to let You know:

    I have a two storey system of tabs inside a SPA, where the low level tabs reside inside the pages of the high level SuperTab.
    This allows me to load .html and .js (self executing) files and string ressources dynamically not regarding the help files.

    It was a design matter NOT to allow the subPages to be closed by closeButtons of the tab – the pages offer reset
    and close buttons themselves depending from the screens purpose.

    But: after loading the .html and .js through $(#???=.get() and inserting them into a page the close Buttons reappeared – I repaired it with .hideAllCloseButtons(), but I think this somehow has to be fixed.

    	function loadPage(url, url2,tabname, pagename) {
                     // load html
     		$.get(url, function (data) {
    	                var theTab = $('#'+tabname);
     			var length = theTab.jqxTabs('length');
     			var thePage = -1;
     			for (var i = 0;i < length;i++) {
    				 if (pagename === theTab.jqxTabs('getTitleAt', i)) {
     					thePage = i;				}
    			} 	
     			//theTab.jqxTabs('hideAllCloseButtons'); 
     			theTab.jqxTabs('focus');
     			if (thePage < 0) {/** does not exist **/
     				theTab.jqxTabs('addLast', pagename, data);	
     				theTab.jqxTabs('select', length);	
     				theTab.jqxTabs('ensureVisible', length);
    			} else {
    				theTab.jqxTabs('setContentAt', thePage, data); 
    				theTab.jqxTabs('select', thePage);	
    				theTab.jqxTabs('ensureVisible', thePage);
    			}
    			theTab.jqxTabs('hideAllCloseButtons'); // not enough
                            // load .js
    			$.get(url2, function (data2) {theTab.jqxTabs('hideAllCloseButtons');});
                            // this finally helped
    			
    		});
    	/** //},'script'); //},'html'); **/
    	}
    closeButtons to hide #73197

    ivailo
    Participant

    Hi twellb,

    Try to update to the latest version 3.8.1 and if the problem stays, check the the error log.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    closeButtons to hide #73200

    twellb
    Blocked

    It is version 3.8.1.
    No errors reported.

    -thomas

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.