Re: (Browser) Widget documentation
On 9/20/17 3:51 PM, Ben Rubinstein via use-livecode wrote: Now I feel even more foolish But it makes the rest of us look good. We owe you. Any one of us might be next. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
Re: (Browser) Widget documentation
Now I feel even more foolish for not finding any of these. Thanks Ali, everyone! Ben On 20/09/2017 17:29, Ali Lloyd via use-livecode wrote: Alternatively, right-click on the widget in question and choose 'Show Documentation' On Wed, Sep 20, 2017 at 5:03 PM hh via use-livecode < use-livecode@lists.runrev.com> wrote: Ben R. wrote: General question: where can users find a reference to the supported properties/commands/functions of widgets? E.g. the properties of a Segmented Control widget? More specific immediate question: where can I find a reference for the Browser widget? In the dictionary (sorted by random) or in tinydict (sorted) choose the widget in the API menu. Ben R. wrote: Even more specific question: how can I interrogate the contents of the loaded page in a browser widget? e.g. the dictionary has -- Use JavaScript to hide "myButton" in the page displayed in a browser widget. do "document.getElementById('myButton').hidden = 'hidden'" in widget "myBrowser" But how would I get the value of document.getElementById('myButton').hidden back to LiveCode? ___ 1. In your card's script (for example) put: on openCard set the javascriptHandlers of widget "browser" to "jsGetValue" end openCard -- handles the return from the browser on jsGetValue pValue put pValue into fld "OUT" end jsGetValues ___ 2. Then use this as follows. put "var x=document.getElementById('myButton').value; liveCode.jsGetValue(x);" into js do js in widget "browser" Note. There may be more javascriptHandlers, separate them by cr. (Was a bug in some versions on Win: If not working separate them by comma). You may use more than one argument for javascriptHandlers. That's all. You don't have to declare them (here jsGetValue) as function in the HTML document. HTH, H. ___ 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 ___ 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 ___ 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
Re: (Browser) Widget documentation
That's excellent, thanks H! Ben On 20/09/2017 17:03, hh via use-livecode wrote: Ben R. wrote: General question: where can users find a reference to the supported properties/commands/functions of widgets? E.g. the properties of a Segmented Control widget? More specific immediate question: where can I find a reference for the Browser widget? In the dictionary (sorted by random) or in tinydict (sorted) choose the widget in the API menu. Ben R. wrote: Even more specific question: how can I interrogate the contents of the loaded page in a browser widget? e.g. the dictionary has -- Use JavaScript to hide "myButton" in the page displayed in a browser widget. do "document.getElementById('myButton').hidden = 'hidden'" in widget "myBrowser" But how would I get the value of document.getElementById('myButton').hidden back to LiveCode? ___ 1. In your card's script (for example) put: on openCard set the javascriptHandlers of widget "browser" to "jsGetValue" end openCard -- handles the return from the browser on jsGetValue pValue put pValue into fld "OUT" end jsGetValues ___ 2. Then use this as follows. put "var x=document.getElementById('myButton').value; liveCode.jsGetValue(x);" into js do js in widget "browser" Note. There may be more javascriptHandlers, separate them by cr. (Was a bug in some versions on Win: If not working separate them by comma). You may use more than one argument for javascriptHandlers. That's all. You don't have to declare them (here jsGetValue) as function in the HTML document. HTH, H. ___ 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 ___ 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
Re: (Browser) Widget documentation
First stop is the Dictionary. Use the API drop down menu to select the widget - Segmented Control or Browser. I'm an idiot - I looked in the API tab, and the Guide tab, and somehow didn't notice that the API menu wasn't limited to LCS/LCB. Some people can't be helped! thanks Brian, Ben On 20/09/2017 16:54, Brian Milby via use-livecode wrote: First stop is the Dictionary. Use the API drop down menu to select the widget - Segmented Control or Browser. I'm not sure about the second question (but I know it is possible, just don't know the details). On Wed, Sep 20, 2017 at 9:28 AM, Ben Rubinstein via use-livecode < use-livecode@lists.runrev.com> wrote: General question: where can users find a reference to the supported properties/commands/functions of widgets? E.g. the properties of a Segmented Control widget? More specific immediate question: where can I find a reference for the Browser widget? Even more specific question: how can I interrogate the contents of the loaded page in a browser widget? e.g. the dictionary has -- Use JavaScript to hide "myButton" in the page displayed in a browser widget. do "document.getElementById('myButton').hidden = 'hidden'" in widget "myBrowser" But how would I get the value of document.getElementById('myButton').hidden back to LiveCode? TIA, Ben ___ 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 ___ 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 ___ 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
Re: (Browser) Widget documentation
The list of extension APIs will be sorted in 9 DP 9 (Thanks to Brian!) On Wed, Sep 20, 2017 at 5:29 PM Ali Lloydwrote: > Alternatively, right-click on the widget in question and choose 'Show > Documentation' > > On Wed, Sep 20, 2017 at 5:03 PM hh via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> > Ben R. wrote: >> > General question: where can users find a reference to the supported >> > properties/commands/functions of widgets? E.g. the properties of a >> Segmented >> > Control widget? >> > More specific immediate question: where can I find a reference for the >> Browser widget? >> >> In the dictionary (sorted by random) or in tinydict (sorted) choose the >> widget in the API menu. >> >> > Ben R. wrote: >> > Even more specific question: how can I interrogate the contents of the >> loaded >> > page in a browser widget? e.g. the dictionary has >> > >> > -- Use JavaScript to hide "myButton" in the page displayed in a >> browser widget. >> > do "document.getElementById('myButton').hidden = 'hidden'" in >> widget "myBrowser" >> > >> > But how would I get the value of >> document.getElementById('myButton').hidden >> > back to LiveCode? >> >> ___ 1. In your card's script (for example) put: >> >> on openCard >>set the javascriptHandlers of widget "browser" to "jsGetValue" >> end openCard >> >> -- handles the return from the browser >> on jsGetValue pValue >>put pValue into fld "OUT" >> end jsGetValues >> >> ___ 2. Then use this as follows. >> >> put "var x=document.getElementById('myButton').value; >> liveCode.jsGetValue(x);" into js >> do js in widget "browser" >> >> Note. >> There may be more javascriptHandlers, separate them by cr. >> (Was a bug in some versions on Win: If not working separate them by >> comma). >> You may use more than one argument for javascriptHandlers. >> That's all. >> You don't have to declare them (here jsGetValue) as function in the HTML >> document. >> >> HTH, H. >> ___ >> 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 >> > ___ 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
Re: (Browser) Widget documentation
Alternatively, right-click on the widget in question and choose 'Show Documentation' On Wed, Sep 20, 2017 at 5:03 PM hh via use-livecode < use-livecode@lists.runrev.com> wrote: > > Ben R. wrote: > > General question: where can users find a reference to the supported > > properties/commands/functions of widgets? E.g. the properties of a > Segmented > > Control widget? > > More specific immediate question: where can I find a reference for the > Browser widget? > > In the dictionary (sorted by random) or in tinydict (sorted) choose the > widget in the API menu. > > > Ben R. wrote: > > Even more specific question: how can I interrogate the contents of the > loaded > > page in a browser widget? e.g. the dictionary has > > > > -- Use JavaScript to hide "myButton" in the page displayed in a > browser widget. > > do "document.getElementById('myButton').hidden = 'hidden'" in > widget "myBrowser" > > > > But how would I get the value of > document.getElementById('myButton').hidden > > back to LiveCode? > > ___ 1. In your card's script (for example) put: > > on openCard >set the javascriptHandlers of widget "browser" to "jsGetValue" > end openCard > > -- handles the return from the browser > on jsGetValue pValue >put pValue into fld "OUT" > end jsGetValues > > ___ 2. Then use this as follows. > > put "var x=document.getElementById('myButton').value; > liveCode.jsGetValue(x);" into js > do js in widget "browser" > > Note. > There may be more javascriptHandlers, separate them by cr. > (Was a bug in some versions on Win: If not working separate them by comma). > You may use more than one argument for javascriptHandlers. > That's all. > You don't have to declare them (here jsGetValue) as function in the HTML > document. > > HTH, H. > ___ > 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 > ___ 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
Re: (Browser) Widget documentation
> Ben R. wrote: > General question: where can users find a reference to the supported > properties/commands/functions of widgets? E.g. the properties of a Segmented > Control widget? > More specific immediate question: where can I find a reference for the > Browser widget? In the dictionary (sorted by random) or in tinydict (sorted) choose the widget in the API menu. > Ben R. wrote: > Even more specific question: how can I interrogate the contents of the loaded > page in a browser widget? e.g. the dictionary has > > -- Use JavaScript to hide "myButton" in the page displayed in a browser > widget. > do "document.getElementById('myButton').hidden = 'hidden'" in widget > "myBrowser" > > But how would I get the value of document.getElementById('myButton').hidden > back to LiveCode? ___ 1. In your card's script (for example) put: on openCard set the javascriptHandlers of widget "browser" to "jsGetValue" end openCard -- handles the return from the browser on jsGetValue pValue put pValue into fld "OUT" end jsGetValues ___ 2. Then use this as follows. put "var x=document.getElementById('myButton').value; liveCode.jsGetValue(x);" into js do js in widget "browser" Note. There may be more javascriptHandlers, separate them by cr. (Was a bug in some versions on Win: If not working separate them by comma). You may use more than one argument for javascriptHandlers. That's all. You don't have to declare them (here jsGetValue) as function in the HTML document. HTH, H. ___ 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
Re: (Browser) Widget documentation
First stop is the Dictionary. Use the API drop down menu to select the widget - Segmented Control or Browser. I'm not sure about the second question (but I know it is possible, just don't know the details). On Wed, Sep 20, 2017 at 9:28 AM, Ben Rubinstein via use-livecode < use-livecode@lists.runrev.com> wrote: > General question: where can users find a reference to the supported > properties/commands/functions of widgets? E.g. the properties of a > Segmented Control widget? > > More specific immediate question: where can I find a reference for the > Browser widget? > > Even more specific question: how can I interrogate the contents of the > loaded page in a browser widget? e.g. the dictionary has > > -- Use JavaScript to hide "myButton" in the page displayed in a > browser widget. > do "document.getElementById('myButton').hidden = 'hidden'" in > widget "myBrowser" > > But how would I get the value of document.getElementById('myButton').hidden > back to LiveCode? > > TIA, > > Ben > > ___ > 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 > ___ 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
(Browser) Widget documentation
General question: where can users find a reference to the supported properties/commands/functions of widgets? E.g. the properties of a Segmented Control widget? More specific immediate question: where can I find a reference for the Browser widget? Even more specific question: how can I interrogate the contents of the loaded page in a browser widget? e.g. the dictionary has -- Use JavaScript to hide "myButton" in the page displayed in a browser widget. do "document.getElementById('myButton').hidden = 'hidden'" in widget "myBrowser" But how would I get the value of document.getElementById('myButton').hidden back to LiveCode? TIA, Ben ___ 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