Re: .mp4 support in browser widget--Windows

2024-07-08 Thread Paul Dupuis via use-livecode
As customers once had to download and install Quicktime for Windows to 
use a wide variety of media in Revolution/Livecode Standalones under 
Windows (XP, 7, 8.x, 10, 11), when QT for Win became obsolete, we just 
switched to directing customers to download and install LAV Filters 
instead. They do this as a separate install, done by the end user. So 
far, this has not seemed to be an issue or inhibited adoption. It also 
does not run afoul of any licensing issues with embedding LAV Filters in 
a LC standalone.


Regardless, if you want media file parity with macOS on Windows in 
Livecode and do not want to wait for whatever dp version of LC 10 might 
have MMF in it, then you need to add a codec pack for DirectShow. There 
are other options for additional DirectShow codecs to LAV Filters. I 
can't recall any of them - just that we reviewed a bunch, most of which 
were commercial and required licensing. LAV Filters was reliable, 
functional, easy to install, and free. I'm not endorsing it for your 
application or anyone else's, just noting what worked for us.



On 7/8/2024 1:28 PM, Richard Gaskin via use-livecode wrote:

Paul Dupuis wrote:


There ARE methods to compress and store a 3rd party library
or application as a property in a Livecode standalone and
have the standalone on start up check (if there is a file
... or if there is a folder ...) for the app's presence and
if not present, install it by uncompressing and writing it
as a bnfile to the install location.

...

First, you may want to manually install LAV Filters and see
if it has the codecs for the media formats you want.


LAV Filters appear to be distributed under GPL v2:
https://github.com/Nevcairiel/LAVFilters/blob/master/COPYING

This invites an interesting exploration of the boundaries of GPL 
rights/responsibilities inheritance: does distributing GPL components within an 
app require the app distributing them to also be GPL?


I've seen many cases the other way around, FOSS projects like Ubuntu where some 
users can benefit from prioprietary packages like NVidia device drivers. Ubuntu 
and others seem content to have resolved the issue by not including components 
with incompatible licenses in their distributions, instead providing links the 
user may choose to follow to install them.

But the case in this thread is the inverse, a proprietary system with embedded 
distribution of Free and Open Source components. I haven't seen this before, so 
I did a quick search to see how others have handled it.  Here are a few of 
those discussions:

"Is it legal to use GPL code in a proprietary, closed-source program by putting it 
in a separate, standalone program?"
https://opensource.stackexchange.com/questions/7078/is-it-legal-to-use-gpl-code-in-a-proprietary-closed-source-program-by-putting-i

"Distributing a proprietary application together with GPL software"
https://softwareengineering.stackexchange.com/questions/211250/distributing-a-proprietary-application-together-with-gpl-software

"Can I use GPL software in a commercial application"
https://softwareengineering.stackexchange.com/questions/47032/can-i-use-gpl-software-in-a-commercial-application

"Can I use GPL, LGPL, MPL licensed packages with my application and make it closed 
source?"
https://softwareengineering.stackexchange.com/questions/125606/can-i-use-gpl-lgpl-mpl-licensed-packages-with-my-application-and-make-it-close

"Proprietary software using GPL modules"
https://opensource.stackexchange.com/questions/1459/proprietary-software-using-gpl-modules

"Can I use GPL libraries in a closed source project if only the output is 
distributed?"
https://opensource.stackexchange.com/questions/2338/can-i-use-gpl-libraries-in-a-closed-source-project-if-only-the-output-is-distrib


Spoiler: no one in those discussions has a definitive answer, but there is a 
general trend toward USING GPL components being viewed as okay but drawing the 
line at DISTRIBUTING those GPL components within a proprietary app.

And given both the rarity and the subtlety of details in such circumstancs, 
even the GPL FAQ more or less punts on this question:
https://www.gnu.org/licenses/gpl-faq.en.html#ManyDifferentLicenses


Of course I'm not an attorney, and even if I were I'm not contracted as your 
attorney, so nothing I write can be construed as legal advice.

But as someone who has a personal hobby of reading IP case law, and has contractual 
requirements in most of my professional work to demonstrate a reasonable good-faith 
effort to help my clients avoid potential risks with IP licensing, I tend to err on the 
side of "When in doubt, leave it out."

In cases where the best way to handle someone else's work is unclear, I often 
find it most useful to get clarification from the author of the work.  As the 
copyright holder, they would be in a position to grant, or deny, specific use 
cases.

--
Richard Gaskin
FourthWorld.com

___
use-livecode mailing list
use-livecode@l

Re: .mp4 support in browser widget--Windows

2024-07-08 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote:

> There ARE methods to compress and store a 3rd party library
> or application as a property in a Livecode standalone and
> have the standalone on start up check (if there is a file
> ... or if there is a folder ...) for the app's presence and
> if not present, install it by uncompressing and writing it
> as a bnfile to the install location.
...
> First, you may want to manually install LAV Filters and see
> if it has the codecs for the media formats you want.


LAV Filters appear to be distributed under GPL v2:
https://github.com/Nevcairiel/LAVFilters/blob/master/COPYING

This invites an interesting exploration of the boundaries of GPL 
rights/responsibilities inheritance: does distributing GPL components within an 
app require the app distributing them to also be GPL?


I've seen many cases the other way around, FOSS projects like Ubuntu where some 
users can benefit from prioprietary packages like NVidia device drivers. Ubuntu 
and others seem content to have resolved the issue by not including components 
with incompatible licenses in their distributions, instead providing links the 
user may choose to follow to install them.

But the case in this thread is the inverse, a proprietary system with embedded 
distribution of Free and Open Source components. I haven't seen this before, so 
I did a quick search to see how others have handled it.  Here are a few of 
those discussions:

"Is it legal to use GPL code in a proprietary, closed-source program by putting 
it in a separate, standalone program?"
https://opensource.stackexchange.com/questions/7078/is-it-legal-to-use-gpl-code-in-a-proprietary-closed-source-program-by-putting-i

"Distributing a proprietary application together with GPL software "
https://softwareengineering.stackexchange.com/questions/211250/distributing-a-proprietary-application-together-with-gpl-software

"Can I use GPL software in a commercial application"
https://softwareengineering.stackexchange.com/questions/47032/can-i-use-gpl-software-in-a-commercial-application

"Can I use GPL, LGPL, MPL licensed packages with my application and make it 
closed source?"
https://softwareengineering.stackexchange.com/questions/125606/can-i-use-gpl-lgpl-mpl-licensed-packages-with-my-application-and-make-it-close

"Proprietary software using GPL modules"
https://opensource.stackexchange.com/questions/1459/proprietary-software-using-gpl-modules

"Can I use GPL libraries in a closed source project if only the output is 
distributed?"
https://opensource.stackexchange.com/questions/2338/can-i-use-gpl-libraries-in-a-closed-source-project-if-only-the-output-is-distrib


Spoiler: no one in those discussions has a definitive answer, but there is a 
general trend toward USING GPL components being viewed as okay but drawing the 
line at DISTRIBUTING those GPL components within a proprietary app.

And given both the rarity and the subtlety of details in such circumstancs, 
even the GPL FAQ more or less punts on this question:
https://www.gnu.org/licenses/gpl-faq.en.html#ManyDifferentLicenses


Of course I'm not an attorney, and even if I were I'm not contracted as your 
attorney, so nothing I write can be construed as legal advice. 

But as someone who has a personal hobby of reading IP case law, and has 
contractual requirements in most of my professional work to demonstrate a 
reasonable good-faith effort to help my clients avoid potential risks with IP 
licensing, I tend to err on the side of "When in doubt, leave it out."

In cases where the best way to handle someone else's work is unclear, I often 
find it most useful to get clarification from the author of the work.  As the 
copyright holder, they would be in a position to grant, or deny, specific use 
cases.

--
Richard Gaskin
FourthWorld.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: .mp4 support in browser widget--Windows

2024-07-08 Thread Paul Dupuis via use-livecode
There ARE methods to compress and store a 3rd party library or 
application as a property in a Livecode standalone and have the 
standalone on start up check (if there is a file ... or if there is a 
folder ...) for the app's presence and if not present, install it by 
uncompressing and writing it as a bnfile to the install location.


I don't know whether there are any Livecode lessons on the web site on 
how to do this or not or whether someone else who has done this may have 
code or tips to share.


First, you may want to manually install LAV Filters and see if it has 
the codecs for the media formats you want.


Livecode 10, before release, is supposed to get updated to use the 
Windows Media Foundation (and it's wide range of current codec for 
various media formats). This change (DirectShow to MMF) is not in the 
current (dp8) version. So a media coded pack (like LAV Filters) for 
DirectShow is your only option under there is a version of LC 10 that 
supports MMF.


If you set the way back machine, if you wanted to do media on Windows 
under old versions of Livecode (aka Revolution), you had to install 
Quicktime for Windows.



On 7/7/2024 8:49 PM, Peter Bogdanoff via use-livecode wrote:

OK thanks.

Many of our users are college undergrads, some of which appear to have never 
installed an application on their own computer. Now I have to get them to do a 
second installation as well.

By any chance, can I get my LC application to initiate the LAV filters install?




On Jul 7, 2024, at 8:10 PM, Paul Dupuis via use-livecode 
 wrote:

Windows 11 will have the issue. Livecode on Windows 10 or 11 uses DirectShow. 
Try the LAV Filters to get the formats you want. .mp4 is fine, I am not sure 
about .mp5 support. See the LAV Filters read me and documentation.


On 7/7/2024 7:56 PM, Peter Bogdanoff via use-livecode wrote:

Thanks, Paul.

So, Windows 11 shouldn’t have this issue?




On Jul 7, 2024, at 1:58 PM, Paul Dupuis via use-livecode 
 wrote:

Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the video (vs 
the Microsoft Media Foundation (MMF), the current standard. DirectShow was 
always limited in the number of codec for various audio and video formats it 
supported natively. I stringly recommend for macOS Windows parity on video 
formats to install the free library of additional DirectShow supported codec 
that are a part of the LAV Filters package. See 
https://github.com/Nevcairiel/LAVFilters/releases

Just install the current version of LAV Filters and restart and you get a whole 
set of additional audio and video formats supported for Livecode for Windows.


  On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:

Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
standard) in Windows.

This is disappointing, especially as LC 10 becomes web based. In the music 
application I’ve been developing, we are now going into new, transformational 
frontiers in education with web-based video (such as YouTube) interacting with 
normal Livecode—but this works on macOS ONLY. I tested YouTube videos in the 
widget on Windows 10, and the YT player reports that the videos are unsupported.

I understand that there is licensing involved. MPEG LA, now VIA Licensing 
Alliance, has a fee structure. For hardware decoders, for example:

For the first 1 to 50,000 decoders  No Royalty*
For decoders 50,001 and more$ 0.25**

https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 
<https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>

Is this an obstacle for LiveCode as software, and dependent on the underlying 
hardware?

My understanding from past LC forum posts is, to allow the widget to play the 
videos a flag is turned on and the widget recompiled.

I’m happy to pay for the licensing myself if I got to 50K customers!

Peter Bogdanoff


___
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


___
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 mail

Re: .mp4 support in browser widget--Windows

2024-07-07 Thread Peter Bogdanoff via use-livecode
OK thanks.

Many of our users are college undergrads, some of which appear to have never 
installed an application on their own computer. Now I have to get them to do a 
second installation as well.

By any chance, can I get my LC application to initiate the LAV filters install?



> On Jul 7, 2024, at 8:10 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Windows 11 will have the issue. Livecode on Windows 10 or 11 uses DirectShow. 
> Try the LAV Filters to get the formats you want. .mp4 is fine, I am not sure 
> about .mp5 support. See the LAV Filters read me and documentation.
> 
> 
> On 7/7/2024 7:56 PM, Peter Bogdanoff via use-livecode wrote:
>> Thanks, Paul.
>> 
>> So, Windows 11 shouldn’t have this issue?
>> 
>> 
>> 
>>> On Jul 7, 2024, at 1:58 PM, Paul Dupuis via use-livecode 
>>>  wrote:
>>> 
>>> Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the video 
>>> (vs the Microsoft Media Foundation (MMF), the current standard. DirectShow 
>>> was always limited in the number of codec for various audio and video 
>>> formats it supported natively. I stringly recommend for macOS Windows 
>>> parity on video formats to install the free library of additional 
>>> DirectShow supported codec that are a part of the LAV Filters package. See 
>>> https://github.com/Nevcairiel/LAVFilters/releases
>>> 
>>> Just install the current version of LAV Filters and restart and you get a 
>>> whole set of additional audio and video formats supported for Livecode for 
>>> Windows.
>>> 
>>> 
>>>  On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:
>>>> Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the 
>>>> HTML5 standard) in Windows.
>>>> 
>>>> This is disappointing, especially as LC 10 becomes web based. In the music 
>>>> application I’ve been developing, we are now going into new, 
>>>> transformational frontiers in education with web-based video (such as 
>>>> YouTube) interacting with normal Livecode—but this works on macOS ONLY. I 
>>>> tested YouTube videos in the widget on Windows 10, and the YT player 
>>>> reports that the videos are unsupported.
>>>> 
>>>> I understand that there is licensing involved. MPEG LA, now VIA Licensing 
>>>> Alliance, has a fee structure. For hardware decoders, for example:
>>>> 
>>>> For the first 1 to 50,000 decoders No Royalty*
>>>> For decoders 50,001 and more   $ 0.25**
>>>> 
>>>> https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/
>>>>  
>>>> <https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>
>>>> 
>>>> Is this an obstacle for LiveCode as software, and dependent on the 
>>>> underlying hardware?
>>>> 
>>>> My understanding from past LC forum posts is, to allow the widget to play 
>>>> the videos a flag is turned on and the widget recompiled.
>>>> 
>>>> I’m happy to pay for the licensing myself if I got to 50K customers!
>>>> 
>>>> Peter Bogdanoff
>>>> 
>>>> 
>>>> ___
>>>> 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
> 
> 
> ___
> 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: .mp4 support in browser widget--Windows

2024-07-07 Thread Paul Dupuis via use-livecode
Windows 11 will have the issue. Livecode on Windows 10 or 11 uses 
DirectShow. Try the LAV Filters to get the formats you want. .mp4 is 
fine, I am not sure about .mp5 support. See the LAV Filters read me and 
documentation.



On 7/7/2024 7:56 PM, Peter Bogdanoff via use-livecode wrote:

Thanks, Paul.

So, Windows 11 shouldn’t have this issue?




On Jul 7, 2024, at 1:58 PM, Paul Dupuis via use-livecode 
 wrote:

Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the video (vs 
the Microsoft Media Foundation (MMF), the current standard. DirectShow was 
always limited in the number of codec for various audio and video formats it 
supported natively. I stringly recommend for macOS Windows parity on video 
formats to install the free library of additional DirectShow supported codec 
that are a part of the LAV Filters package. See 
https://github.com/Nevcairiel/LAVFilters/releases

Just install the current version of LAV Filters and restart and you get a whole 
set of additional audio and video formats supported for Livecode for Windows.


  On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:

Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
standard) in Windows.

This is disappointing, especially as LC 10 becomes web based. In the music 
application I’ve been developing, we are now going into new, transformational 
frontiers in education with web-based video (such as YouTube) interacting with 
normal Livecode—but this works on macOS ONLY. I tested YouTube videos in the 
widget on Windows 10, and the YT player reports that the videos are unsupported.

I understand that there is licensing involved. MPEG LA, now VIA Licensing 
Alliance, has a fee structure. For hardware decoders, for example:

For the first 1 to 50,000 decoders  No Royalty*
For decoders 50,001 and more$ 0.25**

https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 
<https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>

Is this an obstacle for LiveCode as software, and dependent on the underlying 
hardware?

My understanding from past LC forum posts is, to allow the widget to play the 
videos a flag is turned on and the widget recompiled.

I’m happy to pay for the licensing myself if I got to 50K customers!

Peter Bogdanoff


___
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



___
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: .mp4 support in browser widget--Windows

2024-07-07 Thread Peter Bogdanoff via use-livecode
Thanks, Paul. 

So, Windows 11 shouldn’t have this issue?



> On Jul 7, 2024, at 1:58 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the video 
> (vs the Microsoft Media Foundation (MMF), the current standard. DirectShow 
> was always limited in the number of codec for various audio and video formats 
> it supported natively. I stringly recommend for macOS Windows parity on video 
> formats to install the free library of additional DirectShow supported codec 
> that are a part of the LAV Filters package. See 
> https://github.com/Nevcairiel/LAVFilters/releases
> 
> Just install the current version of LAV Filters and restart and you get a 
> whole set of additional audio and video formats supported for Livecode for 
> Windows.
> 
> 
>  On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:
>> Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
>> standard) in Windows.
>> 
>> This is disappointing, especially as LC 10 becomes web based. In the music 
>> application I’ve been developing, we are now going into new, 
>> transformational frontiers in education with web-based video (such as 
>> YouTube) interacting with normal Livecode—but this works on macOS ONLY. I 
>> tested YouTube videos in the widget on Windows 10, and the YT player reports 
>> that the videos are unsupported.
>> 
>> I understand that there is licensing involved. MPEG LA, now VIA Licensing 
>> Alliance, has a fee structure. For hardware decoders, for example:
>> 
>> For the first 1 to 50,000 decoders   No Royalty*
>> For decoders 50,001 and more $ 0.25**
>> 
>> https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 
>> <https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>
>> 
>> Is this an obstacle for LiveCode as software, and dependent on the 
>> underlying hardware?
>> 
>> My understanding from past LC forum posts is, to allow the widget to play 
>> the videos a flag is turned on and the widget recompiled.
>> 
>> I’m happy to pay for the licensing myself if I got to 50K customers!
>> 
>> Peter Bogdanoff
>> 
>> 
>> ___
>> 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: .mp4 support in browser widget--Windows

2024-07-07 Thread Paul Dupuis via use-livecode
Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the 
video (vs the Microsoft Media Foundation (MMF), the current standard. 
DirectShow was always limited in the number of codec for various audio 
and video formats it supported natively. I stringly recommend for macOS 
Windows parity on video formats to install the free library of 
additional DirectShow supported codec that are a part of the LAV Filters 
package. See https://github.com/Nevcairiel/LAVFilters/releases


Just install the current version of LAV Filters and restart and you get 
a whole set of additional audio and video formats supported for Livecode 
for Windows.



 On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:

Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
standard) in Windows.

This is disappointing, especially as LC 10 becomes web based. In the music 
application I’ve been developing, we are now going into new, transformational 
frontiers in education with web-based video (such as YouTube) interacting with 
normal Livecode—but this works on macOS ONLY. I tested YouTube videos in the 
widget on Windows 10, and the YT player reports that the videos are unsupported.

I understand that there is licensing involved. MPEG LA, now VIA Licensing 
Alliance, has a fee structure. For hardware decoders, for example:

For the first 1 to 50,000 decoders  No Royalty*
For decoders 50,001 and more$ 0.25**

https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 
<https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>

Is this an obstacle for LiveCode as software, and dependent on the underlying 
hardware?

My understanding from past LC forum posts is, to allow the widget to play the 
videos a flag is turned on and the widget recompiled.

I’m happy to pay for the licensing myself if I got to 50K customers!

Peter Bogdanoff


___
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


.mp4 support in browser widget--Windows

2024-07-07 Thread Peter Bogdanoff via use-livecode
Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
standard) in Windows.

This is disappointing, especially as LC 10 becomes web based. In the music 
application I’ve been developing, we are now going into new, transformational 
frontiers in education with web-based video (such as YouTube) interacting with 
normal Livecode—but this works on macOS ONLY. I tested YouTube videos in the 
widget on Windows 10, and the YT player reports that the videos are unsupported.

I understand that there is licensing involved. MPEG LA, now VIA Licensing 
Alliance, has a fee structure. For hardware decoders, for example:

For the first 1 to 50,000 decoders  No Royalty*
For decoders 50,001 and more$ 0.25**

https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 
<https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>

Is this an obstacle for LiveCode as software, and dependent on the underlying 
hardware?

My understanding from past LC forum posts is, to allow the widget to play the 
videos a flag is turned on and the widget recompiled.

I’m happy to pay for the licensing myself if I got to 50K customers!

Peter Bogdanoff


___
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 and Google Maps Api on Win 10

2024-03-28 Thread Ralph DiMola via use-livecode
When in the IDE and testing using the browser widget the line below does not
ever complete. The call back to "startMapInit" is never called.

This works on Win 10 desktop in Chrome and LC deployed Android app using the
same browser widget as in the IDE. I will test on iOS. 

 

The real question is how to see JavaScript errors in the Browser Widget?

 

https://maps.googleapis.com/maps/api/js?key=MyKey&callback=startMapInit</a>>


 

 

Ralph DiMola

IT Director

Evergreen Information Services

rdim...@evergreeninfo.net

 

___
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


Facebook in Browser Widget

2024-03-28 Thread Ralph DiMola via use-livecode
LC 9.6.11 pro

Win 10

 

When I open Facebook url "https://www.facebook.com/someAccount"; in the
browser widget in an Android app I briefly see the Facebook page and then
get the error net:ERR_UNKNOWN_URL_SCHEME. The Error url displayed is
"fc://profile..." this used to work.

This happens if the FB app is or is not installed. What I would like is if
the app is not installed then open in the browser widget or if FB is
installed then open in the FB app. I have not tested iOS yet.

Thanks in advance

 

Ralph DiMola

IT Director

Evergreen Information Services

rdim...@evergreeninfo.net

 

___
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 in Windows has trouble playing videos in websites

2024-01-31 Thread Peter Bogdanoff via use-livecode
Tom,

I’m finding the issue is more complex, and I’m still trying to get to the 
bottom of it.

Daily Motion, Vimeo, and YouTube pages all work on the Mac LC browser plugin.

Daily Motion, Vimeo, and some YouTube pages don’t in Windows. However, most of 
the gazillion YouTube videos work very well, just not all of the ones we made 
for our channel. Most of our videos were compressed on a Mac, but for all but a 
couple YouTube shows an error in the video window: 

"Your browser can’t play this video. Learn more."

'Learn more' shows a page that only says the browser is compatible.


We made two on a Windows machine, one works, but the other doesn’t—both using 
the work flow, same compressor/wrapper ( I don’t know which).

I’ve tried recompressing on the Mac a sample video using everything available, 
including Ogg. None work in Windows from our YouTube channel.

I’m going to retry compressing within a Windows app. See if it makes a 
difference. 

It seems to me the issue is more than lack of support for h264.

Peter

> On Jan 30, 2024, at 11:15 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hey Peter, this surely has to do with videos that are compressed using
> h264. that build of CEF does not support this codec.
> I am not sure if the updated browser in the upcoming windows version will
> support h264.
> I am surprised to find out that the apple version of the browser has
> support for h264, i assumed the problem was cross platform.
> On youtube LIVE videos are h264, and videos that have been on the site a
> while get a different codec.
> 
> 
> On Thu, Jan 25, 2024 at 6:11 PM Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I submitted Bug 24479 today with a sample stack.
>> 
>> Youtube, Vimeo, Daily Motion all have unreliable playing of their videos
>> in LC browser widget in Windows 10, LC 10.0.0 dp7, both in the IDE and
>> standalone.
>> 
>> Vimeo and Daily Motion won’t play videos on their sites. They show an
>> error message in the video player.
>> 
>> YouTube does play, but there are some videos in my channel, and others
>> here and there that show a YouTube error when loading.
>> 
>> No problem with the Mac browser widget.
>> 
>> Peter Bogdanoff
>> ArtsInteractive
>> ___
>> 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 in Windows has trouble playing videos in websites

2024-01-30 Thread Tom Glod via use-livecode
Hey Peter, this surely has to do with videos that are compressed using
h264. that build of CEF does not support this codec.
I am not sure if the updated browser in the upcoming windows version will
support h264.
I am surprised to find out that the apple version of the browser has
support for h264, i assumed the problem was cross platform.
On youtube LIVE videos are h264, and videos that have been on the site a
while get a different codec.


On Thu, Jan 25, 2024 at 6:11 PM Peter Bogdanoff via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I submitted Bug 24479 today with a sample stack.
>
> Youtube, Vimeo, Daily Motion all have unreliable playing of their videos
> in LC browser widget in Windows 10, LC 10.0.0 dp7, both in the IDE and
> standalone.
>
> Vimeo and Daily Motion won’t play videos on their sites. They show an
> error message in the video player.
>
> YouTube does play, but there are some videos in my channel, and others
> here and there that show a YouTube error when loading.
>
> No problem with the Mac browser widget.
>
> Peter Bogdanoff
> ArtsInteractive
> ___
> 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 in Windows has trouble playing videos in websites

2024-01-25 Thread Peter Bogdanoff via use-livecode
I submitted Bug 24479 today with a sample stack.

Youtube, Vimeo, Daily Motion all have unreliable playing of their videos in LC 
browser widget in Windows 10, LC 10.0.0 dp7, both in the IDE and standalone.

Vimeo and Daily Motion won’t play videos on their sites. They show an error 
message in the video player.

YouTube does play, but there are some videos in my channel, and others here and 
there that show a YouTube error when loading.

No problem with the Mac browser widget.

Peter Bogdanoff
ArtsInteractive
___
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: Does the browser widget work?

2023-12-08 Thread Bob Sneidar via use-livecode
Imagine certain accidental and unwanted web page spewing out sound and 
questionable content at work and no way to make it stop. That is one excellent 
reason I can give for why. :-)

Bob S


> On Dec 8, 2023, at 1:59 PM, Geoff Canyon via use-livecode 
>  wrote:
> 
> Good gosh, WHY!?
> 
> (That fixed it, thanks)
> 
> On Fri, Dec 8, 2023 at 4:53 PM Andreas Bergendal <
> andreas.bergen...@gmail.com> wrote:
> 
>> It works for me (LC 9.6.11, Mac).
>> 
>> Impractically, the browser widget only shows its content with browse tool
>> selected, not pointer tool.
>> But I suppose your problem isn’t that simple, right…? :)
>> 
>> 
>>> 8 dec. 2023 kl. 22:42 skrev Geoff Canyon via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> set the url of widget 1 to “http://www.google.com” — nothing
>>> 
>>> set the url of widget 1 to “file:///Users/gcanyon/Desktop/test.html” —
>> also
>>> nothing
>>> 
>>> Am I doing it wrong?
>> 
> ___
> 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: Does the browser widget work?

2023-12-08 Thread Geoff Canyon via use-livecode
Good gosh, WHY!?

(That fixed it, thanks)

On Fri, Dec 8, 2023 at 4:53 PM Andreas Bergendal <
andreas.bergen...@gmail.com> wrote:

> It works for me (LC 9.6.11, Mac).
>
> Impractically, the browser widget only shows its content with browse tool
> selected, not pointer tool.
> But I suppose your problem isn’t that simple, right…? :)
>
>
> > 8 dec. 2023 kl. 22:42 skrev Geoff Canyon via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > set the url of widget 1 to “http://www.google.com” — nothing
> >
> > set the url of widget 1 to “file:///Users/gcanyon/Desktop/test.html” —
> also
> > nothing
> >
> > Am I doing it wrong?
>
___
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: Does the browser widget work?

2023-12-08 Thread Andreas Bergendal via use-livecode
It works for me (LC 9.6.11, Mac).

Impractically, the browser widget only shows its content with browse tool 
selected, not pointer tool.
But I suppose your problem isn’t that simple, right…? :)


> 8 dec. 2023 kl. 22:42 skrev Geoff Canyon via use-livecode 
> :
> 
> set the url of widget 1 to “http://www.google.com” — nothing
> 
> set the url of widget 1 to “file:///Users/gcanyon/Desktop/test.html” — also
> nothing
> 
> Am I doing it wrong?

___
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


Does the browser widget work?

2023-12-08 Thread Geoff Canyon via use-livecode
set the url of widget 1 to “http://www.google.com” — nothing

set the url of widget 1 to “file:///Users/gcanyon/Desktop/test.html” — also
nothing

Am I doing it wrong?
___
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 error

2023-11-17 Thread Peter Bogdanoff via use-livecode
Hi,

I’m getting an error from the browser widget. I only see it when I’m running in 
Sonoma on an M2 Mac mini. All earlier Macs (Ventura and earlier) don’t trigger 
it. This is part of a routine that sets JS handlers to control the playing of a 
YouTube movie in the browser.

I created a small sample stack to file a bug report, but actually got that one 
to work with no errors. The source stack is still showing errors, and I can’t 
seem yet to track down what’s causing it. The calls still function, but pop up 
the error box.

The errorDialog message shows this. I guess that some explanation of 
specifically what the error is in "error evaluating javascript” would be 
helpful:
863,0,0,runtime

864,0,0,error evaluating javascript

865,0,0,browser.lcb

866,0,0,1007

897,0,0,1

865,0,0,browser.lcb

866,0,0,999

897,0,0,1

This is in LC 10.0.0-dp-6, the version of LC that seems to function best with 
this Sonoma M2 Mac. I have found that this computer is so fast, errors appear 
such that I had  to do some adjusting of the timing of events.

Peter Bogdanoff

___
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: "Navigation request cancelled"

2023-08-15 Thread Mark Waddingham via use-livecode

On 2023-08-15 12:08, Ben Rubinstein via use-livecode wrote:

Is it possible to get any more detail about what's going on?


I'm guessing you are using 10-dp-5 :)

The issues here are regressions caused by the switch to WKWebView in 10 
(previously we used the older WebView system web browser API):


The missing progressChanged messages issue is 
https://quality.livecode.com/show_bug.cgi?id=24271


The missing other messages issue is 
https://quality.livecode.com/show_bug.cgi?id=24247


The latter is related to server vs local redirects in the web page.

Both should be fixed in the upcoming 10-dp-6.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Build Amazing Things

___
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: "Navigation request cancelled"

2023-08-15 Thread Ben Rubinstein via use-livecode
Trying to use the browser widget to access an internal site, I'm having a lot 
of trouble.


If I send it (by setting the URL property of the widget) to the root of the 
hostname, it loads the page succesfully, although the widget gets a 
browserDocumentLoadFailed message "navigation request cancelled".


If I set the URL property to some pages within the site, they load succesfully 
without that message.


If I set the URL property to some other pages, they do not load, and that 
message is received.


It's completely consistent which URLs work, and which don't.

If I send the widget to a URL which works, I can navigate anywhere within the 
site without problems, including to the URLs which don't work using set.


I haven't managed to pin down what distinguishes the working URLs from 
non-working. All the non-working ones I've found involve query parameters; but 
some of the working ones do also.


My question is: how can I debug this issue? Are there any ways to get insight 
into the loading process?


I am catching and reporting these messages:
browserDocumentLoadFailed
browserDocumentLoadComplete
browserNavigateFailed
browserNavigateComplete
browserUnhandledLoadRequest

... but the only ones that trigger are either browserDocumentLoadFailed or 
browserUnhandledLoadRequest, or browserDocumentLoadComplete - always with the 
parameter being the requested URL. I'm guessing, though I might be wrong, that 
the issue is actually with one of the elements being requested by the 
document, but this is never in the parameter.


Additionally, browserProgressChanged never seems to be sent.

Is it possible to get any more detail about what's going on?

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


Browser widget "Navigation request cancelled"/"NSURLErrorDomain error -999"

2023-07-16 Thread Ben Rubinstein via use-livecode
I'm finding intermittent issues with the browser widget failing to load an 
internal site.


In 9.6.8, the error (in browserDocumentLoadFailed) will usually be 
"NSURLErrorDomain error -999". In 10.0.0 (dp 5) it will be "Navigation request 
cancelled".


Alternatively, sometimes  (at least in 9.6.8) it will be
	"The resource could not be loaded because the App Transport Security policy 
requires the use of a secure connection."


... which is fair enough, because it's an "http:" URL rather than an "https:" 
(this is an application on our intranet); but the whacky part is that 
_sometimes_ I can load the site, and once loaded I can navigate it fine.


In particular I have more success in loading it in 10.0.0 (dp 5) - although 
sometimes the site will load, _and_ the browserDocumentLoadFailed message will 
be sent! I also sometimes find I can load it if I set the URL in the property 
inspector for the browser widget, where setting it in script fails.


Can anyone shed light? I'd prefer to get this working in 9.6.8, because due to 
https://quality.livecode.com/show_bug.cgi?id=24268 I tend to lose work in 
10.0.0 (dp 5) - but if I could get it consistently working in either that 
would be a step forward!


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


Re: more then 1 browser widget in a web standalone?

2023-04-24 Thread matthias rebbe via use-livecode
Hello Mark,

thank you very much for clarifying. 
Tried the w3schools.com website and added the whatismybrowser... url as you 
suggested and it is not displayed. 
Good to know what was the reason for it.

Regards,
Matthias

> Am 24.04.2023 um 17:05 schrieb Mark Waddingham via use-livecode 
> :
> 
> On 2023-04-24 15:46, matthias rebbe via use-livecode wrote:
>> I can now confirm that more than one Browser Widget will work in Web 
>> standalones, but not all URLs that work in LC IDE or Desktop standalones 
>> will work in Web standalones.
>> For example this one here fails in Web Standalones.
>> https://www.whatismybrowser.com/de/
> 
> The web browser widget is implemented as an IFrame - this comes with it a 
> fair amount of security restrictions unless the website being embedded has 
> appropriate cross-origin settings (or comes from the same host as the 
> surrounding page).
> 
> In this case, I suspect the website is just refusing to be embedded - indeed 
> if you go to:
> 
>   
> https://www.w3schools.com/html/tryit.asp?filename=tryhtml_iframe_height_width
> 
> Then change the src to the website above then it won't work there either.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Build Amazing Things
> 
> ___
> 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: more then 1 browser widget in a web standalone?

2023-04-24 Thread Mark Waddingham via use-livecode

On 2023-04-24 15:46, matthias rebbe via use-livecode wrote:
I can now confirm that more than one Browser Widget will work in Web 
standalones, but not all URLs that work in LC IDE or Desktop 
standalones will work in Web standalones.

For example this one here fails in Web Standalones.

https://www.whatismybrowser.com/de/


The web browser widget is implemented as an IFrame - this comes with it 
a fair amount of security restrictions unless the website being embedded 
has appropriate cross-origin settings (or comes from the same host as 
the surrounding page).


In this case, I suspect the website is just refusing to be embedded - 
indeed if you go to:


   
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_iframe_height_width


Then change the src to the website above then it won't work there 
either.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Build Amazing Things

___
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: more then 1 browser widget in a web standalone?

2023-04-24 Thread matthias rebbe via use-livecode
I can now confirm that more than one Browser Widget will work in Web 
standalones, but not all URLs that work in LC IDE or Desktop standalones will 
work in Web standalones.
For example this one here fails in Web Standalones.

https://www.whatismybrowser.com/de/




> Am 23.04.2023 um 21:18 schrieb matthias rebbe via use-livecode 
> :
> 
> Hi,
> does any one know if it should be possible to use more than one Browser 
> Widget in a Web standalone?
> Currently i only get 1 browser widget display in the Web standalone. 
> 
> Regards,
> Matthias
> 
> 
> ___
> 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


more then 1 browser widget in a web standalone?

2023-04-23 Thread matthias rebbe via use-livecode
Hi,
does any one know if it should be possible to use more than one Browser Widget 
in a Web standalone?
Currently i only get 1 browser widget display in the Web standalone. 

Regards,
Matthias


___
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: "get in widget"?? How can I get a value out of a browser widget into LiveCode?

2023-04-18 Thread Ben Rubinstein via use-livecode
I've found a solution. For the benefit of others (and myself, because I'll 
have forgotten this next time I want it), this can be done using "the 
javascriptHandlers".


So you can set up a handler to be called from the browser:
set the javascriptHandlers of widget "Browser" to "myJSHandler"

... and then have javascript pass the expression to that handler:

do "liveCode.myJSHandler(document.title);" in widget "browser"



On 17/04/2023 16:17, Ben Rubinstein via use-livecode wrote:

Thanks Klaus, I tried both of those!

So for example I can execute
 do "alert(document.title)" in widget "browser"

and see the expected string in an alert box. But
 do "document.title" in widget "browser"; put it

or
 do "document.title" in widget "browser"; put the result

just put empty.

Any other ideas? I don't know whether I need to do something different in the 
livecode end (probably) or in the javascript end.


TIA,

Ben


On 17/04/2023 16:11, Klaus major-k via use-livecode wrote:

Hi Ben,

Am 17.04.2023 um 16:37 schrieb Ben Rubinstein via use-livecode 
:


Thanks to this list, I know about "do in widget" that can cause some 
javascript to be evaluated in the current page in the browser widget. Which 
is great.


But how do I get (into LiveCode) the result of a javascript expression?


if in doubt try either -> IT or -> the result :-)


TIA,

Ben


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: "get in widget"?? How can I get a value out of a browser widget into LiveCode?

2023-04-17 Thread Klaus major-k via use-livecode
Hi Ben,

> Am 17.04.2023 um 17:17 schrieb Ben Rubinstein via use-livecode 
> :
> 
> Thanks Klaus, I tried both of those!
> So for example I can execute
>   do "alert(document.title)" in widget "browser"
> and see the expected string in an alert box. But
>   do "document.title" in widget "browser"; put it
> or
>   do "document.title" in widget "browser"; put the result
> just put empty.
> Any other ideas? I don't know whether I need to do something different in the 
> livecode end (probably) or in the javascript end.

sorry, no more ideas...
Too bad the dictionary doesn't mention this.

> TIA,
> 
> Ben

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: "get in widget"?? How can I get a value out of a browser widget into LiveCode?

2023-04-17 Thread Ben Rubinstein via use-livecode

Thanks Klaus, I tried both of those!

So for example I can execute
do "alert(document.title)" in widget "browser"

and see the expected string in an alert box. But
do "document.title" in widget "browser"; put it

or
do "document.title" in widget "browser"; put the result

just put empty.

Any other ideas? I don't know whether I need to do something different in the 
livecode end (probably) or in the javascript end.


TIA,

Ben


On 17/04/2023 16:11, Klaus major-k via use-livecode wrote:

Hi Ben,


Am 17.04.2023 um 16:37 schrieb Ben Rubinstein via use-livecode 
:

Thanks to this list, I know about "do in widget" that can cause some javascript 
to be evaluated in the current page in the browser widget. Which is great.

But how do I get (into LiveCode) the result of a javascript expression?


if in doubt try either -> IT or -> the result :-)


TIA,

Ben


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: "get in widget"?? How can I get a value out of a browser widget into LiveCode?

2023-04-17 Thread Klaus major-k via use-livecode
Hi Ben,

> Am 17.04.2023 um 16:37 schrieb Ben Rubinstein via use-livecode 
> :
> 
> Thanks to this list, I know about "do in widget" that can cause some 
> javascript to be evaluated in the current page in the browser widget. Which 
> is great.
> 
> But how do I get (into LiveCode) the result of a javascript expression?

if in doubt try either -> IT or -> the result :-)

> TIA,
> 
> Ben

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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


"get in widget"?? How can I get a value out of a browser widget into LiveCode?

2023-04-17 Thread Ben Rubinstein via use-livecode
Thanks to this list, I know about "do in widget" that can cause some 
javascript to be evaluated in the current page in the browser widget. Which is 
great.


But how do I get (into LiveCode) the result of a javascript expression?

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


Re: Bug in browser widget

2023-03-16 Thread Tore Nilsen via use-livecode
I have now discovered that this probably was related to MacOS 13.0. Having 
upgraded the OS to 13.2.1 solved the problem on the affected machine.

> 16. mar. 2023 kl. 19:07 skrev Tore Nilsen :
> 
> Hi Matthias, thanks for your interest in this ! I have been trying to solve 
> the problem myself and I have discovered that the problem only occurs on one 
> of my Macs. Unfortunately it is my main machine, but as long as I can get it 
> to work on the other machines I can always live with the situation for now.
> 
> Best regards
> Tore
> 
>> 16. mar. 2023 kl. 13:31 skrev matthias rebbe via use-livecode 
>> :
>> 
>> Tore,
>> do you have a url i could try?
>> 
>> Tried here with a page that has Youtube videos embedded and could not 
>> reproduce the error with LC 9.6.9RC2 and 10DP4 on macOS 13.2.1
>> 
>> 
>> 
>>> Am 16.03.2023 um 10:44 schrieb Tore Nilsen via use-livecode 
>>> :
>>> 
>>> I have come across a bug in the browser widget. The browser will not show 
>>> any video when the video is embedded into the web page. The poster image 
>>> and the thumbnail images will display properly, but once the videoplayer is 
>>> started the screen goes blank. The player will indeed play and the sound 
>>> from the video can be heard! Videos that are displayed using the video-tag 
>>> in the html file seems to work OK.
>>> 
>>> Are there anyone else who has the same experience? I am on MacOS 13.0 and 
>>> LC 10 dp 3 and dp 4
>>> 
>>> Best regards
>>> Tore Nilsen
>>> ___
>>> 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: Bug in browser widget

2023-03-16 Thread Tore Nilsen via use-livecode
Hi Matthias, thanks for your interest in this ! I have been trying to solve the 
problem myself and I have discovered that the problem only occurs on one of my 
Macs. Unfortunately it is my main machine, but as long as I can get it to work 
on the other machines I can always live with the situation for now.

Best regards
Tore

> 16. mar. 2023 kl. 13:31 skrev matthias rebbe via use-livecode 
> :
> 
> Tore,
> do you have a url i could try?
> 
> Tried here with a page that has Youtube videos embedded and could not 
> reproduce the error with LC 9.6.9RC2 and 10DP4 on macOS 13.2.1
> 
> 
> 
>> Am 16.03.2023 um 10:44 schrieb Tore Nilsen via use-livecode 
>> :
>> 
>> I have come across a bug in the browser widget. The browser will not show 
>> any video when the video is embedded into the web page. The poster image and 
>> the thumbnail images will display properly, but once the videoplayer is 
>> started the screen goes blank. The player will indeed play and the sound 
>> from the video can be heard! Videos that are displayed using the video-tag 
>> in the html file seems to work OK.
>> 
>> Are there anyone else who has the same experience? I am on MacOS 13.0 and LC 
>> 10 dp 3 and dp 4
>> 
>> Best regards
>> Tore Nilsen
>> ___
>> 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: Bug in browser widget

2023-03-16 Thread matthias rebbe via use-livecode
Tore,
do you have a url i could try?

Tried here with a page that has Youtube videos embedded and could not reproduce 
the error with LC 9.6.9RC2 and 10DP4 on macOS 13.2.1



> Am 16.03.2023 um 10:44 schrieb Tore Nilsen via use-livecode 
> :
> 
> I have come across a bug in the browser widget. The browser will not show any 
> video when the video is embedded into the web page. The poster image and the 
> thumbnail images will display properly, but once the videoplayer is started 
> the screen goes blank. The player will indeed play and the sound from the 
> video can be heard! Videos that are displayed using the video-tag in the html 
> file seems to work OK.
> 
> Are there anyone else who has the same experience? I am on MacOS 13.0 and LC 
> 10 dp 3 and dp 4
> 
> Best regards
> Tore Nilsen
> ___
> 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


Bug in browser widget?

2023-03-16 Thread Tore Nilsen via use-livecode
I have come across a bug in the browser widget. The browser will not show any 
video when the video is embedded into the web page. The poster image and the 
thumbnail images will display properly, but once the videoplayer is started the 
screen goes blank. The player will indeed play and the sound from the video can 
be heard! Videos that are displayed using the video-tag in the html file seems 
to work OK.

Are there anyone else who has the same experience? I am on MacOS 13.0 and LC 10 
dp 3 and dp 4

Best regards
Tore Nilsen
___
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


Bug in browser widget

2023-03-16 Thread Tore Nilsen via use-livecode
I have come across a bug in the browser widget. The browser will not show any 
video when the video is embedded into the web page. The poster image and the 
thumbnail images will display properly, but once the videoplayer is started the 
screen goes blank. The player will indeed play and the sound from the video can 
be heard! Videos that are displayed using the video-tag in the html file seems 
to work OK.

Are there anyone else who has the same experience? I am on MacOS 13.0 and LC 10 
dp 3 and dp 4

Best regards
Tore Nilsen
___
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 navigation and urls

2023-02-06 Thread David Bovill via use-livecode
Thanks Ben, will try experiment with window.location method...

On Mon, 6 Feb 2023, 12:26 Ben Rubinstein via use-livecode, <
use-livecode@lists.runrev.com> wrote:

> The website might be actually a JavaScript 'app' that's displaying
> different
> information rather than navigating to different pages, which is now a very
> popular web dev technique.
>
> A responsible implementation of this approach includes a non-JS fallback,
> for
> accessibility purposes; and makes the app manipulate the browser's URL
> display
> so that if someone bookmarks the page, or sends a link, the link will work
> to
> display the same 'page' as the user intended.
>
> You might be able to inject something to access the 'window.location'
> object,
> which I think is what is manipulated in this case.
>
>
> On 05/02/2023 12:28, David Bovill via use-livecode wrote:
> > I have a web site which I navigate in Chrome, and then in the Livecode
> > browser widget. I load the same starting url.  In Chrome the browsers url
> > changes as I navigate the pages, while if I navigate to the saem place in
> > the same way in Livecodes embedded browser "the url" of the browser
> widget
> > returns the original url and not the one i've navigated to.
> >
> > I'm trying to bookmark the url of the page navigated to in the browser
> > widget - any ideas?
> > ___
> > 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 navigation and urls

2023-02-06 Thread Ben Rubinstein via use-livecode
The website might be actually a JavaScript 'app' that's displaying different 
information rather than navigating to different pages, which is now a very 
popular web dev technique.


A responsible implementation of this approach includes a non-JS fallback, for 
accessibility purposes; and makes the app manipulate the browser's URL display 
so that if someone bookmarks the page, or sends a link, the link will work to 
display the same 'page' as the user intended.


You might be able to inject something to access the 'window.location' object, 
which I think is what is manipulated in this case.



On 05/02/2023 12:28, David Bovill via use-livecode wrote:

I have a web site which I navigate in Chrome, and then in the Livecode
browser widget. I load the same starting url.  In Chrome the browsers url
changes as I navigate the pages, while if I navigate to the saem place in
the same way in Livecodes embedded browser "the url" of the browser widget
returns the original url and not the one i've navigated to.

I'm trying to bookmark the url of the page navigated to in the browser
widget - any ideas?
___
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 navigation and urls

2023-02-05 Thread David Bovill via use-livecode
I have a web site which I navigate in Chrome, and then in the Livecode
browser widget. I load the same starting url.  In Chrome the browsers url
changes as I navigate the pages, while if I navigate to the saem place in
the same way in Livecodes embedded browser "the url" of the browser widget
returns the original url and not the one i've navigated to.

I'm trying to bookmark the url of the page navigated to in the browser
widget - any ideas?
___
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-09 Thread Klaus major-k via use-livecode
Hi all,

with some help form the LC forum, I finally had kind of success with this:

on browserNavigateBegin pUrl
   lock screen
   if pURL ends with ".pdf" then
 libURLDownloadToFile pUrl, (specialfolderpath("desktop") & "/test666.pdf")
 go back in widget 1
   end if
  unlock screen
end browserNavigateBegin
-
With the line GO BACK IN WIDGET 1 the clicked url will NOT get displayed!
Seems the only way to (fake) CANCEL the navigation.


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-08 Thread Klaus major-k via use-livecode
Hi all,

I also tried:
-
on browserBeforeNavigate pUrl
  if pURL ends with ".pdf" then
libURLDownloadToFile pUrl, (specialfolderpath("dektop") & "/test666.pdf")
  else
   pass browserBeforeNavigate
  end if
end browserBeforeNavigate
-
No dice. :-/
This must be possible somehow, I'm sure...


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-08 Thread Klaus major-k via use-livecode
Hi Jacque,

> Am 08.12.2022 um 19:06 schrieb J. Landman Gay via use-livecode 
> :
> 
> I guess it hasn't been fixed yet, or else we don't understand how to use it. 
> When I was trying it, breakpoints didn't even trigger so I assumed the 
> messages weren't being sent. Did you put the handlers in the widget script?

yes.

> When I tested we didn't have widgets yet.
> If that doesn't work I'm not sure what will. Maybe you'd need some javascript?

I hope not! :-D
Maybe someone will chime in with a clever hint...

> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On December 8, 2022 5:25:32 AM Klaus major-k via use-livecode 
>  wrote:
> 
>> Hi Jacque and all,
>> 
>>> Am 06.12.2022 um 22:24 schrieb Klaus major-k via use-livecode 
>>> :
>>> 
>>> Hi Jacque,
>>> 
>>>> Am 06.12.2022 um 21:59 schrieb J. Landman Gay via use-livecode 
>>>> :
>>>> On 12/6/22 1:13 PM, Klaus major-k via use-livecode wrote:
>>>>>> what is the browser widget's equivalent to a field's "on linkclicked 
>>>>>> tLink" message?
>>>>>> Thanks for any hint!
>>>>> I want to check if the user clicked e.g. a PDF file and download the file 
>>>>> in that case.
>>>>> What message do I have to catch in the browser widget?
>>>> You could try "browserDocumentLoadBegin" or "browserNavigateBegin" which 
>>>> would give you the URL that was clicked. But most browsers now download or 
>>>> display the PDF automatically when a PDF link is clicked. Firefox opens 
>>>> the PDF in a new window, and I think Safari downloads it. Not sure about 
>>>> Windows.
>>> Windows, too, if the Acrobat Plug-in is installed on the target machine.
>>> Only Android cannot display in a browser so far, too bad.
>>>> If this is for mobile, the URL might be enough information. BTW, I tried 
>>>> to use these messages a very long time ago and they were not sent, but 
>>>> hopefully that's been fixed by now.
>>> Fingers crossed, will try and tell. :-)
>>> Thank you!
>> 
>> macOS 12.6.1, LC 9.6.9 rc2
>> 
>> I tried:
>> --
>> on browserNavigateBegin pUrl
>>  if pURL ends with ".pdf" then
>> libURLDownloadToFile pUrl, (specialfolderpath("dektop") & "/test666.pdf")
>>  else
>> pass browserNavigateBegin
>>  end if
>> end browserNavigateBegin
>> 
>> on browserDocumentLoadBegin pUrl
>>  if pURL ends with ".pdf" then
>> libURLDownloadToFile pUrl, (specialfolderpath("dektop") & "/test666.pdf")
>>  else
>> pass browserDocumentLoadBegin
>>  end if
>> end browserDocumentLoadBegin
>> --
>> No file on the desktop, the browser simply ignores the script!?
>> So any hint on how to download a clicked linke in the browser widget still 
>> welcome!

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-08 Thread J. Landman Gay via use-livecode
I guess it hasn't been fixed yet, or else we don't understand how to use 
it. When I was trying it, breakpoints didn't even trigger so I assumed the 
messages weren't being sent. Did you put the handlers in the widget script? 
When I tested we didn't have widgets yet.


If that doesn't work I'm not sure what will. Maybe you'd need some javascript?
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 8, 2022 5:25:32 AM Klaus major-k via use-livecode 
 wrote:



Hi Jacque and all,

Am 06.12.2022 um 22:24 schrieb Klaus major-k via use-livecode 
:


Hi Jacque,

Am 06.12.2022 um 21:59 schrieb J. Landman Gay via use-livecode 
:

On 12/6/22 1:13 PM, Klaus major-k via use-livecode wrote:
what is the browser widget's equivalent to a field's "on linkclicked tLink" 
message?

Thanks for any hint!
I want to check if the user clicked e.g. a PDF file and download the file 
in that case.

What message do I have to catch in the browser widget?
You could try "browserDocumentLoadBegin" or "browserNavigateBegin" which 
would give you the URL that was clicked. But most browsers now download or 
display the PDF automatically when a PDF link is clicked. Firefox opens the 
PDF in a new window, and I think Safari downloads it. Not sure about Windows.

Windows, too, if the Acrobat Plug-in is installed on the target machine.
Only Android cannot display in a browser so far, too bad.
If this is for mobile, the URL might be enough information. BTW, I tried to 
use these messages a very long time ago and they were not sent, but 
hopefully that's been fixed by now.

Fingers crossed, will try and tell. :-)
Thank you!


macOS 12.6.1, LC 9.6.9 rc2

I tried:
--
on browserNavigateBegin pUrl
  if pURL ends with ".pdf" then
 libURLDownloadToFile pUrl, (specialfolderpath("dektop") & "/test666.pdf")
  else
 pass browserNavigateBegin
  end if
end browserNavigateBegin

on browserDocumentLoadBegin pUrl
  if pURL ends with ".pdf" then
 libURLDownloadToFile pUrl, (specialfolderpath("dektop") & "/test666.pdf")
  else
 pass browserDocumentLoadBegin
  end if
end browserDocumentLoadBegin
----------
No file on the desktop, the browser simply ignores the script!?

So any hint on how to download a clicked linke in the browser widget still 
welcome!



Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-08 Thread Klaus major-k via use-livecode
Hi Jacque and all,

> Am 06.12.2022 um 22:24 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi Jacque,
> 
>> Am 06.12.2022 um 21:59 schrieb J. Landman Gay via use-livecode 
>> :
>> On 12/6/22 1:13 PM, Klaus major-k via use-livecode wrote:
>>>> what is the browser widget's equivalent to a field's "on linkclicked 
>>>> tLink" message?
>>>> Thanks for any hint!
>>> I want to check if the user clicked e.g. a PDF file and download the file 
>>> in that case.
>>> What message do I have to catch in the browser widget?
>> You could try "browserDocumentLoadBegin" or "browserNavigateBegin" which 
>> would give you the URL that was clicked. But most browsers now download or 
>> display the PDF automatically when a PDF link is clicked. Firefox opens the 
>> PDF in a new window, and I think Safari downloads it. Not sure about Windows.
> Windows, too, if the Acrobat Plug-in is installed on the target machine.
> Only Android cannot display in a browser so far, too bad.
>> If this is for mobile, the URL might be enough information. BTW, I tried to 
>> use these messages a very long time ago and they were not sent, but 
>> hopefully that's been fixed by now.
> Fingers crossed, will try and tell. :-)
> Thank you!

macOS 12.6.1, LC 9.6.9 rc2

I tried:
--
on browserNavigateBegin pUrl
   if pURL ends with ".pdf" then
  libURLDownloadToFile pUrl, (specialfolderpath("dektop") & "/test666.pdf")
   else
  pass browserNavigateBegin
   end if   
end browserNavigateBegin

on browserDocumentLoadBegin pUrl
   if pURL ends with ".pdf" then
  libURLDownloadToFile pUrl, (specialfolderpath("dektop") & "/test666.pdf")
   else
  pass browserDocumentLoadBegin
   end if   
end browserDocumentLoadBegin
--
No file on the desktop, the browser simply ignores the script!?

So any hint on how to download a clicked linke in the browser widget still 
welcome!


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-06 Thread Klaus major-k via use-livecode
Hi Jacque,

> Am 06.12.2022 um 21:59 schrieb J. Landman Gay via use-livecode 
> :
> On 12/6/22 1:13 PM, Klaus major-k via use-livecode wrote:
>>> what is the browser widget's equivalent to a field's "on linkclicked tLink" 
>>> message?
>>> Thanks for any hint!
>> I want to check if the user clicked e.g. a PDF file and download the file in 
>> that case.
>> What message do I have to catch in the browser widget?
> You could try "browserDocumentLoadBegin" or "browserNavigateBegin" which 
> would give you the URL that was clicked. But most browsers now download or 
> display the PDF automatically when a PDF link is clicked. Firefox opens the 
> PDF in a new window, and I think Safari downloads it. Not sure about Windows.

Windows, too, if the Acrobat Plug-in is installed on the target machine.
Only Android cannot display in a browser so far, too bad.

> If this is for mobile, the URL might be enough information. BTW, I tried to 
> use these messages a very long time ago and they were not sent, but hopefully 
> that's been fixed by now.

Fingers crossed, will try and tell. :-)
Thank you!

> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-06 Thread J. Landman Gay via use-livecode

On 12/6/22 1:13 PM, Klaus major-k via use-livecode wrote:

what is the browser widget's equivalent to a field's "on linkclicked tLink" 
message?
Thanks for any hint!


I want to check if the user clicked e.g. a PDF file and download the file in 
that case.
What message do I have to catch in the browser widget?


You could try "browserDocumentLoadBegin" or "browserNavigateBegin" which would give you the URL 
that was clicked. But most browsers now download or display the PDF automatically when a PDF 
link is clicked. Firefox opens the PDF in a new window, and I think Safari downloads it. Not 
sure about Windows.


If this is for mobile, the URL might be enough information. BTW, I tried to use these messages 
a very long time ago and they were not sent, but hopefully that's been fixed by now.


--
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: Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-06 Thread Klaus major-k via use-livecode
Hi all,

> Am 06.12.2022 um 17:14 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi all,
> 
> what is the browser widget's equivalent to a field's "on linkclicked tLink" 
> message?
> Thanks for any hint!

I want to check if the user clicked e.g. a PDF file and download the file in 
that case.
What message do I have to catch in the browser widget?


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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


Equivalent of a field's "on linkclicked" message in a browser widget?

2022-12-06 Thread Klaus major-k via use-livecode
Hi all,

what is the browser widget's equivalent to a field's "on linkclicked tLink" 
message?
Thanks for any hint!


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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 doesn't display PDF

2022-11-29 Thread matthias rebbe via use-livecode
Hello Panos,

thanks for reminding me of bug 22534. 
I should have remember it. That bug report is based on a support request i 
filed. ;) 

> Am 29.11.2022 um 18:38 schrieb panagiotis m via use-livecode 
> :
> 
> Hello Matthias,
> 
> See:
> 
> https://quality.livecode.com/show_bug.cgi?id=18378

Thanks, i was not aware of that report. Btw. you are commenting in that report, 
that you could replicate the problem with a 316 page PDF, but not with a 5 page 
pdf.
In my case the PDF has only 1 page.

> https://quality.livecode.com/show_bug.cgi?id=22534
> 
I knew that one already, because its a bug report based on a support request i 
filed. ;) 
To be honest, i almost forget about it. 
Rereading my comments i remembered that one hast remove the plugins and logoff 
and login again to get it working with the widget.




> I suggest using a PDF widget instead of a browser widget to display the pdf
> files, until this bug is fixed.

Btw. this might be a workaround for me if i need also the Acrobat plugins, but 
according to the dictionary the PDF widget is only available with a Pro license.
So this is not a workaround for everyone.


Anyway, thanks again.

Matthias

> 
> Kind regards,
> Panos
> --
> 
> On Tue, 29 Nov 2022 at 18:59, matthias rebbe via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hello,
>> 
>> i am currently having problems that a browser widget doesn't display a
>> pdf, regardless if remote or local.
>> 
>> I just see a white blank page. Sometime an error message comes up telling
>> me that "PDFViewer could not find a compatible version of Adobe Acrobat or
>> Adobe Reader for displaying this PDF file."
>> Something like that. I get a German error message.
>> 
>> The interesting part is, that Safari does not have a problem with
>> displaying the PDF and the folders ~/library/internet-plugins and
>> /library/Internet-plugins both contain the Acrobat plugins.
>> 
>> Tried here with LC 9.6.9RC2 and 10DP4 on Ventura 13.0.1.
>> 
>> Does anyone has an idea what might be wrong?
>> 
>> Regards,
>> Matthias
>> 
>> 
>> ___
>> 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 doesn't display PDF

2022-11-29 Thread panagiotis m via use-livecode
Hello Matthias,

See:

https://quality.livecode.com/show_bug.cgi?id=18378
https://quality.livecode.com/show_bug.cgi?id=22534

I suggest using a PDF widget instead of a browser widget to display the pdf
files, until this bug is fixed.

Kind regards,
Panos
--

On Tue, 29 Nov 2022 at 18:59, matthias rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hello,
>
> i am currently having problems that a browser widget doesn't display a
> pdf, regardless if remote or local.
>
> I just see a white blank page. Sometime an error message comes up telling
> me that "PDFViewer could not find a compatible version of Adobe Acrobat or
> Adobe Reader for displaying this PDF file."
> Something like that. I get a German error message.
>
> The interesting part is, that Safari does not have a problem with
> displaying the PDF and the folders ~/library/internet-plugins and
> /library/Internet-plugins both contain the Acrobat plugins.
>
> Tried here with LC 9.6.9RC2 and 10DP4 on Ventura 13.0.1.
>
> Does anyone has an idea what might be wrong?
>
> Regards,
> Matthias
>
>
> ___
> 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 doesn't display PDF

2022-11-29 Thread matthias rebbe via use-livecode
Hello,

i am currently having problems that a browser widget doesn't display a pdf, 
regardless if remote or local.

I just see a white blank page. Sometime an error message comes up telling me 
that "PDFViewer could not find a compatible version of Adobe Acrobat or Adobe 
Reader for displaying this PDF file."
Something like that. I get a German error message.

The interesting part is, that Safari does not have a problem with displaying 
the PDF and the folders ~/library/internet-plugins and 
/library/Internet-plugins both contain the Acrobat plugins.

Tried here with LC 9.6.9RC2 and 10DP4 on Ventura 13.0.1.

Does anyone has an idea what might be wrong?

Regards,
Matthias


___
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 and Images

2022-03-14 Thread Rick Harrison via use-livecode
Thanks!

I had forgotten about "import as control" and about
set the imagedata of image “my image”.

set the imagedata doesn’t fit to the image’s object size though.
I would probably have to resize the image beforehand.

I also came across:

put URL "binfile:///ExportedImageFile.png" into image  “my image”

The above does fit the image size nicely and I can paint on it etc.

Thanks for all of your help!

Rick



> On Mar 14, 2022, at 5:04 AM, Klaus major-k via use-livecode 
>  wrote:
> 
>> set the imagedata of img "myImage" to the imagedata of img "myImage"
> 
> what Jim said! :-)
> 
> Thisw way the image becomes part of the stack as if "imported as control" 

___
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 and Images

2022-03-14 Thread Klaus major-k via use-livecode
Hi Rick,

> Am 14.03.2022 um 04:53 schrieb Jim Lambert via use-livecode 
> :
> 
>> So accessing the URL of the image directly in the image object
>> puts the image there, which is a good first step.
>> 
>> How is it stored however?  
>> 
>> If one looks at the image source it still shows the URL. 
>> 
>> I find I?m unable to paint on top of the image, probably 
>> because that would require my being able to modify the
>> online URL which isn?t possible for the obvious reason.
>> 
>> I probably need to make a local copy of the image to
>> be able to work on it.  Export image? Copy it to
>> the clipboard and paste it elsewhere?
>> 
>> Suggestions?
> 
> Rick,
> set the imagedata of img "myImage" to the imagedata of img "myImage"

what Jim said! :-)

Thisw way the image becomes part of the stack as if "imported as control" 
and you can paint on it or whatever, which is not possible with referenced 
images, be they local or online.

> Will replace the referenced image with the actual content of that image.
> In other words the image will now be local and you can then manipulate its 
> data.
> No need for snapshots. Although they work too!
> 
> Jim Lambert

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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 and Images

2022-03-13 Thread Jim Lambert via use-livecode
> 
> So accessing the URL of the image directly in the image object
> puts the image there, which is a good first step.
> 
> How is it stored however?  
> 
> If one looks at the image source it still shows the URL. 
> 
> I find I?m unable to paint on top of the image, probably 
> because that would require my being able to modify the
> online URL which isn?t possible for the obvious reason.
> 
> I probably need to make a local copy of the image to
> be able to work on it.  Export image? Copy it to
> the clipboard and paste it elsewhere?
> 
> Suggestions?

Rick,
set the imagedata of img "myImage" to the imagedata of img "myImage"

Will replace the referenced image with the actual content of that image.
In other words the image will now be local and you can then manipulate its data.
No need for snapshots. Although they work too!

Jim Lambert
___
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 and Images

2022-03-13 Thread Peter Bogdanoff via use-livecode
Rick, you want to look at the export snapshot or the export image commands for 
that.

pb

> On Mar 13, 2022, at 1:56 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Klaus,
> 
> Thanks for answering.
> 
> So accessing the URL of the image directly in the image object
> puts the image there, which is a good first step.
> 
> How is it stored however?  
> 
> If one looks at the image source it still shows the URL. 
> 
> I find I’m unable to paint on top of the image, probably 
> because that would require my being able to modify the
> online URL which isn’t possible for the obvious reason.
> 
> I probably need to make a local copy of the image to
> be able to work on it.  Export image? Copy it to
> the clipboard and paste it elsewhere?
> 
> Suggestions?
> 
> Rick
> 
> 
> 
>> On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi Rick,
>> 
>>> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode 
>>> :
>>> 
>>> I have a large free public domain image displaying nicely in my LC Browser 
>>> Widget.
>>> I want to bring the image directly into a LiveCode image object to be able 
>>> to play around with it.
>>> What’s the best way to do that?
>> 
>> why not just set the FILENAME of the image object to the file, either local 
>> or online?
>> If the image is very big, you could group that single image object and add 
>> the groups scrollbars.
>> Or just scale the image...
>> 
>>> While I was looking around in the dictionary for possibilities, I came
>>> across some older revBrowser commands.  Do they work with with
>>> the new browser widget or are the two completely different animals?
>> 
>>> 
>>> Thanks,
>>> 
>>> Rick
>> 
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> https://www.major-k.de/bass
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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 and Images

2022-03-13 Thread Rick Harrison via use-livecode
Hi Klaus,

Thanks for answering.

So accessing the URL of the image directly in the image object
puts the image there, which is a good first step.

How is it stored however?  

If one looks at the image source it still shows the URL. 
 
I find I’m unable to paint on top of the image, probably 
because that would require my being able to modify the
online URL which isn’t possible for the obvious reason.

I probably need to make a local copy of the image to
be able to work on it.  Export image? Copy it to
the clipboard and paste it elsewhere?

Suggestions?

Rick



> On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Rick,
> 
>> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode 
>> :
>> 
>> I have a large free public domain image displaying nicely in my LC Browser 
>> Widget.
>> I want to bring the image directly into a LiveCode image object to be able 
>> to play around with it.
>> What’s the best way to do that?
> 
> why not just set the FILENAME of the image object to the file, either local 
> or online?
> If the image is very big, you could group that single image object and add 
> the groups scrollbars.
> Or just scale the image...
> 
>> While I was looking around in the dictionary for possibilities, I came
>> across some older revBrowser commands.  Do they work with with
>> the new browser widget or are the two completely different animals?
> 
>> 
>> Thanks,
>> 
>> Rick
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> 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 and Images

2022-03-13 Thread Klaus major-k via use-livecode
Hi Rick,

> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode 
> :
> 
> I have a large free public domain image displaying nicely in my LC Browser 
> Widget.
> I want to bring the image directly into a LiveCode image object to be able to 
> play around with it.
> What’s the best way to do that?

why not just set the FILENAME of the image object to the file, either local or 
online?
If the image is very big, you could group that single image object and add the 
groups scrollbars.
Or just scale the image...

> While I was looking around in the dictionary for possibilities, I came
> across some older revBrowser commands.  Do they work with with
> the new browser widget or are the two completely different animals?

> 
> Thanks,
> 
> Rick

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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 and Images

2022-03-13 Thread Rick Harrison via use-livecode
I have a large free public domain image displaying nicely in my LC Browser 
Widget.

I want to bring the image directly into a LiveCode image object to be able to 
play around with it.

What’s the best way to do that?

While I was looking around in the dictionary for possibilities, I came
across some older revBrowser commands.  Do they work with with
the new browser widget or are the two completely different animals?

Thanks,

Rick
___
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 Issues

2022-03-11 Thread Tom Glod via use-livecode
Hi Rick,

document.getElementById("Butto Name").click();

that should work ...but yes this solution assumes you know the name of the
button.

I can't say for sure but I think its that LC is looking for "what
livecode control" is under this clickloc . and then sends a message
to that controlso in this case, it just send mouseUp to the widget. If
the widget even accepts it.

Good luck Rick.

On Fri, Mar 11, 2022 at 5:13 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Still cannot understand why it is that my Apple Mail program seems to
> think a completely different mail thread is the same thread as the one I
> was using. If however people are clicking on one thread, replying and
> changing the subject, in theory that is, well then that is just bad list
> etiquette. :-)
>
> Bob S
>
>
> > On Mar 11, 2022, at 10:25 , Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I was hoping to be able to programmatically
> > tell the browser widget where to go to next
> > by having LC click on an image or button
> > within the browser window.
> >
> > So far I have had no success with that.
> > Is there a bug in LC preventing me from
> > doing this seemingly simple task?
> >
> > Is there a work around?
> >
> > Thanks in advance!
> >
> > Rick
>
> ___
> 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 Issues

2022-03-11 Thread Bob Sneidar via use-livecode
Still cannot understand why it is that my Apple Mail program seems to think a 
completely different mail thread is the same thread as the one I was using. If 
however people are clicking on one thread, replying and changing the subject, 
in theory that is, well then that is just bad list etiquette. :-)

Bob S


> On Mar 11, 2022, at 10:25 , Rick Harrison via use-livecode 
>  wrote:
> 
> I was hoping to be able to programmatically
> tell the browser widget where to go to next
> by having LC click on an image or button
> within the browser window.  
> 
> So far I have had no success with that.  
> Is there a bug in LC preventing me from
> doing this seemingly simple task?
> 
> Is there a work around?
> 
> Thanks in advance!
> 
> Rick

___
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 Issues

2022-03-11 Thread Rick Harrison via use-livecode
Hi Tom,

Do you have a more specific Javascript/LC example?

I’m not a big fan of Javascript and only use it very sparingly.

I would also have to first scan the HTML to find the name of the button I want 
it to activate wouldn’t I?

If I have to go into that fine detail I would be better off scanning for the 
link and just using a URL statement.

Why doesn’t click at location work?

Thanks,

Rick

> On Mar 11, 2022, at 3:49 PM, Tom Glod via use-livecode 
>  wrote:
> 
> You just need to pass some javascript to the browser to trigger the button
> you want.
> 
> do this_js in widget "myBrowser"
> 
> and this_js should have the javascript to click the button.
> 
> Imagine the possibilities :)
> 
> 
> On Fri, Mar 11, 2022 at 3:31 PM Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Simple mouseClick at location.
>> 
>>> On Mar 11, 2022, at 1:51 PM, Klaus major-k via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> what did you try so far?
>> 
>> ___
>> 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 Issues

2022-03-11 Thread Tom Glod via use-livecode
You just need to pass some javascript to the browser to trigger the button
you want.

do this_js in widget "myBrowser"

and this_js should have the javascript to click the button.

Imagine the possibilities :)


On Fri, Mar 11, 2022 at 3:31 PM Rick Harrison via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Simple mouseClick at location.
>
> > On Mar 11, 2022, at 1:51 PM, Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > what did you try so far?
>
> ___
> 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 Issues

2022-03-11 Thread Rick Harrison via use-livecode
Simple mouseClick at location.

> On Mar 11, 2022, at 1:51 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> what did you try so far?

___
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 Issues

2022-03-11 Thread Klaus major-k via use-livecode
Hi Rick,

sorry, looks like I completely misunderstood your question...

> Am 11.03.2022 um 19:51 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi Rick,
> 
>> Am 11.03.2022 um 19:25 schrieb Rick Harrison via use-livecode 
>> :
>> 
>> I was hoping to be able to programmatically
>> tell the browser widget where to go to next
>> by having LC click on an image or button
>> within the browser window.  
>> 
>> So far I have had no success with that.  
>> Is there a bug in LC preventing me from
>> doing this seemingly simple task?
>> 
>> Is there a work around?
> 
> what did you try so far?
> 
>> Thanks in advance!
>> 
>> Rick

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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 Issues

2022-03-11 Thread Klaus major-k via use-livecode
Hi Rick,

> Am 11.03.2022 um 19:25 schrieb Rick Harrison via use-livecode 
> :
> 
> I was hoping to be able to programmatically
> tell the browser widget where to go to next
> by having LC click on an image or button
> within the browser window.  
> 
> So far I have had no success with that.  
> Is there a bug in LC preventing me from
> doing this seemingly simple task?
> 
> Is there a work around?

what did you try so far?

> Thanks in advance!
> 
> Rick

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
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 Issues

2022-03-11 Thread Rick Harrison via use-livecode
I was hoping to be able to programmatically
tell the browser widget where to go to next
by having LC click on an image or button
within the browser window.  

So far I have had no success with that.  
Is there a bug in LC preventing me from
doing this seemingly simple task?

Is there a work around?

Thanks in advance!

Rick

___
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 - follow redirects setting?

2022-01-27 Thread Keith Clarke via use-livecode
Hi Matthias,
Thanks for your response and experiment.

Unfortunately, I get the same experience with 'launch URL in...' and 'set the 
URL of…’ widget “Browser”

I think it might be my URL. I’m trying to access the Salesforce OAuth 2.0 User 
Agent flow via the browser, as I can’t get the OAuth library to work for this 
flow.

Maybe I’ll try dipping my to into tsnet, as that looks like it may have the 
comparative mechanisms to replicate a recipe I have working from PHP.

Thanks and regards,
Keith   

> On 26 Jan 2022, at 13:27, matthias rebbe via use-livecode 
>  wrote:
> 
> Keith,
> 
> what happens, if you set the URL of the browser widget to tURL?
> 
> I tried here both "set the url..." and also "launch URL ... in widget.." with 
> an online Shop. I tried to launch the account page. In both cases i was 
> redirected to the login page.
> The only thing i noticed is, that the URL of the widget kept to be the URL of 
> the account page although  the login page was opened/displayed.
> 
> Regards,
> Matthias
> 
>> Am 26.01.2022 um 12:24 schrieb Keith Clarke via use-livecode 
>> :
>> 
>> Hi folks,
>> Is there any hidden / undocumented setting for the Browser widget that will 
>> allow it to follow redirects?
>> 
>> Using launch URL tURL opens the default browser on my machine and - if I’m 
>> not logged into the server - redirects to a login page, the address of which 
>> I can see in the browser’s address bar.
>> 
>> However, launch URL tURL in widget "Browser” doesn’t redirect and 
>> subsequently put the URL of widget  “Browser" shows tURL unchanged.
>> 
>> Am I missing a trick?
>> Best,
>> Keith
>> ___
>> 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 - follow redirects setting?

2022-01-26 Thread matthias rebbe via use-livecode
Keith,

what happens, if you set the URL of the browser widget to tURL?

I tried here both "set the url..." and also "launch URL ... in widget.." with 
an online Shop. I tried to launch the account page. In both cases i was 
redirected to the login page.
The only thing i noticed is, that the URL of the widget kept to be the URL of 
the account page although  the login page was opened/displayed.

Regards,
Matthias

> Am 26.01.2022 um 12:24 schrieb Keith Clarke via use-livecode 
> :
> 
> Hi folks,
> Is there any hidden / undocumented setting for the Browser widget that will 
> allow it to follow redirects?
> 
> Using launch URL tURL opens the default browser on my machine and - if I’m 
> not logged into the server - redirects to a login page, the address of which 
> I can see in the browser’s address bar.
> 
> However, launch URL tURL in widget "Browser” doesn’t redirect and 
> subsequently put the URL of widget  “Browser" shows tURL unchanged.
> 
> Am I missing a trick?
> Best,
> Keith
> ___
> 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 - follow redirects setting?

2022-01-26 Thread Keith Clarke via use-livecode
Hi folks,
Is there any hidden / undocumented setting for the Browser widget that will 
allow it to follow redirects?

Using launch URL tURL opens the default browser on my machine and - if I’m not 
logged into the server - redirects to a login page, the address of which I can 
see in the browser’s address bar.

However, launch URL tURL in widget "Browser” doesn’t redirect and subsequently 
put the URL of widget  “Browser" shows tURL unchanged.

Am I missing a trick?
Best,
Keith
___
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: How to paste into a form element in the browser widget

2021-12-14 Thread Tore Nilsen via use-livecode
Ah, I see! Wel,l back to redesigning the whole application to include the menus 
then. Thanks!

Best Regards
Tore

> 14. des. 2021 kl. 13:04 skrev Mark Waddingham via use-livecode 
> :
> 
> On 2021-12-14 11:41, Tore Nilsen via use-livecode wrote:
>> I have a problem pasting into a form element on a web page in the
>> browser widget. This works well in the IDE, but not in a standalone
>> application. The application has no menus, but I have included a
>> pasteKey script to handle paste shortcuts. This does not seem to do
>> the trick in the browser widget. I have tried to put the script in the
>> stack script, the card script and even in the widget itself, although
>> I wouldn’t expect the latter to work. Are there anyone who has run
>> across this problem before and may offer a solution?
> 
> I think you'll need to include an Edit menu with the normal shortcuts 
> (Cut/Copy/Paste) - make sure the tag of the items is correct as the engine 
> uses those to map them to the internal (Cocoa) references. e.g.
> 
>  (Cu&t /X|cut
>  (&Copy /C|copy
>  (&Paste /V|paste
> 
> Cocoa-based controls (which the browser widget uses the WebView variant of) 
> don't respond to shortcuts directly, but only via menu item accelerators - so 
> the browser widget needs the menu items present for such shortcuts to work.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> 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: How to paste into a form element in the browser widget

2021-12-14 Thread Mark Waddingham via use-livecode

On 2021-12-14 11:41, Tore Nilsen via use-livecode wrote:

I have a problem pasting into a form element on a web page in the
browser widget. This works well in the IDE, but not in a standalone
application. The application has no menus, but I have included a
pasteKey script to handle paste shortcuts. This does not seem to do
the trick in the browser widget. I have tried to put the script in the
stack script, the card script and even in the widget itself, although
I wouldn’t expect the latter to work. Are there anyone who has run
across this problem before and may offer a solution?


I think you'll need to include an Edit menu with the normal shortcuts 
(Cut/Copy/Paste) - make sure the tag of the items is correct as the 
engine uses those to map them to the internal (Cocoa) references. e.g.


  (Cu&t /X|cut
  (&Copy /C|copy
  (&Paste /V|paste

Cocoa-based controls (which the browser widget uses the WebView variant 
of) don't respond to shortcuts directly, but only via menu item 
accelerators - so the browser widget needs the menu items present for 
such shortcuts to work.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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


How to paste into a form element in the browser widget

2021-12-14 Thread Tore Nilsen via use-livecode
I have a problem pasting into a form element on a web page in the browser 
widget. This works well in the IDE, but not in a standalone application. The 
application has no menus, but I have included a pasteKey script to handle paste 
shortcuts. This does not seem to do the trick in the browser widget. I have 
tried to put the script in the stack script, the card script and even in the 
widget itself, although I wouldn’t expect the latter to work. Are there anyone 
who has run across this problem before and may offer a solution?

Best regards
Tore Nilsen
___
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: access DOM in browser widget?

2021-11-22 Thread Tim Selander via use-livecode
Sorry to pick up this thread half a year later, but I am 
searching for an answer to a related problem.


On the LiveCode Forums I learned that if the page is loaded in a 
Browser widget on the desktop version of LC, you can [get the 
htmltext of widget "browser"] and get the info JS provides that 
is not part of the page's HTML source code. (In my case, I want 
the number of plays of a track on Soundcloud.)


But I would like to get at this JS/DOM info through an LC Server 
script running on my on-rev.com server -- no browser widget there.


Does anyone know how to get the JS/DOM generated text from a web 
page using LC Server?


Any help appreciated!

Tim Selander
Tokyo, Japan



On 2021.04.29 3:44, Tore Nilsen via use-livecode wrote:

Have you had a look at "do in widget" in the Dictionary? You can actually 
perform JavaScript from LC on content in the browser widget.

Best regards
Tore


28. apr. 2021 kl. 20:33 skrev Ben Rubinstein via use-livecode 
:


Thanks for responding Tom


But if yoiu need any more of a direct way accessing itI don't know of one.

Yes, that's what I'm after: to have a browser widget in a LiveCode stack, and 
be able to access the DOM (not the htmlText) in LiveCode script.

It's not my page so I can't add javascript to it.

Does anyone know if this is possible?

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: How to deploy app from Mac to Linux (with Browser widget) ?

2021-07-22 Thread panagiotis m via use-livecode
Hello Ben,

Unfortunately the browser widget is still broken on most Linux distros. You
might be able to work this around in your app by using "launch url .." if
the platform is Linux, to use the default browser instead of the browser
widget.

Kind regards,
Panos
--

On Thu, 22 Jul 2021 at 10:53, Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> I've made a little utility that's been working for me on Mac (actually
> I've
> just been running it in the IDE). I wanted to share it with a colleague
> who
> uses Linux, so I selected Mac, Windows, Linux in the standalone settings,
> selected "auto-detect" for inclusions, built it.
>
> Tested the standalone Mac app on my computer, works fine.
>
> Zipped up the Linux64 package, sent my colleague the zip. She said
> "something
> froze and i cannot close it".
>
> Two questions:
>
> - do I need to do something special to package up the Linux app before
> sending
> it? Does my colleague need to do something special to install/run it?
> She's
> using "5.4.0-80-generic #90-Ubuntu".
>
> - this uses the browser widget. I've seen something on the list about will
> we
> ever get CEF browser on Linux - but the widget was listed as for linux in
> the
> Standalone Builder,  and indeed a folder "CEF" is the bulk of the
> "Externals"
> folder that the Standalone Builder created. So I'm guessing that was an
> historical problem.
>
> Please enlighten me!
>
> 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


Re: access scroll of browser widget

2021-07-22 Thread Ben Rubinstein via use-livecode
Thanks Ralph - this is without any access to the html or javascript - generic 
browser that the user might point anywhere.


Thank you,

Ben

On 21/07/2021 18:24, Ralph DiMola via use-livecode wrote:

Ben,

Setting the x/y scroll is easy:
do "window.scrollTo(0,500);" in widget "nameOfBrowserWidget"
See https://www.w3schools.com/jsref/met_win_scrollto.asp

I don't know how to get the current scroll position on random pages. If you
have control of the html then you can set the javascriptHandlers in LC and
have a callback to LC from a JavaScript handler in the html to interrogate
the current scroll position.


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Ben Rubinstein via use-livecode
Sent: Wednesday, July 21, 2021 12:44 PM
To: Use LiveCode
Cc: Ben Rubinstein
Subject: access scroll of browser widget


The browser widget has properties hScrollbar and vScrollbar - but doesn't
appear to have properties hScroll or vScroll.

Is there any way to get and set the scroll (FWIW I'm only interested in the
vertical) of a browser widget?

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


How to deploy app from Mac to Linux (with Browser widget) ?

2021-07-22 Thread Ben Rubinstein via use-livecode



I've made a little utility that's been working for me on Mac (actually I've 
just been running it in the IDE). I wanted to share it with a colleague who 
uses Linux, so I selected Mac, Windows, Linux in the standalone settings, 
selected "auto-detect" for inclusions, built it.


Tested the standalone Mac app on my computer, works fine.

Zipped up the Linux64 package, sent my colleague the zip. She said "something 
froze and i cannot close it".


Two questions:

- do I need to do something special to package up the Linux app before sending 
it? Does my colleague need to do something special to install/run it? She's 
using "5.4.0-80-generic #90-Ubuntu".


- this uses the browser widget. I've seen something on the list about will we 
ever get CEF browser on Linux - but the widget was listed as for linux in the 
Standalone Builder,  and indeed a folder "CEF" is the bulk of the "Externals" 
folder that the Standalone Builder created. So I'm guessing that was an 
historical problem.


Please enlighten me!

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


RE: access scroll of browser widget

2021-07-21 Thread Ralph DiMola via use-livecode
Ben,

Setting the x/y scroll is easy:
do "window.scrollTo(0,500);" in widget "nameOfBrowserWidget"
See https://www.w3schools.com/jsref/met_win_scrollto.asp

I don't know how to get the current scroll position on random pages. If you
have control of the html then you can set the javascriptHandlers in LC and
have a callback to LC from a JavaScript handler in the html to interrogate
the current scroll position.


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Ben Rubinstein via use-livecode
Sent: Wednesday, July 21, 2021 12:44 PM
To: Use LiveCode
Cc: Ben Rubinstein
Subject: access scroll of browser widget


The browser widget has properties hScrollbar and vScrollbar - but doesn't
appear to have properties hScroll or vScroll.

Is there any way to get and set the scroll (FWIW I'm only interested in the
vertical) of a browser widget?

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


access scroll of browser widget

2021-07-21 Thread Ben Rubinstein via use-livecode



The browser widget has properties hScrollbar and vScrollbar - but doesn't 
appear to have properties hScroll or vScroll.


Is there any way to get and set the scroll (FWIW I'm only interested in the 
vertical) of a browser widget?


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


Re: How to scale the content of the Browser Widget

2021-07-14 Thread matthias rebbe via use-livecode
@Ralph @Keith

Thank you very much for your suggestions. I will try.

Regards,
Matthias


> Am 14.07.2021 um 08:27 schrieb Keith Clarke via use-livecode 
> :
> 
> An idea extending Ralph's suggestion to use html, along with styling to do 
> the heavy lifting rather than JavaScript. A div with a background image might 
> do the trick...
> 
> Image title
>  repeat cover; "> 
> 
> ...where:
> ... 'vh' is viewport height units (as percentage) and '2rem' leaves some 
> space for the image title, (expressed as font size relative to that in the 
> html root element).
> 
> ...background provides for background images, and size as 'cover' fill the 
> containing div (with some scaling in one dimension that affects aspect ratio) 
> - so use 'contain' if you want the image to be as large as possible with its 
> aspect ratio left intact. See help for this background shorthand styling 
> examples and related information here 
> https://www.w3schools.com/css/css_background_shorthand.asp
> 
> HTH
> Keith 
> 
>> On 13 Jul 2021, at 22:24, Ralph DiMola via use-livecode 
>>  wrote:
>> 
>> One way...
>> Create a local html template and replace an href place holder in the
>> template to the url of the web server image.
>> Then load the template page into the browser widget and let html do the
>> resizing heavy lifting. This will not break cors.
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
>> Of matthias rebbe via use-livecode
>> Sent: Tuesday, July 13, 2021 5:00 PM
>> To: How to use LiveCode
>> Cc: matthias_livecode_150...@m-r-d.de
>> Subject: How to scale the content of the Browser Widget
>> 
>> Hi,
>> 
>> i need to display jpeg images in the browser widget. The images are stored
>> on a webserver and i  have no control about the size of the images. 
>> What i can say is that the images are larger than the browser widget area.
>> Is there a way to scale the images so they are fully visible in the browser
>> widget? 
>> I do not want to temporarily store them on hard disk, resize them and then
>> display.
>> I need something like an "on the fly" scaling.  
>> I am wondering if this might be possible with Javascript? Unfortunately i am
>> not very used Javascript.
>> 
>> Does anyone know if this is possible?
>> 
>> Regards,
>> 
>> Matthias
>> 
>> 
>> ___
>> 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


___
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: How to scale the content of the Browser Widget

2021-07-13 Thread Keith Clarke via use-livecode
An idea extending Ralph's suggestion to use html, along with styling to do the 
heavy lifting rather than JavaScript. A div with a background image might do 
the trick...

Image title
 

...where:
... 'vh' is viewport height units (as percentage) and '2rem' leaves some space 
for the image title, (expressed as font size relative to that in the html root 
element).

...background provides for background images, and size as 'cover' fill the 
containing div (with some scaling in one dimension that affects aspect ratio) - 
so use 'contain' if you want the image to be as large as possible with its 
aspect ratio left intact. See help for this background shorthand styling 
examples and related information here 
https://www.w3schools.com/css/css_background_shorthand.asp

HTH
Keith 

> On 13 Jul 2021, at 22:24, Ralph DiMola via use-livecode 
>  wrote:
> 
> One way...
> Create a local html template and replace an href place holder in the
> template to the url of the web server image.
> Then load the template page into the browser widget and let html do the
> resizing heavy lifting. This will not break cors.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of matthias rebbe via use-livecode
> Sent: Tuesday, July 13, 2021 5:00 PM
> To: How to use LiveCode
> Cc: matthias_livecode_150...@m-r-d.de
> Subject: How to scale the content of the Browser Widget
> 
> Hi,
> 
> i need to display jpeg images in the browser widget. The images are stored
> on a webserver and i  have no control about the size of the images. 
> What i can say is that the images are larger than the browser widget area.
> Is there a way to scale the images so they are fully visible in the browser
> widget? 
> I do not want to temporarily store them on hard disk, resize them and then
> display.
> I need something like an "on the fly" scaling.  
> I am wondering if this might be possible with Javascript? Unfortunately i am
> not very used Javascript.
> 
> Does anyone know if this is possible?
> 
> Regards,
> 
> Matthias
> 
> 
> ___
> 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: How to scale the content of the Browser Widget

2021-07-13 Thread Ralph DiMola via use-livecode
One way...
Create a local html template and replace an href place holder in the
template to the url of the web server image.
Then load the template page into the browser widget and let html do the
resizing heavy lifting. This will not break cors.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of matthias rebbe via use-livecode
Sent: Tuesday, July 13, 2021 5:00 PM
To: How to use LiveCode
Cc: matthias_livecode_150...@m-r-d.de
Subject: How to scale the content of the Browser Widget

Hi,

i need to display jpeg images in the browser widget. The images are stored
on a webserver and i  have no control about the size of the images. 
What i can say is that the images are larger than the browser widget area.
Is there a way to scale the images so they are fully visible in the browser
widget? 
I do not want to temporarily store them on hard disk, resize them and then
display.
I need something like an "on the fly" scaling.  
I am wondering if this might be possible with Javascript? Unfortunately i am
not very used Javascript.

Does anyone know if this is possible?

Regards,

Matthias


___
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


How to scale the content of the Browser Widget

2021-07-13 Thread matthias rebbe via use-livecode
Hi,

i need to display jpeg images in the browser widget. The images are stored on a 
webserver and i  have no control about the size of the images. 
What i can say is that the images are larger than the browser widget area.
Is there a way to scale the images so they are fully visible in the browser 
widget? 
I do not want to temporarily store them on hard disk, resize them and then 
display.
I need something like an "on the fly" scaling.  
I am wondering if this might be possible with Javascript? Unfortunately i am 
not very used Javascript.

Does anyone know if this is possible?

Regards,

Matthias


___
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: Setting the browser widget user-agent to impersonate Chrome

2021-06-06 Thread Terry Judd via use-livecode
Never mind - it seems to be working now __

On 7/6/21, 12:43 pm, "use-livecode on behalf of Terry Judd via use-livecode" 
 wrote:

I’m trying to get the browser widget to identify itself as Chrome so that I 
can (attempt to) load a particular site. Is there a trick to how you format the 
user-agent string when you set the widget’s user-agent in its object inspector 
or should I just be able to enter something along these lines…

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/91.0.4472.77 Safari/537.36

This doesn’t work BTW (the page I attempt to load tells me to get Chrome).

Any ideas?

Terry…

___
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


Setting the browser widget user-agent to impersonate Chrome

2021-06-06 Thread Terry Judd via use-livecode
I’m trying to get the browser widget to identify itself as Chrome so that I can 
(attempt to) load a particular site. Is there a trick to how you format the 
user-agent string when you set the widget’s user-agent in its object inspector 
or should I just be able to enter something along these lines…

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/91.0.4472.77 Safari/537.36

This doesn’t work BTW (the page I attempt to load tells me to get Chrome).

Any ideas?

Terry…

___
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 Issue

2021-05-29 Thread Tom Glod via use-livecode
following

On Wed, May 26, 2021 at 6:30 AM David Bovill via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Thanks Keith - the issue is with the HTML5 that uses modern webrtc
> standards for video - either the javascript is excluding the type of
> embedded framework Livecode is no using on MacOS - or the framework
> doesn’t;t yet support those. Features - I’d like to check - but not sure
> what Livecode is using under the hood. Would be nice if it were in the
> dictionary entry.
> On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> > Hi David,
> > Pass on the framework, but regarding the page…
> >
> > FWIW from the message box, I was able to set the url of widget ‘Browser’
> to "https://obs.ninja” (apparently empty...) but then put the htmltext of
> widget “Browser” to see that there is indeed some content.
> >
> > So, it’s not scripting itself to hide and there’s some content &
> potential to investigate why it’s rendering as 'white on white'. However,
> only inline styling is available as AFAIK there’s no dev tools nor access
> to any downloaded css files, wherever resources might get cached by the LC
> browser widget…?
> >
> > Good luck,
> > Keith
> >
> > > On 25 May 2021, at 17:53, David Bovill via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> > >
> > > I’m having trouble keeping track of which framework the browser widget
> uses - on MacOS is it using webkit or Chromium?
> > >
> > > A url I am trying to access is blank - https://obs.ninja - while it
> is showing in Safari and Chrome on the desktop - any suggestions?
> > > ___
> > > 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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
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 Issue

2021-05-26 Thread Andrew at MidWest Coast Media via use-livecode
This lesson hints at the fact that Chromium (CEF) is the default for all 
platforms except Mac that uses WebKit
https://lessons.livecode.com/m/2592/l/278115-create-a-browser-instance-within-your-app
 
<https://lessons.livecode.com/m/2592/l/278115-create-a-browser-instance-within-your-app>

-Andrew Bell

> 
> Date: Wed, 26 May 2021 11:29:04 +0100
> From: David Bovill 
> Subject: Re: Browser Widget Issue
> 
> Thanks Keith - the issue is with the HTML5 that uses modern webrtc standards 
> for video - either the javascript is excluding the type of embedded framework 
> Livecode is no using on MacOS - or the framework doesn?t;t yet support those. 
> Features - I?d like to check - but not sure what Livecode is using under the 
> hood. Would be nice if it were in the dictionary entry.
> On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode 
> , wrote:
>> Hi David,
>> Pass on the framework, but regarding the page?
>> 
>> FWIW from the message box, I was able to set the url of widget ?Browser? to 
>> "https://obs.ninja? (apparently empty...) but then put the htmltext of 
>> widget ?Browser? to see that there is indeed some content.
>> 
>> So, it?s not scripting itself to hide and there?s some content & potential 
>> to investigate why it?s rendering as 'white on white'. However, only inline 
>> styling is available as AFAIK there?s no dev tools nor access to any 
>> downloaded css files, wherever resources might get cached by the LC browser 
>> widget??
>> 
>> Good luck,
>> Keith
>> 
>>> On 25 May 2021, at 17:53, David Bovill via use-livecode 
>>>  wrote:
>>> 
>>> I?m having trouble keeping track of which framework the browser widget uses 
>>> - on MacOS is it using webkit or Chromium?
>>> 
>>> A url I am trying to access is blank - https://obs.ninja - while it is 
>>> showing in Safari and Chrome on the desktop - any suggestions?

___
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 Issue

2021-05-26 Thread David Bovill via use-livecode
Thanks Keith - the issue is with the HTML5 that uses modern webrtc standards 
for video - either the javascript is excluding the type of embedded framework 
Livecode is no using on MacOS - or the framework doesn’t;t yet support those. 
Features - I’d like to check - but not sure what Livecode is using under the 
hood. Would be nice if it were in the dictionary entry.
On 25 May 2021, 18:11 +0100, Keith Clarke via use-livecode 
, wrote:
> Hi David,
> Pass on the framework, but regarding the page…
>
> FWIW from the message box, I was able to set the url of widget ‘Browser’ to 
> "https://obs.ninja” (apparently empty...) but then put the htmltext of widget 
> “Browser” to see that there is indeed some content.
>
> So, it’s not scripting itself to hide and there’s some content & potential to 
> investigate why it’s rendering as 'white on white'. However, only inline 
> styling is available as AFAIK there’s no dev tools nor access to any 
> downloaded css files, wherever resources might get cached by the LC browser 
> widget…?
>
> Good luck,
> Keith
>
> > On 25 May 2021, at 17:53, David Bovill via use-livecode 
> >  wrote:
> >
> > I’m having trouble keeping track of which framework the browser widget uses 
> > - on MacOS is it using webkit or Chromium?
> >
> > A url I am trying to access is blank - https://obs.ninja - while it is 
> > showing in Safari and Chrome on the desktop - any suggestions?
> > ___
> > 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 Issue

2021-05-25 Thread Keith Clarke via use-livecode
Hi David,
Pass on the framework, but regarding the page…

FWIW from the message box, I was able to set the url of widget ‘Browser’ to 
"https://obs.ninja” (apparently empty...) but then put the htmltext of widget 
“Browser” to see that there is indeed some content. 

So, it’s not scripting itself to hide and there’s some content & potential to 
investigate why it’s rendering as 'white on white'. However, only inline 
styling is available as AFAIK there’s no dev tools nor access to any downloaded 
css files, wherever resources might get cached by the LC browser widget…?

Good luck,
Keith 

> On 25 May 2021, at 17:53, David Bovill via use-livecode 
>  wrote:
> 
> I’m having trouble keeping track of which framework the browser widget uses - 
> on MacOS is it using webkit or Chromium?
> 
> A url I am trying to access is blank - https://obs.ninja  - while it is 
> showing in Safari and Chrome on the desktop - any suggestions?
> ___
> 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 Issue

2021-05-25 Thread David Bovill via use-livecode
I’m having trouble keeping track of which framework the browser widget uses - 
on MacOS is it using webkit or Chromium?

A url I am trying to access is blank - https://obs.ninja  - while it is showing 
in Safari and Chrome on the desktop - any suggestions?
___
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: access DOM in browser widget?

2021-04-28 Thread Tore Nilsen via use-livecode
Have you had a look at "do in widget" in the Dictionary? You can actually 
perform JavaScript from LC on content in the browser widget.

Best regards
Tore

> 28. apr. 2021 kl. 20:33 skrev Ben Rubinstein via use-livecode 
> :
> 
> 
> Thanks for responding Tom
> 
>> But if yoiu need any more of a direct way accessing itI don't know of 
>> one.
> Yes, that's what I'm after: to have a browser widget in a LiveCode stack, and 
> be able to access the DOM (not the htmlText) in LiveCode script.
> 
> It's not my page so I can't add javascript to it.
> 
> Does anyone know if this is possible?
> 
> 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


Re: access DOM in browser widget?

2021-04-28 Thread Ben Rubinstein via use-livecode



Thanks for responding Tom

But if yoiu need any more of a direct way accessing itI don't know of 
one.
Yes, that's what I'm after: to have a browser widget in a LiveCode stack, and 
be able to access the DOM (not the htmlText) in LiveCode script.


It's not my page so I can't add javascript to it.

Does anyone know if this is possible?

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


Re: access DOM in browser widget?

2021-04-28 Thread Tom Glod via use-livecode
Hi Ben.. You can run JS in the browser widget.

Found this 

https://forums.livecode.com/viewtopic.php?t=31730

But if yoiu need any more of a direct way accessing itI don't know of
one.


On Wed, Apr 28, 2021 at 1:34 PM Ben Rubinstein via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> Is there a way to access the DOM from the browser widget?
>
> 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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
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


access DOM in browser widget?

2021-04-28 Thread Ben Rubinstein via use-livecode



Is there a way to access the DOM from the browser widget?

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


Re: Emtying browser widget cache?

2021-03-16 Thread Håkan Liljegren via use-livecode
Thanks! Works like a charm! Should have thought about that, myself. Teaching 
web design for nearly two decades, and still missed the obvious…

:-Håkan
On 15 Mar 2021, 21:21 +0100, How to use LiveCode 
, wrote:
>
> do "location.reload()" in widget "myBrowser"
>
> Kind regards,
> Panos
___
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: Emtying browser widget cache?

2021-03-15 Thread panagiotis merakos via use-livecode
Hello Håkan,

Try

do "location.reload()" in widget "myBrowser"

Kind regards,
Panos
--

On Mon, 15 Mar 2021 at 22:15, Håkan Liljegren via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does anyone know if the browser widget has its own cache? If I load a
> local web page (by setting the URL property) the browser widget seams to
> cache the linked CSS-file. If I restart LiveCode the edits usually go
> through, but, is there any way to empty the browser widget cache without
> needing to restart LiveCode? Or is it just me doing stupid stuff? (It might
> occasionally have happened before ;) )
>
> :-Håkan
> ___
> 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


Emtying browser widget cache?

2021-03-15 Thread Håkan Liljegren via use-livecode
Does anyone know if the browser widget has its own cache? If I load a local web 
page (by setting the URL property) the browser widget seams to cache the linked 
CSS-file. If I restart LiveCode the edits usually go through, but, is there any 
way to empty the browser widget cache without needing to restart LiveCode? Or 
is it just me doing stupid stuff? (It might occasionally have happened before 
;) )

:-Håkan
___
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

2021-02-02 Thread Terence Heaford via use-livecode
I believe the Browser Widget uses the native browser and in that case it uses 
the same code as Safari on MacOS?

I have been using CanvasJS to create some charts and have been rendering the 
result in the Browser Widget using Set the URL of …..

These charts have been created on the computer and not via the internet.

Generally they render well except for the animation of the chart.

In Safari it's as smooth as silk.

In the Browser Widget there is some slight stutter that does slightly affect 
the user experience.

Does anyone know why this stutter exists with the Browser Widget and not with 
Safari and is there a solution?


Thanks

Terry



___
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: Will Browser widget ever work on Linux?

2020-12-10 Thread Tom Glod via use-livecode
Thanks for all the inputs gentlemen

I agree on the need for cross platform embedded browser support.

Will LC use another embedded browser for the mac?

So I guess there are more questions than answers here in terms of a 3
platform solution.

I have my first ssd sitting in the box, and once i install it i will try
not to take it for granted when judging the "performance" of my work.

Cheers,

Tom





On Wed, Dec 9, 2020 at 12:15 PM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 12/9/20 8:40 AM, Curry Kenworthy via use-livecode wrote:
>
> > Yep, it actually feels great to be a Windows-first LiveCoder.
>
> I'm not gonna get sucked into religious wars here... 
>
> > Like the field, embedded Browser is a way to
> > deliver and display so many different kinds of content that it should be
> > considered a foundational part of LC. Can't afford to let it slip.
>
> Yep. So... browser support on linux?
>
> > Now that I have an SSD, the LC script editor troubles are a thing of the
> > past too. LC simply made the mistake of designing broadly-used software
> > on high-end hardware, so it wasn't a great design, especially for the
> > masses. (Strange because that's usually a beginner's mistake.)
>
> When I worked at Apple I was always the guy who wanted to use the older
> hardware while everyone else was jumping for the latest models because I
> was dead set on finding compatibility bugs. My favorite discovery was
> uncovering a bug in the MPW C compiler because it had only previously
> been tested on the latest shiny new hardware.
>
> --
>   Mark Wieder
>   ahsoftw...@gmail.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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
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: Will Browser widget ever work on Linux?

2020-12-09 Thread Mark Wieder via use-livecode

On 12/9/20 8:40 AM, Curry Kenworthy via use-livecode wrote:

Yep, it actually feels great to be a Windows-first LiveCoder. 


I'm not gonna get sucked into religious wars here... 

Like the field, embedded Browser is a way to 
deliver and display so many different kinds of content that it should be 
considered a foundational part of LC. Can't afford to let it slip.


Yep. So... browser support on linux?

Now that I have an SSD, the LC script editor troubles are a thing of the 
past too. LC simply made the mistake of designing broadly-used software 
on high-end hardware, so it wasn't a great design, especially for the 
masses. (Strange because that's usually a beginner's mistake.)


When I worked at Apple I was always the guy who wanted to use the older 
hardware while everyone else was jumping for the latest models because I 
was dead set on finding compatibility bugs. My favorite discovery was 
uncovering a bug in the MPW C compiler because it had only previously 
been tested on the latest shiny new hardware.


--
 Mark Wieder
 ahsoftw...@gmail.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: Will Browser widget ever work on Linux?

2020-12-09 Thread Curry Kenworthy via use-livecode



Mark:

> It's actually OSX where CEF usage was
> dropped, not Windows.

Yep, it actually feels great to be a Windows-first LiveCoder. 
Ironically, things "just work." In fact I'm doing a Windows app right 
now, using - guess what - the Browser widget. Works a treat.


It's hard to overstate how important embedded Browser support is. Along 
with, of course, the field object, which can do much more than most 
people realize. (The cliques and promoters/repeaters in this LC 
community always breathlessly push certain resources, at the expense of 
awareness about others.) Like the field, embedded Browser is a way to 
deliver and display so many different kinds of content that it should be 
considered a foundational part of LC. Can't afford to let it slip.


And the Browser needs to work fairly seamlessly cross-platform, to a 
reasonable extent. That's why we're all here, right?


About Windows: Once upon a time I was a big Mac guy and Mac-first 
shareware author. I was all about Mac...until Apple made some dumb and 
hypocritical UI decisions, contradicting their own doctrine repeatedly 
and destructively. They took a crowbar to the beloved Mac OS and made it 
much less convenient and satisfying to use.


I never jumped ship onto the Linux rowboat. Nice to have that platform - 
and by all means it should be supported. I'm still an enthusiastic 
Mac-second developer, and I welcome Linux work on occasion, but I 
adopted Windows as my primary OS since their UI had some advantages. To 
this day I'm very happy to be firmly cross-platform and proudly 
Windows-first.


Now that I have an SSD, the LC script editor troubles are a thing of the 
past too. LC simply made the mistake of designing broadly-used software 
on high-end hardware, so it wasn't a great design, especially for the 
masses. (Strange because that's usually a beginner's mistake.) Remember 
how the newly open-source LC was going to open up the world of coding to 
the third-world masses? Nope, not gonna happen, not with that kind of 
disk usage! I always design on budget hardware, so that at least the 
middle class can use the end product too.


But now SSD has become the standard for new budget hardware, so very 
soon that will be moot - once again LC runs just fine with modern 
antivirus and Windows 10. (Talking about a real Windows computer - hi 
Richmond - and not a partition or virtualized system. Real PC, real Mac 
is the way to go.) So for users stuck on "the dark side" of Mac or Linux 
- the grass really is greener over here at the moment. Fingers crossed.


Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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: Will Browser widget ever work on Linux?

2020-12-08 Thread Mark Wieder via use-livecode

On 12/8/20 3:12 PM, Mark Wieder via use-livecode wrote:


LC also has dropped using the CEF on Windows because reasons.


Oops. Have to correct myself here. It's actually OSX where CEF usage was 
dropped, not Windows.


More gory details here



--
 Mark Wieder
 ahsoftw...@gmail.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


  1   2   3   4   5   6   7   >