Display a loading bar before the entire page is loaded

Use a div #overlay with your loading info / .gif that will cover all your page: <div id=”overlay”> <img src=”loading.gif” alt=”Loading” /> Loading… </div> jQuery: $(window).load(function(){ // PAGE IS FULLY LOADED // FADE OUT YOUR OVERLAYING DIV $(‘#overlay’).fadeOut(); }); Here’s an example with a Loading bar: jsBin demo ;(function(){ function id(v){ return document.getElementById(v); } function … Read more

Display a loading overlay on Android screen

Maybe too late, but I guess somebody might find it useful. Activity: public class MainActivity extends Activity implements View.OnClickListener { String myLog = “myLog”; AlphaAnimation inAnimation; AlphaAnimation outAnimation; FrameLayout progressBarHolder; Button button; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewById(R.id.button); progressBarHolder = (FrameLayout) findViewById(R.id.progressBarHolder); button.setOnClickListener(this); } @Override public void onClick(View v) … Read more

Text on a ProgressBar in WPF

Both of the prior responses (creating a new CustomControl or an Adorner) are better practices, but if you just want quick and dirty (or to understand visually how to do it) then this code would work: <Grid Width=”300″ Height=”50″> <ProgressBar Value=”50″ /> <TextBlock HorizontalAlignment=”Center” VerticalAlignment=”Center”> My Text </TextBlock> </Grid> Just keep in mind that the … Read more

Dynamically change bootstrap progress bar value when checkboxes checked

Try this maybe : Bootply : http://www.bootply.com/106527 Js : $(‘input’).on(‘click’, function(){ var valeur = 0; $(‘input:checked’).each(function(){ if ( $(this).attr(‘value’) > valeur ) { valeur = $(this).attr(‘value’); } }); $(‘.progress-bar’).css(‘width’, valeur+’%’).attr(‘aria-valuenow’, valeur); }); HTML : <div class=”progress progress-striped active”> <div class=”progress-bar” role=”progressbar” aria-valuenow=”0″ aria-valuemin=”0″ aria-valuemax=”100″> </div> </div> <div class=”row tasks”> <div class=”col-md-6″> <p><span>Identify your campaign audience.</span>Who … Read more

Android WebView progress bar

For a horizontal progress bar, you first need to define your progress bar and link it with your XML file like this, in the onCreate: final TextView txtview = (TextView)findViewById(R.id.tV1); final ProgressBar pbar = (ProgressBar) findViewById(R.id.pB1); Then, you may use onProgressChanged Method in your WebChromeClient: MyView.setWebChromeClient(new WebChromeClient() { public void onProgressChanged(WebView view, int progress) { … Read more

Tkinter: How to use threads to preventing main event loop from “freezing”

When you join the new thread in the main thread, it will wait until the thread finishes, so the GUI will block even though you are using multithreading. If you want to place the logic portion in a different class, you can subclass Thread directly, and then start a new object of this class when … Read more

Windows 7 progress bar in taskbar in C#?

I just wanted to add some taskbar progress animation to my WinForms application, without having to download code packs or switch to WPF to use TaskbarItemInfo. The solution was a class that uses the ITaskbarList3 interface: using System; using System.Runtime.InteropServices; public static class TaskbarProgress { public enum TaskbarStates { NoProgress = 0, Indeterminate = 0x1, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)