Solved

loading a chart before user action is not occured.

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

777 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