Couple of questions about the browser widget

Terry Judd terry.judd at unimelb.edu.au
Wed Aug 16 16:10:51 EDT 2017


Perfect! Interesting about the hScrollbar setting – I seem to be unable to deselect that (or vScrollbar) in the property editor – or change them via script (both are stuck on true).

Thanks,

Terry...

On 16/08/2017 11:49 pm, "use-livecode on behalf of Mike Bonner via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:

    Ty HH and jonathan, its working now for me.
    
    Terry:
    I have this in my temporary file..
    <html><body>
    Hi!
    <script>
    window.onload = function(e) {
    liveCode.lcHeight(document.body.scrollHeight);
    }
    
    </script>
    <img src="file:///C:/Users/Mike/Desktop/dtstuff/billiewow.jpg">
    </body>
    </html>
    
    It loads my picture fine, and (now that i have capitalization right.. DOH)
    it sends a livecode message called lcHeight which is in the
    javascripthandlers for the widget it loads into.
    
    For the handler in LC I have this..
    
    command lcHeight pHeight
         set the height of widget 1 to pHeight + 23 -- +23 because I have the
    horizontal scrollbar showing
         set the topleft of widget 1 to the topleft of this card
    end lcHeight
    
    On Wed, Aug 16, 2017 at 6:42 AM, Terry Judd via use-livecode <
    use-livecode at lists.runrev.com> wrote:
    
    > Thanks hh that's really helpful stuff. Thanks also to Jonathan and Mike.
    >
    > Regards,
    >
    > Terry...
    >
    > Sent from my iPad
    >
    > > On 16 Aug 2017, at 9:00 pm, hh via use-livecode <
    > use-livecode at lists.runrev.com> wrote:
    > >
    > > Additional to Jonathan's instructions.
    > >
    > > Basic:
    > > http://forums.livecode.com/viewtopic.php?f=7&t=29589
    > >
    > > Medium: Get MouseEvents from browser widget
    > > http://forums.livecode.com/viewtopic.php?p=154496#p154496
    > >
    > > and others there (7 Browser Widget usage examples) ...
    > >
    > > _______________________________________________
    > > use-livecode mailing list
    > > use-livecode at lists.runrev.com
    > > Please visit this url to subscribe, unsubscribe and manage your
    > subscription preferences:
    > > http://lists.runrev.com/mailman/listinfo/use-livecode
    > >
    >
    >
    > _______________________________________________
    > use-livecode mailing list
    > use-livecode at lists.runrev.com
    > Please visit this url to subscribe, unsubscribe and manage your
    > subscription preferences:
    > http://lists.runrev.com/mailman/listinfo/use-livecode
    >
    _______________________________________________
    use-livecode mailing list
    use-livecode at lists.runrev.com
    Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
    http://lists.runrev.com/mailman/listinfo/use-livecode
    
    



More information about the use-livecode mailing list