Posts

Showing posts with the label jquery ui

How to fix: jQuery UI progress bar not animating when indeterminate value

Once again I find myself in this situation: - I run into a small problem - I google it: can't find a solution - Try to fix it myself: success I am hoping that by posting this article I will help out a person or two. UPDATE :  a day later, the problem is back, this post is thereby useless. If you know a proper solution I'm all ears! ;-( What's the problem? The jQuery UI progress bar widget is useful in a lot of situations and it's easy to use. When you set its value to "false" (indeterminate/unset), the progress bar animates nicely. The end user feels like something is actually happening.  The problem I've been having is that the progress bar RANDOMLY doesn't animate in my project. I'm sure I must have done something wrong at some point, but the project is so huge that it would take too long to root out the issue on my end. As a result, my users are under the impression that my application has crashed and they reload the page (...

jQuery UI dialog centering ultimate fix

Image
UPDATE OCTOBER 2014 : jQuery UI was recently updated and the dialogs finally position correctly at the center of the screen! Don't specify any position for your dialog and it'll in the right place by default. Glad they got that sorted out! [This post is now obsolete] I have been having issues positioning jQuery UI dialogs for a long time. What I expect from a modal dialog is simple: it must be centered on the screen if I scroll the page, the dialog should still be at the center of the screen (fixed position) when I invoke the dialog for example by clicking a link, the page must not scroll either when I close the dialog, the page must not scroll up or down Simple requirements you say; though for some reason I haven't been able to achieve this with basic jQuery UI functions. I would *always* have at least one of the following issues, even after trying a good number of fixes recommended online: dialog shows up off screen (scrolling is required to be able t...