Jump to content

FastCards

uniGUI Subscriber
  • Posts

    82
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by FastCards

  1. Long-standing UniGUI user. Live system running since 2014.

    Recently, for only a few users, IIS logs show multiple codes 304 followed by a 401. When this happens, my software creates multiple sessions for the same IP address until the 250 limit is reached. The user gets stuck on the "Launching" page. Other users get the "Max sessions reached" message.

    Can anyone give me any hints as to how to fix this or where to look for answers? I am confused as to why only a few users are affected.

    Thanks

     

     

     

  2. Abak,

     

    They didn't disclose which Firewall was in use or provide any further info. The interesting thing is that they said that the site wasn't blocked, and yet something in the firewall config was blocking access to the site.

     

    My concern was to ensure that the problem wasn't caused by the upgrade I had just installed or by a server issue. If one client out of many is having difficulties accessing your site it really has to be something at their end causing the problem. However, thankfully it has been resolved and the client is happy, which is the #1 concern.

    • Upvote 1
  3. alfr: good idea re browser dev tools. I know the affected user is running Chrome so will try this. The firewall may need to be inspected too.

     

    Farshad: At the moment this is a permanent situation for one specific user. Stuck on "launching..." every time. I setup the previous version of the DLL to make sure that the upgrade wasn't the problem. It wasn't, same situation.

     

    The user did manage to log in on a different PC in the office (same network/IP Address) so I've concluded that it must be a PC issue. The user was convinced it was something to do with her login to my software; however, she never even reached the login page so I have discounted that idea.

     

    This situation is fine in one sense: it's not something that I can resolve via the DLL or the server. In another sense it is annoying as I would really like to get to the bottom of why this happens (and share this with the Forum for future reference)

     

    I will continue to investigate and will report back if anything is discovered. Thanks to all for ideas/assistance.

     

    Andy

  4. Has anyone come across users getting stuck on the "Loading..." screen? This only affects 3 of my users out of 400+ and those 3 all work for the same company and therefore use the same network. 2 of the 3 users retried a few times and the damn thing fixed itself. One is left unable to get past Loading. 

     

    Everyone else is fine so no issues with path settings on the server, I think. No issues recorded in UniGUI logs. I can see the user's IP address in the IIS logs but can't see any further problem. Any tips on where to look?

     

    I upgraded the DLL over the weekend and it seems very coincidental that this has happened now. I'm just confused as to what is causing an issue limited to such few users.

     

    Thanks

    Andy

  5. DD,

     

    Thanks for your help. I'm aware that you should only load google charts one. If I have 5 UniURLFrames on the same UniFrame, do I need to load google charts in each one or can I load if for the UniFrame as a whole?  The 5 charts are redrawn when the user changes a filter on the screen.

     

    If I load it for the UniFrame, where is the best place to do it and can the 5 UniURLFrames access it?

     

    Apologies: my Javascript/HTML skills are not the best. It is a tribute to UniGUI that 99% of what I code is in Delphi and isolates me from the inner workings of JS/HTML.

     

    Thanks

    Andy

  6. Thanks for the link but that example is for the old google charts API.

     

    The problem I have is with loading google charts: the command is <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
     
    If I put this in each UniURLFrame.HTML on my page (which has multiple charts) I get a message saying loader.js can only be loaded once. In that case, how do I load it? Do I use AddJS and if so where?
     
    Thanks
    Andy
  7. I load the code below into a UniURLFrame to display a Google Chart. This works great unless I put more than one UrlFrame on the same form.This is because the Google Charts bit (loaders shown in red text) should only be loaded once per web page. Can anyone tell me how to load these lines separately (AddJS? for example)

     

     

    <!DOCTYPE html> 

    <html> 

      <head> 

        <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> 

        <script type="text/javascript"> 

            google.charts.load('current', {'packages':['gauge']}); 

            google.charts.setOnLoadCallback(drawGauge); 

            var chartOptions = {min: 90, 

                                max: 100, 

                                width: 0, 

                                height: 0, 

                                redFrom: 90, 

                                redTo: 96, 

                                yellowFrom: 96, 

                                yellowTo: 99, 

                                greenFrom: 99, 

                                greenTo: 100} 

            var theGauge; 

            function drawGauge()

            { 

              var data = google.visualization.arrayToDataTable([ 

                ['Label','Value']

                ,['All', 98.39] 

                 ]);

               Gauge = new google.visualization.Gauge(document.getElementById('Gauge_div')); 

               Gauge.draw(data, chartOptions); 

            } 

        </script>  

      </head> 

      <body> 

        <div id="Gauge_div"></div> 

      </body> 

    </html> 

  8. Can someone clarify:

     

    1. If I set EnableSynchronousOperations to True, does this only has an effect if/when I call UniSession.Synchronize? If (rather pointlessly) I never call Synchronize then it has zero effect?

     

    2. Can someone explain in simple terms what happens when Synchronize is called? 

     

    Thanks

    Andy.

     

    Uni 1.0.0.1402

    Delphi XE3

×
×
  • Create New...