Hmmm additional info

the reason that this worked:

browserFrameDocumentLoadComplete

worked was because there was in iframe on the page which loaded.  pURL was not 
the parent page itself, but the first child frame inside the page

browserDocumentLoadComplete

is not firing for any URL I pass to the widget.

BR



On March 11, 2016 at 11:48:04 AM, Sannyasin Brahmanathaswami 
(bra...@hindu.org<mailto:bra...@hindu.org>) wrote:


I have some HTML 5 modules being developed using Python. Currently

e.g.

http://fatenation.info/Hinduism/

Note the long delay.. of course the developer needs to provide a splash screen, 
OTOH I suspect this is a case we will face frequently as we go forward

1) set some URL for card with the Browser widget on it
2) expect some delay: card is "dead white"

Of course first "instinct" is to go looking for a finished loading msg.

The LC8 DP15 dictionary guide on the browser widget  has this "handle the 
browserDocumentLoadComplete pURL... to perform an action when a URL has 
finished loading

OK so we put this into the stack script:

######## Web Browser Methods
local pURL

on setBrowserURL pCard, pURL
   set the URL of widget pCard of card pCard to pURL
end setBrowserURL

ON browserDocumentLoadComplete pURL pURL
 put "It is running now." into fld "currentLocation"
end browserDocumentLoadComplete pURL


And this into the button that drives the URL to the browser widget:


on mouseUp

put "http://fatenation.info/Hinduism/"; into pURL
setBrowserURL "SivaBrowserLandscape", pURL
go to card "SivaBrowserLandscape"

end mouseup

But the browserDocumentLoadComplete  is not triggered, by loading a simple HTML 
page

like

http://www.himalayanacademy.com/taka

But this does get sent to the stack script: with "Frame" added:

ON browserFrameDocumentLoadComplete pURL
 put "It is running now." into fld "currentLocation"
end browserFrameDocumentLoadComplete


but neither

browserDocumentLoadComplete

or

browserFrameDocumentLoadComplete

are triggered from this URL in the browser widget:

http://fatenation.info/Hinduism/

Any solutions?  Music plays from beginning even while we wait for image content 
to appear. Still, no msg set to the browser widget












_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to