browserDocumentLoadComplete fired twice Mobile

Sannyasin Brahmanathaswami brahma at hindu.org
Wed Jan 30 09:18:21 EST 2019


Had to add hack for mobile. This works

Local sHackDownloadCompleteFlag

on browserDocumentLoadComplete pURL
   add 1 to sHackDownloadCompleteFlag
   ntinfo ("download flag: " & sHackDownloadCompleteFlag)
   if pURL is not empty then
      dispatch "hideloader" to me 
   end if
   show widget "Body"
   show group "footer"
   put "true" into sLoadSuccessFlag
   put pURL into sBrowserURL
   browser_SetLastURL pURL
   put short name of the target into tBrowser
   
   ntInfo ( (the lockscreen) & "; show the target: " & tBrowser &"; " &  pURL)
   if tBrowser = "Body" then  
      if isMobile() = "true" then
         if sHackDownloadCompleteFlag = 2 then
            journal_AddEntry  
         end if 
      else
         journal_AddEntry 
      end if
   end if
   if  sHackDownloadCompleteFlag = 2 then
      put 0 into sHackDownloadCompleteFlag
   end if
end browserDocumentLoadComplete

Brahmanathaswami
 

On 1/30/19, 4:02 AM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:

    I learned something today, wow, the target only records mouse click budget record what the message it going to 
    
    This was useful. It is still being call twice on mobile. NetWork tracer output. 
    I have to set a flag or same



More information about the use-livecode mailing list