Welcome Guest Search | Active Topics |

How to Put a Processing image before visualizing the JQchart
MagnaQuest
#1 Posted : Thursday, February 25, 2016 6:19:12 AM(UTC)
Rank: Newbie

Groups: jQueryChart, Registered
Joined: 1/28/2016(UTC)
Posts: 7

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
Hi,
I want to show a processing image before binding the jqchart to the specified id in the framework. Is there any option to show a loader before visualizing the chart ?





Thanks & Regards,
Magnaquest.
Dragan
#2 Posted : Monday, February 29, 2016 7:50:41 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

you can use something like:

Code:
<img id="loading" src="~/Images/spinner.gif" alt="Updating ..." style="display: none;" />

$(document).ready(function () {

      $("#loading").show();

      $.ajax({
                url: url,
                success: function (data) {

            $("#loading").hide();
                    // craeate your chart
            initChart(data);
                }
            });
  });
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.091 seconds.