Solved

loading a chart before user action is not occured.

Posted on 2013-02-04
1
382 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
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…

856 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