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


Re: Preventing Browser Navigation

2023-11-29 Thread David Bovill via use-livecode
Finally I often get the following error:

LCB Error error evaluating javascript
Object View|Obeya|Studio
LCB File browser.lcb
LCB Line 1007

The javascript in question executes with the desired result - but the error
is thrown by Livecode presenting a dialogue. I can use the "Supress Errors"
menu option to prevent this, but wondering if its a bug?
___
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: Preventing Browser Navigation

2023-11-28 Thread David Bovill via use-livecode
So you should be able to prevent navigation on iOS using:

on browserLoadRequest pURL, pType
  -- iOS only
end browserLoadRequest

But that does not work with the browser widget. Also I don;t seem to be
able to respond to browser html / javascript events that seek to open a url
in a new browser tab. This means that displaying web sites that use this
functionality is not possible. Or is there a way? The following do not
respond to links in the html that open such tabs - in fact they don't seem
to be triggered:
on browserFrameDocumentLoadFailed pUrl, pError
   breakpoint
end browserFrameDocumentLoadFailed

on browserFrameDocumentLoadBegin pUrl
   breakpoint
end browserFrameDocumentLoadBegin

on browserDocumentLoadFailed pUrl, pError
   breakpoint
end browserDocumentLoadFailed

on browserUnhandledLoadRequest pUrl
   breakpoint
end browserUnhandledLoadRequest

These work, but are not useful for the purpose of blocking a load, or
responding to requests for open in a new tab events:

on browserNavigateBegin sUrl
   breakpoint
end browserNavigateBegin

on browserDocumentLoadBegin pUrl
  breakpoint
end browserDocumentLoadBegin




On Tue, 28 Nov 2023 at 17:43, David Bovill  wrote:

> Is there a way to prevent the desktop browser widget from navigating to a
> new url by blocking a message? I seem to remember it was possible but
> intercepting: browserNavigateBegin, browserDocumentLoadBegin messages do
> not prevent the navigation. I wish to process a url dropped on the page
> rather than navigate to it.
>
___
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


Preventing Browser Navigation

2023-11-28 Thread David Bovill via use-livecode
Is there a way to prevent the desktop browser widget from navigating to a
new url by blocking a message? I seem to remember it was possible but
intercepting: browserNavigateBegin, browserDocumentLoadBegin messages do
not prevent the navigation. I wish to process a url dropped on the page
rather than navigate to it.
___
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


Linux and the search for a controllable Web Browser

2023-08-24 Thread Derek Bump via use-livecode
Good Day,

I've been wrestling with the Browser widget on Linux long enough now that I've 
largely given up on using it for anything destined for a production 
environment. However, that has not reduced my need for a browser which I can 
control in my specific use-case: open a streaming video url, make it full 
screen, autoplay, wait for navigational input from the user (arrow keys, DEL 
key, etc), and close when requested.

I did attempt to build a controllable browser using Neutralinojs, which showed 
potential. With it's configuration options, having a borderless, floating 
browser window appear at exact coordinates is very do-able. Unfortunately for 
me, the cross-origin nature of using an iframe is preventing JavaScript from 
forcing playback without a physical "click" from the user. Setting the URL of 
the Neutralinojs "browser" directly (not using iframe) resolves the 
cross-origin restriction, but it still required click for playback. Plus, 
setting the URL directly wipes out any JavaScript written, so inter-process 
communications disappears immediately. So that solution isn't viable.

I'm thinking of attempting the same concept using Electron, but I'm betting 
100% the experience will be the same. Many in the past have abused the Autoplay 
feature, so its largely locked down in commercial browsers at this point. I'm 
pretty sure I'd have to compile a custom browser from source, which I have 
never done before. Nor am I interested in going down that rabbit hole (yet).

So I wanted to reach out to see if anyone has stumbled upon a solution for 
showing web pages on Linux in such a way that you can still maintain control 
over the browser through LiveCode?

With regards to my use-case, I've (temporarily) opted to launch Firefox using 
"open process" (non blocking) in Kiosk mode. This is nearly producing what I 
need, except regaining control involves terminating Firefox when my user 
presses a "Universal Home" button on their remote control. Not ideal, but it 
works.

What's frustrating is that there's a Browser Widget sitting in my toolbar which 
seems to work well on Windows and Mac. However, even if the widget was 
compatible (or I found a modern distro where it works), it still wouldn't solve 
my problem: LC's browser implementation has some of it's multimedia framework 
support turned off, so HLS is out the window. This would need to be added in by 
LiveCode Ltd., most likely.

Am I stuck?

I appreciate the help and look forward to feedback.

Thank you,
Derek Bump

___
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


Re: Snapshot of browser not working?

2023-08-05 Thread Andrew at MidWest Coast Media via use-livecode
I believe this is a bug/feature of the browser widget being a native control. 
What has worked for me is being more specific about the snapshot location.


  export snapshot from rect globalRect(the rect of widget “Browser" of 
group “foo") to pictVariable as PNG


This has worked in macOS and Windows standalones for a current project. Hope 
that helps!

—Andrew Bell


> Subject: Snapshot of browser not working?
> Message-ID:
>   
> Content-Type: text/plain; charset="UTF-8"
> 
> I cannot find a specific bug report - but I am trying to take a snapshot of
> a browser widget to capture an image of the website. In the latest 10 DP 5
> on MacOS M2 i get a very truncated text of the image (a few lines) in all
> formats using:
> 
> *export* snapshot from widget "Browser" to pictVariable as PNG
> 
> Is this something that works on other  platforms or livecode versions?
> 

___
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: Snapshot of browser not working?

2023-08-01 Thread Paul Dupuis via use-livecode
Exporting a snapshot of a PLAYER fails under Windows (see 
https://quality.livecode.com/show_bug.cgi?id=23694). Exporting the 
Browser widget may be related? If it is reproducible in a test stack, 
you shoud file a bug report with a test stack to demonstrate the error.


I seem to recall other export snapshot bugs. There is one related to 
multiple displays (https://quality.livecode.com/show_bug.cgi?id=22852) 
and there may be others.


On 8/1/2023 11:46 AM, David Bovill via use-livecode wrote:

I cannot find a specific bug report - but I am trying to take a snapshot of
a browser widget to capture an image of the website. In the latest 10 DP 5
on MacOS M2 i get a very truncated text of the image (a few lines) in all
formats using:

*export* snapshot from widget "Browser" to pictVariable as PNG

Is this something that works on other  platforms or livecode versions?
___
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


Snapshot of browser not working?

2023-08-01 Thread David Bovill via use-livecode
I cannot find a specific bug report - but I am trying to take a snapshot of
a browser widget to capture an image of the website. In the latest 10 DP 5
on MacOS M2 i get a very truncated text of the image (a few lines) in all
formats using:

*export* snapshot from widget "Browser" to pictVariable as PNG

Is this something that works on other  platforms or livecode versions?
___
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: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Andreas Bergendal via use-livecode
Wow, thanks Alex! That’s brilliant and exactly what I need!
I must have missed (or forgotten) that session at the conference - I’ll try to 
find it among the recordings to see if it helps explaining the various bits a 
little. In any case I’ll experiment with the code and see what I can get to 
work.

Cheers,
Andreas
___
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 use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Alex Tweedly via use-livecode
ment.value = null,
</tt><pre style="margin: 0em;">
                progressElement.max = null,
                progressElement.hidden = !0,
                e || (onLoaded())),
                statusElement.innerHTML = e)
            }
        },
        totalDependencies: 0,
        monitorRunDependencies: function(e) {
</pre><tt>            this.totalDependencies = 
</tt><tt>Math.max(this.totalDependencies, e),
</tt><tt>            Module.setStatus(e ? "Preparing... (" + 
</tt><tt>(this.totalDependencies - e) + "/" + this.totalDependencies + ")" : 
</tt><tt>"Starting App")
</tt><pre style="margin: 0em;">
        }
    };
    Module.setStatus("Loading..."),
    window.onerror = function(e) {
        Module.setStatus("Exception thrown, see JavaScript console"),
        spinnerElement.style.display = "none",
        Module.setStatus = function(e) {
            e && Module.printErr("[post-exception status] " + e)
        }
    }

    function onLoaded() {
        return true;
    }
    

    
    function getInnerHeight() {
        return window.innerHeight;
    }

    window.addEventListener("resize", function(data){
        if (document.liveCode) {
</pre><tt>            var myStack = 
</tt><tt>document.liveCode.findStackWithName("Meeting Space");
</tt><pre style="margin: 0em;">
            if (myStack) {
                myStack.browserResized(getInnerHeight());
            }
        }
    });

</pre><tt>document.getElementById("canvas").addEventListener("wheel", 
</tt><tt>function(event) {
</tt><pre style="margin: 0em;">
        event.preventDefault();
        if (document.liveCode) {
</pre><tt>            var myStack = 
</tt><tt>document.liveCode.findStackWithName("Meeting Space");
</tt><pre style="margin: 0em;">
            if (myStack) {
                myStack.scrollEvent(event.deltaX, event.deltaY);
            }
        }
    });
    

    

    
    
        
        Submit
        Cancel
    
    

    
</pre><tt>    const stripe = 
</tt><tt>Stripe("pk_test_51J5qZpI8kDUYhBxrrHHUnkjaku4wkg7QHTYMh9Qe2gTLowh48YAFgS2zI5HOGKqmWjLj2BRIgdtUQo2z1VRKivSV00lTFGjzQb");
</tt><pre style="margin: 0em;">
    const elements = stripe.elements();
    const card = elements.create("card");
    card.mount("#card");

    function displayFetchCardDetails() {
        card.clear();
        document.getElementById("submit").disabled = true;
        document.getElementById("overlay").style.display = "block";
    }

    card.on("change", pEvent => {
        if (pEvent.complete) {
            document.getElementById("submit").disabled = false;
        } else if (pEvent.error != undefined) {
            document.getElementById("submit").disabled = true;
        }
    });

document.getElementById("submit").addEventListener("click", pEvent => {
        document.getElementById("overlay").style.display = "none";
        stripe.createToken(card).then((pResult) => {
            if (pResult.error != undefined) {
                document
                    .liveCode
                    .findStackWithName("Meeting Space")
.stripeFetchCardDetailsOnError(pResult.error.message);
            } else {
                document
                    .liveCode
                    .findStackWithName("Meeting Space")
.stripeFetchCardDetailsOnSuccess(pResult.token.id);
            }
        });
    });

document.getElementById("cancel").addEventListener("click", pEvent => {
        document.getElementById("overlay").style.display = "none";
        document
            .liveCode
            .findStackWithName("Meeting Space")
            .stripeFetchCardDetailsOnCancel();
    });
    




On 06/08/2022 18:14, Andreas Bergendal via use-livecode wrote:

Thanks guys, those are indeed great resources for many cases.

What I’m after here however, are specific solutions to the javascript/livecode 
’pairing’ of code to manage browser window/stack resizing.
To avoid reinventing the wheel, if possible. I imagine this would be of great 
interest to a lot of people here, since having your stack react to browser 
window resizing should be quite crucial in many cases of LC web deployment.

That’s why I’m also confident that the mothership will build this into future 
releases of LC10. But as an early adopter, I can’t wait… ;-)
___
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 use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Mark Wieder via use-livecode

On 8/6/22 04:44, Andreas Bergendal via use-livecode wrote:


and Ali Lloyd’s cool WordLC app:
https://alilloyd.livecodehosting.com/wordlc/wordlc.html


Unfortunately that throws a divide-by-zero error at line 461 in 
computeGridFieldWidth when I try to resize the window.


--
 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: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Andreas Bergendal via use-livecode
Thanks guys, those are indeed great resources for many cases. 

What I’m after here however, are specific solutions to the javascript/livecode 
’pairing’ of code to manage browser window/stack resizing.
To avoid reinventing the wheel, if possible. I imagine this would be of great 
interest to a lot of people here, since having your stack react to browser 
window resizing should be quite crucial in many cases of LC web deployment.

That’s why I’m also confident that the mothership will build this into future 
releases of LC10. But as an early adopter, I can’t wait… ;-)
___
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 use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Mark Wieder via use-livecode

On 8/6/22 07:30, harrison--- via use-livecode wrote:


I have found the following website to be very helpful with a lot of my 
javascript projects.

Do you know about these guys?

https://www.w3schools.com/js/default.asp 



And also the amazing GitHub Copilot:

https://docs.github.com/en/copilot

--
 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: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread harrison--- via use-livecode
Hi Andreas,

I have found the following website to be very helpful with a lot of my 
javascript projects.

Do you know about these guys?

https://www.w3schools.com/js/default.asp 
<https://www.w3schools.com/js/default.asp>

I hope that helps you.

Cheers,

Rick

> On Aug 6, 2022, at 7:44 AM, Andreas Bergendal via use-livecode 
>  wrote:
> 
> Hi all,
> 
> So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would 
> like my stack to be able to react to resizeStack events when the browser 
> window is resized by the user. Or to adapt to e.g. a mobile browser screen 
> size.
> 
> For this, if I understand correctly, some javascript needs to be used. I’ve 
> tried to piece together how to do that from these sources:
> https://livecode.com/using-the-new-web-features-in-livecode-10-dp-1/
> 
> and Ali Lloyd’s cool WordLC app:
> https://alilloyd.livecodehosting.com/wordlc/wordlc.html
> 
> where he uses window.addEventListener(”resize” […] etc in the html file to 
> catch browser window resizing for the stack to react on. However, as I can’t 
> see his LC script side of it, I fail to figure out the proper adaptation to 
> my needs:
> 
> I want my stack to get, from javascript, the impulse that the browser window 
> has changed its width/height and what the new width/height is, in order to 
> trigger a normal resizeStack handler to deal with that.
> 
> Ideally, the javascript part of this should be included by LC in the 
> standalone build, and I hope that’s what they plan at least when LC10 stable 
> ships (seems logical), but in the meantime - can someone please help get the 
> code right?
> 
> /Andreas
> ___
> 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 use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Andreas Bergendal via use-livecode
Hi all,

So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would 
like my stack to be able to react to resizeStack events when the browser window 
is resized by the user. Or to adapt to e.g. a mobile browser screen size.

For this, if I understand correctly, some javascript needs to be used. I’ve 
tried to piece together how to do that from these sources:
https://livecode.com/using-the-new-web-features-in-livecode-10-dp-1/

and Ali Lloyd’s cool WordLC app:
https://alilloyd.livecodehosting.com/wordlc/wordlc.html

where he uses window.addEventListener(”resize” […] etc in the html file to 
catch browser window resizing for the stack to react on. However, as I can’t 
see his LC script side of it, I fail to figure out the proper adaptation to my 
needs:

I want my stack to get, from javascript, the impulse that the browser window 
has changed its width/height and what the new width/height is, in order to 
trigger a normal resizeStack handler to deal with that.

Ideally, the javascript part of this should be included by LC in the standalone 
build, and I hope that’s what they plan at least when LC10 stable ships (seems 
logical), but in the meantime - can someone please help get the code right?

/Andreas
___
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: Windows EXE with browser about 160 MB?

2022-03-14 Thread matthias rebbe via use-livecode
I would say, this is because Microsoft did not embed CEF into Windows. 

So if you customers are asking why, tell them "because they are using Windows" 
and if they want to use a smaller download file they should use macOS. ;) 

I for myself would not have a problem with a download size of 170MB for a 
program i want to use. Compared to Adobe, MS Office and other programs, 170MB 
are not worth moaning about 

But that's my opinion.

Matthias

> Am 13.03.2022 um 18:14 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi all,
> 
> I just created a Windows EXE from my stack and was shocked to see
> that the resulting folder is 150 MB (32 bit) resp. 170 MB (64 bit)!?
> 
> I thought the Windows version of the browser widget would also "hook"
> somehow into the system web engine like the Mac version does, but 
> obviously I was wrong... :-/
> 
> How can we make a good case for this to our customers? 8-) 
> I just want to display PDF files, not the whole internet.
> 
> Too bad LC does not sell the PDF widget separately...
> 
> 
> 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-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


Windows EXE with browser about 160 MB?

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

I just created a Windows EXE from my stack and was shocked to see
that the resulting folder is 150 MB (32 bit) resp. 170 MB (64 bit)!?

I thought the Windows version of the browser widget would also "hook"
somehow into the system web engine like the Mac version does, but 
obviously I was wrong... :-/

How can we make a good case for this to our customers? 8-) 
I just want to display PDF files, not the whole internet.

Too bad LC does not sell the PDF widget separately...


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 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: Requirements for display PDF in a browser on Windows?

2022-03-09 Thread Klaus major-k via use-livecode
Hi Tom,

> Am 09.03.2022 um 20:20 schrieb Tom Glod via use-livecode 
> :
> 
> (y) That I do not know unfortunately. Can't test I don't have windows 7
> anywhere.

OK, so I guess it will work on Win 10, if that is what you are running, right?

Someone else knows if this works on Win >= 7?
Don't be shy. :-)

> On Wed, Mar 9, 2022 at 1:45 PM Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Tom,
>> 
>>> Am 09.03.2022 um 19:40 schrieb Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> i use the widget.  Yes it can.
>> 
>> this is very good news, thank you! :-)
>> 
>> And what Windows version is neccessary for this to work?
>> All versions >= 7?

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: Requirements for display PDF in a browser on Windows?

2022-03-09 Thread Tom Glod via use-livecode
(y) That I do not know unfortunately. Can't test I don't have windows 7
anywhere.

On Wed, Mar 9, 2022 at 1:45 PM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Tom,
>
> > Am 09.03.2022 um 19:40 schrieb Tom Glod via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > i use the widget.  Yes it can.
>
> this is very good news, thank you! :-)
>
> And what Windows version is neccessary for this to work?
> All versions >= 7?
>
> > On Wed, Mar 9, 2022 at 1:10 PM Klaus major-k via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Hi Jaques,
> >>
> >>> Am 09.03.2022 um 19:01 schrieb J. Landman Gay via use-livecode <
> >> use-livecode@lists.runrev.com>:
> >>>
> >>> I believe it's the Chromium engine.
> >> thanks!
> >> But can it open PDFs out of the box?
>
> 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: Requirements for display PDF in a browser on Windows?

2022-03-09 Thread Klaus major-k via use-livecode
Hi Tom,

> Am 09.03.2022 um 19:40 schrieb Tom Glod via use-livecode 
> :
> 
> i use the widget.  Yes it can.

this is very good news, thank you! :-)

And what Windows version is neccessary for this to work?
All versions >= 7?

> On Wed, Mar 9, 2022 at 1:10 PM Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Jaques,
>> 
>>> Am 09.03.2022 um 19:01 schrieb J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> I believe it's the Chromium engine.
>> thanks!
>> But can it open PDFs out of the box?

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: Requirements for display PDF in a browser on Windows?

2022-03-09 Thread Tom Glod via use-livecode
i use the widget.  Yes it can.

On Wed, Mar 9, 2022 at 1:10 PM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Jaques,
>
> > Am 09.03.2022 um 19:01 schrieb J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > I believe it's the Chromium engine.
>
> thanks!
>
> But can it open PDFs out of the box?
>
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software | http://www.hyperactivesw.com
> > On March 9, 2022 4:47:26 AM Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> >>> Is "Chrome" the web engine that LC is unsing in the "browser widget"
> on Windows?
>
> 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: Requirements for display PDF in a browser on Windows?

2022-03-09 Thread Klaus major-k via use-livecode
Hi Jaques,

> Am 09.03.2022 um 19:01 schrieb J. Landman Gay via use-livecode 
> :
> 
> I believe it's the Chromium engine.

thanks!

But can it open PDFs out of the box?

> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On March 9, 2022 4:47:26 AM Klaus major-k via use-livecode 
>  wrote:
> 
>>> Is "Chrome" the web engine that LC is unsing in the "browser widget" on 
>>> Windows?

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: Requirements for display PDF in a browser on Windows?

2022-03-09 Thread J. Landman Gay via use-livecode

I believe it's the Chromium engine.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 9, 2022 4:47:26 AM Klaus major-k via use-livecode 
 wrote:


Is "Chrome" the web engine that LC is unsing in the "browser widget" on 
Windows?





___
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: Requirements for display PDF in a browser on Windows?

2022-03-09 Thread Klaus major-k via use-livecode
Hi Tom,

> Am 08.03.2022 um 23:55 schrieb Tom Glod via use-livecode 
> :
> 
> I have definitely opened PDF in the browser in the past  and it opened
> the default "chrome html 5" pdf reader.
> everything seems to have worked.
> And I don't see why it would no longer work now.

thank you for your answers, which leaves some question however.

Is "Chrome" the web engine that LC is unsing in the "browser widget" on Windows?
Or do you create that browser with "revbrowseropen..."?

> you can google "browser test" from within the browser and it will tell you
> some info about the chromium based browser.
> Some of it may shock you.

Ha, I highly doubt that! :-D

> Cheers
> 
> On Tue, Mar 8, 2022 at 3:08 PM Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi,
>> 
>>> Am 08.03.2022 um 19:54 schrieb Klaus major-k via use-livecode <
>> use-livecode@lists.runrev.com>:
>>> 
>>> Hi all,
>>> 
>>> the subject says it all, of course in regard of LC.
>>> 
>>> Is the web-plugin of Acrobat reader still neccessary?
>>> Or do current Windows Browser display PDF files out of the box?
>> 
>> and/or more important, what web engine is the browser widget using on
>> Windows?

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: Requirements for display PDF in a browser on Windows?

2022-03-08 Thread Tom Glod via use-livecode
I have definitely opened PDF in the browser in the past  and it opened
the default "chrome html 5" pdf reader.
everything seems to have worked.
And I don't see why it would no longer work now.
you can google "browser test" from within the browser and it will tell you
some info about the chromium based browser.
Some of it may shock you.

Cheers

On Tue, Mar 8, 2022 at 3:08 PM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi,
>
> > Am 08.03.2022 um 19:54 schrieb Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Hi all,
> >
> > the subject says it all, of course in regard of LC.
> >
> > Is the web-plugin of Acrobat reader still neccessary?
> > Or do current Windows Browser display PDF files out of the box?
>
> and/or more important, what web engine is the browser widget using on
> Windows?
>
> > 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
>
___
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: Requirements for display PDF in a browser on Windows?

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

> Am 08.03.2022 um 19:54 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi all,
> 
> the subject says it all, of course in regard of LC.
> 
> Is the web-plugin of Acrobat reader still neccessary?
> Or do current Windows Browser display PDF files out of the box?

and/or more important, what web engine is the browser widget using on Windows?

> 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


Requirements for display PDF in a browser on Windows?

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

the subject says it all, of course in regard of LC.

Is the web-plugin of Acrobat reader still neccessary?
Or do current Windows Browser display PDF files out of the box?

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 - 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 /X|cut
>  ( /C|copy
>  ( /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 /X|cut
  ( /C|copy
  ( /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: Project browser docs

2021-12-06 Thread Mike Kerner via use-livecode
PB is broken in a lot of ways, especially when it comes to handling groups.
There are several bug reports about it that go back a ways.

On Mon, Dec 6, 2021 at 11:26 AM J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> If you click the Layer header to view by layer order you'll see what
> you're
> looking for.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On December 6, 2021 7:10:29 AM Alex Tweedly via use-livecode
>  wrote:
>
> > Thanks Matthias - found it.
> >
> > It looks like it's not for me - I use too much nesting of groups and
> > can't handle a non-hierarchical view:-)
> >
> > Alex.
> >
> > On 06/12/2021 13:01, matthias rebbe via use-livecode wrote:
> >> Before the Project Browser was introduced  Application Overview was the
> >> tool to get an overview of all loaded stacks, its substacks, cards and
> all
> >> objects on that cards.
> >> You can now find it under Plugins->revApplicationOveriew.
> >>
> >> Regards,
> >> Matthias
> >>> Am 06.12.2021 um 13:49 schrieb Alex Tweedly via use-livecode
> >>> :
> >>>
> >>> On 06/12/2021 04:14, J. Landman Gay via use-livecode wrote:
> >>>
> >>>> I prefer the horizontal layout in the Application Overview, but i
> thought
> >>>> I'd give the PB another try now that I'm working on a simpler
> project. It's
> >>>> too unweildy for multi-stack projects with lots of controls.
> >>>>
> >>> Sorry, dumb question time - what is the "Application Overview" ?
> >>>
> >>> Thanks
> >>>
> >>> Alex.
> >>>
> >>>
> >>> ___
> >>> 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Project browser docs

2021-12-06 Thread J. Landman Gay via use-livecode
If you click the Layer header to view by layer order you'll see what you're 
looking for.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 6, 2021 7:10:29 AM Alex Tweedly via use-livecode 
 wrote:



Thanks Matthias - found it.

It looks like it's not for me - I use too much nesting of groups and
can't handle a non-hierarchical view:-)

Alex.

On 06/12/2021 13:01, matthias rebbe via use-livecode wrote:
Before the Project Browser was introduced  Application Overview was the 
tool to get an overview of all loaded stacks, its substacks, cards and all 
objects on that cards.

You can now find it under Plugins->revApplicationOveriew.

Regards,
Matthias
Am 06.12.2021 um 13:49 schrieb Alex Tweedly via use-livecode 
:


On 06/12/2021 04:14, J. Landman Gay via use-livecode wrote:

I prefer the horizontal layout in the Application Overview, but i thought 
I'd give the PB another try now that I'm working on a simpler project. It's 
too unweildy for multi-stack projects with lots of controls.



Sorry, dumb question time - what is the "Application Overview" ?

Thanks

Alex.


___
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: Project browser docs

2021-12-06 Thread Alex Tweedly via use-livecode

Thanks Matthias - found it.

It looks like it's not for me - I use too much nesting of groups and 
can't handle a non-hierarchical view:-)


Alex.

On 06/12/2021 13:01, matthias rebbe via use-livecode wrote:

Before the Project Browser was introduced  Application Overview was the tool to 
get an overview of all loaded stacks, its substacks, cards and all objects on 
that cards.
You can now find it under Plugins->revApplicationOveriew.

Regards,
Matthias

Am 06.12.2021 um 13:49 schrieb Alex Tweedly via use-livecode 
:

On 06/12/2021 04:14, J. Landman Gay via use-livecode wrote:


I prefer the horizontal layout in the Application Overview, but i thought I'd 
give the PB another try now that I'm working on a simpler project. It's too 
unweildy for multi-stack projects with lots of controls.


Sorry, dumb question time - what is the "Application Overview" ?

Thanks

Alex.


___
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: Project browser docs

2021-12-06 Thread matthias rebbe via use-livecode
Before the Project Browser was introduced  Application Overview was the tool to 
get an overview of all loaded stacks, its substacks, cards and all objects on 
that cards.
You can now find it under Plugins->revApplicationOveriew.

Regards,
Matthias
> Am 06.12.2021 um 13:49 schrieb Alex Tweedly via use-livecode 
> :
> 
> On 06/12/2021 04:14, J. Landman Gay via use-livecode wrote:
> 
>> I prefer the horizontal layout in the Application Overview, but i thought 
>> I'd give the PB another try now that I'm working on a simpler project. It's 
>> too unweildy for multi-stack projects with lots of controls.
>> 
> Sorry, dumb question time - what is the "Application Overview" ?
> 
> Thanks
> 
> Alex.
> 
> 
> ___
> 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: Project browser docs

2021-12-06 Thread Alex Tweedly via use-livecode

On 06/12/2021 04:14, J. Landman Gay via use-livecode wrote:

I prefer the horizontal layout in the Application Overview, but i 
thought I'd give the PB another try now that I'm working on a simpler 
project. It's too unweildy for multi-stack projects with lots of 
controls.



Sorry, dumb question time - what is the "Application Overview" ?

Thanks

Alex.


___
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: Project browser docs

2021-12-05 Thread J. Landman Gay via use-livecode
I found a lesson on it but it doesn't say what the dotted outline around 
some cards means.


A full explanation of the project browser should be in the user guide. I 
didn't think to check the lessons until today and newcomers may not even 
know the lessons exist. If the full documentation is too much to add to the 
guide, at least a link should be provided. Right now the guide only has a 
reference to a Project Browser section that doesn't exist.


I prefer the horizontal layout in the Application Overview, but i thought 
I'd give the PB another try now that I'm working on a simpler project. It's 
too unweildy for multi-stack projects with lots of controls.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 5, 2021 9:28:05 PM "J. Landman Gay via use-livecode" 
 wrote:



So I take it there are no docs?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 4, 2021 3:03:35 PM "J. Landman Gay via use-livecode"
 wrote:


Where is the documentation for the project browser? There's nothing in the
User Guides in the
dictionary. There are several mentions in the User Guide under the Help
menu but they all refer
to managing datagrids. There is one mention "for more details, see the
section on the project
browser" but there is no such section.

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





___
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: Project browser docs

2021-12-05 Thread J. Landman Gay via use-livecode

So I take it there are no docs?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 4, 2021 3:03:35 PM "J. Landman Gay via use-livecode" 
 wrote:


Where is the documentation for the project browser? There's nothing in the 
User Guides in the
dictionary. There are several mentions in the User Guide under the Help 
menu but they all refer
to managing datagrids. There is one mention "for more details, see the 
section on the project

browser" but there is no such section.

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





___
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


Project browser docs

2021-12-04 Thread J. Landman Gay via use-livecode
Where is the documentation for the project browser? There's nothing in the User Guides in the 
dictionary. There are several mentions in the User Guide under the Help menu but they all refer 
to managing datagrids. There is one mention "for more details, see the section on the project 
browser" but there is no such section.


--
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: 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: PDF in browser on Mac

2021-11-15 Thread Klaus major-k via use-livecode
Hi Henry,

> Am 15.11.2021 um 16:02 schrieb HENRY LOWE via use-livecode 
> :
> 
> Using the browser widget to view a PDF under Mac OS 12.0.1 and LC 9.6.5 
> (rc2), if I right click (control + click) anywhere in the displayed PDF 
> (including white space) I get a pop-up menu showing several options. 
> Selecting any of the PDF’s text and right clicking shows additional options.

thanks a lot for the fast response!
Yes, same here, somehow missed that one. :-)

I had to check "allowUserInteraction" to make this work.

Now if only the scrollbars would work...

> Henry
> 
>> On Nov 15, 2021, at 2:46 PM, Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi friends,
>> 
>> when we open a PDf in Safari, we see this little toolbar at the bottom of 
>> the window
>> zoom in/out, open in Preview, Download that file
>> I am definitively sure that we also saw this in the browser widget on Mac 
>> when opening
>> a PDF here. But now i don't see this little toolbar anymore!?
>> Did I dream this? Or was something changed in macOS or the LC version? 
>> macOS 10.14.6
>> LC 9.6.4

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: PDF in browser on Mac

2021-11-15 Thread HENRY LOWE via use-livecode
Using the browser widget to view a PDF under Mac OS 12.0.1 and LC 9.6.5 (rc2), 
if I right click (control + click) anywhere in the displayed PDF (including 
white space) I get a pop-up menu showing several options. Selecting any of the 
PDF’s text and right clicking shows additional options.

Henry

> On Nov 15, 2021, at 2:46 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> when we open a PDf in Safari, we see this little toolbar at the bottom of the 
> window
> zoom in/out, open in Preview, Download that file
> 
> I am definitively sure that we also saw this in the browser widget on Mac 
> when opening
> a PDF here. But now i don't see this little toolbar anymore!?
> 
> Did I dream this? Or was something changed in macOS or the LC version? 
> macOS 10.14.6
> LC 9.6.4
> 
> Thanks in advance!
> 
> 
> Still very annoying:
> The scrollbars for the browser widget are still not fixed, makes our apps 
> look unprofessional,
> if the users cannot scroll! Or even completely useless... :-/
> 
> 
> 
> 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


  1   2   3   4   5   6   7   8   9   10   >