jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts

  • emphram
    Participant

    Here is the solution if anyone needs it:

    function showProgressBar() {
    	//GET WINDOW HEIGHT AND WIDTH
    	var winHeight = $(window).height();
    	var winWidth = $(window).width();
    	
    	//KEEP CENTERED
    	var posX = (winWidth/2) - ($('#progressBarWindow').width()/2) + $(window).scrollLeft();
    	var posY = (winHeight/2) - ($('#progressBarWindow').height()/2) + $(window).scrollTop();
    	$('#progressBarWindow').jqxWindow({position: {x: posX, y: posY}});
    	
    	//KEEP CENTERED WHEN SCROLLING
    	$(window).scroll(function() {
    		winHeight = $(window).height();
    		winWidth = $(window).width();
    		posX = (winWidth/2) - ($('#progressBarWindow').width()/2) + $(window).scrollLeft();
    		posY = (winHeight/2) - ($('#progressBarWindow').height()/2) + $(window).scrollTop();
    		$('#progressBarWindow').jqxWindow({position: {x: posX, y: posY}});
    	});
    	
    	//KEEP CENTERED EVEN WHEN RESIZING
    	$(window).resize(function() {
    		winHeight = $(window).height();
    		winWidth = $(window).width();
    		posX = (winWidth/2) - ($('#progressBarWindow').width()/2) + $(window).scrollLeft();
    		posY = (winHeight/2) - ($('#progressBarWindow').height()/2) + $(window).scrollTop();
    		$('#progressBarWindow').jqxWindow({position: {x: posX, y: posY}});
    	});
    	
    	//UPDATE PROGRESSBAR
    	progressBarInterval = setInterval(function() {
    		var val = $('#progressBar').jqxProgressBar('val');
    		$('#progressBar').jqxProgressBar('actualValue',val+10);
    	},100)
    	
    	//OPEN WINDOW
    	$('#progressBarWindow').jqxWindow('open');
    }

    After this you should have a close window function, and get rid of the event handlers and timer interval (store handle in global variable).


    emphram
    Participant

    Hello everyone, just wanted to mention that I found the solution to my problem. Thanks anyways.


    emphram
    Participant

    Is there an example of using letter sized pages with the editor? Or would you reccomend not doing this inside of the content area of the editor, but instead use the inline editor on content sections of the page, which are controlled by a third party app that I would write?

    in reply to: Vertical tabs? (or menu?) Vertical tabs? (or menu?) #56641

    emphram
    Participant

    Ok, thanks for the clarification. Are they a planned feature?

    in reply to: Vertical tabs? (or menu?) Vertical tabs? (or menu?) #56586

    emphram
    Participant

    Well, I just wanted to add that I just found the vertical menu example, but is there a vertical tab example or functionality?

    in reply to: Default android behaviour… Default android behaviour… #56583

    emphram
    Participant

    Thanks, this fixed it for me.

    Have a nice day.

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