Hello to all,
I am coming to you because of the problem I am having on IE and a long process on FF and Chrome.
In fact I am using CodeIgniter and I have :<br />
1. The view with simple code that will display my report using the ID showGraph
- <div id="showGraph_" style="margin-top:10px; width: 100%; height: 100%;">
-
- </div>
2. Through the controller i get the data from the DB and send to getGraph.php
- $result['totalreport'] = $this->getreport->getValues();
-
- $this->load->view('getGraph',$result);
- //getreport is the Model, the result fetched is passed into the view. Everything is ok by this level
3. On the getGraph I send my data to the `$.jqplot()` -- It is ok by here
4. Now the problem is on the main.js file . I do this:
- $('#showGraph_').load(url_base+"/user/getGraph");
On my main view I have the graph displayed. it is ok.
But now since the data are changing everytimes in the database, the web page has to load every x-secondes new data, so I add this to the code:
- var showGraphs = setInterval(function()
- {
- $("#showGraph_").load(url_base+"/user/getGraph");
- },
- 10000
- );
IE does not display any more,, nothing is showed again.<br />
Firefox and Chrome and displaying and it is refreshing avery 10000 millisecondes
but it is coming a long process, the computer becomes slow at a certain time means that the fact that it is loading it is coming too much for the browser to handle
How can I fix this?<br />
1. How can I display this load on IE ?<br />
2. How can I solve the problem of refreshing that makes the computer slows ?<br />
Thanks