Welcome Guest, Not a member yet? Register   Sign In
creating a delay
#7

(This post was last modified: 07-08-2021, 05:11 PM by richb201.)

Well, I am still having an issue with this. I am using koolreport which is not super fast. When I call my page it renders most of the page but there is one section of charts that usually (i'd say 80% of the time) doesn't render on the first try, on a large report. Now if I then press the browser refresh, the chart then appears. Seems to me that the browser page is displaying before koolreport engine is done rendering. When I press refresh, no new code is running, right? The vender of koolereport is intent on me debugging this myself and that my data is not appearing fast enough. I am getting data from AWS RDS and then processing it. My sql sucks.  But CI3 is synchronous, not async, right?   I think the fact that the refresh works 100% of the time means something else is happening and it might not be a great answer but slowing down the browser might be my only option?

How about delaying for a few seconds and then having CI3 call for a refresh? 

Perhaps the answer is refreshing the browser window from my CI3 application?

People have mentioned using sleep. but how can I sleep the browser without sleeping the CI3 processing the data? 

Well, I am still having an issue with this. I am using koolreport which is not super fast. When I call my page it renders most of the page but there is one section of charts that usually (i'd say 80% of the time) don't render on the first try. Now if I then press the browser refresh, the chart then appears. Seems to me that the page is displaying before the rendering is done. When I press refresh, no new code is running. The vender koolereport is intent on me debugging this and that my data is not appearing fast enough. I am getting data from AWS RDS. Is the data being loaded asynch? I think the fact that the refresh works 100% of the times means something else is happening and it might not be a great answer but slowing down the browser might be my only option?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
creating a delay - by richb201 - 06-28-2021, 10:05 PM
RE: creating a delay - by php_rocs - 06-29-2021, 06:11 AM
RE: creating a delay - by richb201 - 06-29-2021, 07:11 AM
RE: creating a delay - by includebeer - 06-29-2021, 05:38 PM
RE: creating a delay - by paulbalandan - 06-30-2021, 01:03 AM
RE: creating a delay - by richb201 - 06-30-2021, 04:30 AM
RE: creating a delay - by richb201 - 07-08-2021, 04:56 PM
RE: creating a delay - by John_Betong - 07-08-2021, 05:55 PM
RE: creating a delay - by richb201 - 07-08-2021, 06:54 PM
RE: creating a delay - by paliz - 07-09-2021, 01:47 AM
RE: creating a delay - by richb201 - 07-09-2021, 09:33 AM
RE: creating a delay - by richb201 - 07-10-2021, 05:57 AM
RE: creating a delay - by Gary - 07-11-2021, 08:45 AM
RE: creating a delay - by richb201 - 07-13-2021, 10:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB