Solved

loading a chart before user action is not occured.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

895 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

15 Experts available now in Live!

Get 1:1 Help Now