Solved

loading a chart before user action is not occured.

Posted on 2013-02-04
1
375 Views
Last Modified: 2013-02-11
I want to make a chart page, 4 or 6 charts per  one page.
Whenever user clicks the 'left' or 'right' arrow, the page will be changed.

However the problem is the performance to draw charts them all.
So I thought. While one page comes to view, two chart pages are loaded in background.

This is my question. Is it possible to load page in background and the page is waiting until user click some button.

If there is good idea than I think, please recommend me.
( i'm using jqwidget )
0
Comment
Question by:gamjaradio
1 Comment
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 38853838
If your page is loading slow, it is not from the chartes.  http://jsbin.com/owulot/1/  If you click on the link, I have a handful of chartes all loading at once.

It's probably your query with your database that is causing things to slow down and there is not just one thing to do.  Some hints:

Use only the data you need.  If your table has 20 fields, and you are just using 2 of them, then your sql should not be, "select * from mytable...."   Instead, "select field1,field2 from mytable..."

Avoid wild cards in your query.

Load your data using ajax
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now