Search found 118 matches

by Zax
Wed Sep 18, 2019 2:16 pm
Forum: Internet
Topic: Browser widget timeout?
Replies: 15
Views: 257

Re: Browser widget timeout?

In your initial posting you said that you get a TIMEOUT ("...while loading a distant web page in an existing Browser widget") and now you are telling us you don't? :shock: Nooooo dear Klaus! :oops: I asked how to correctly handle a timeout. I said I have a fast connexion, but slow connexion happens...
by Zax
Wed Sep 18, 2019 12:36 pm
Forum: Internet
Topic: Browser widget timeout?
Replies: 15
Views: 257

Re: Browser widget timeout?

I performed another test with: Button script: on mouseUp urlTest end mouseUp Card script on urlTest set the socketTimeoutInterval to 1000--milliseconds put "https://livecode.com" into theUrl unload URL theUrl -- clear cache load URL theUrl with message "loadingComplete" end urlTest on loadingComplet...
by Zax
Wed Sep 18, 2019 8:20 am
Forum: Internet
Topic: Browser widget timeout?
Replies: 15
Views: 257

Re: Browser widget timeout?

This is what I tried: Test button script on mouseUp set the socketTimeoutInterval to 1--milliseconds set the URL of widget "BrowserTest" to "https://livecode.com" end mouseUp Browser widget script on socketTimeout answer "Timeout! (widget)" end socketTimeout Card script on socketTimeout answer "Time...
by Zax
Tue Sep 17, 2019 3:52 pm
Forum: Internet
Topic: Browser widget timeout?
Replies: 15
Views: 257

Re: Browser widget timeout?

Well, socketTimeout message doesn't seem to be sent, even when I use: set the socketTimeoutInterval to 1 In fact, I think I don't understand how to use sockets with Browser widget. Documentation says: If the socketTimeoutInterval passes and no data has been transmitted yet, the socketTimeout message...
by Zax
Tue Sep 17, 2019 1:34 pm
Forum: Internet
Topic: Browser widget timeout?
Replies: 15
Views: 257

Re: Browser widget timeout?

Hello Klaus ! socketTimeoutInterval doesn't seem to work with a Browser widget. That's why I originaly posted in Widgets sub-forum, following [-hh] 's advice here: https://forums.livecode.com/viewtopic.php?f=8&t=33106&start=15 There is an own subform for LiveCode Builder (especially widgets (especia...
by Zax
Tue Sep 17, 2019 12:42 pm
Forum: Internet
Topic: Browser widget timeout?
Replies: 15
Views: 257

Browser widget timeout?

Hello, I'm not familiar with the Browser widget and I would like to know the better way to set and handle a timeout while loading a distant web page in an existing Browser widget. I know I can check is the page is loaded or failed with browserDocumentLoadComplete and browserDocumentLoadFailed , but ...
by Zax
Tue Sep 17, 2019 8:49 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: HTML source code within Web Browser?
Replies: 17
Views: 418

Re: HTML source code within Web Browser?

@ [-hh] : Thanks for the link.
@ bogs : just took a look at the Edlin Wikipedia page... I guess it was funny to use :wink:
by Zax
Mon Sep 16, 2019 12:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: HTML source code within Web Browser?
Replies: 17
Views: 418

Re: HTML source code within Web Browser?

Thanks bogs, I'm not familiar with these "new" widgets (I started coding with Hypercard :P ). My next question would be about parsing DOM with a pure LC solution and build an array in order to perform accurate node search. Maybe something like https://simplehtmldom.sourceforge.io/ for PHP. But first...
by Zax
Mon Sep 16, 2019 7:51 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: HTML source code within Web Browser?
Replies: 17
Views: 418

Re: HTML source code within Web Browser?

If the browser widget already is displaying the URL, you can also: get the htmltext of widget "browser" Perfect! Now Javascript generated code appears in the "source" web page. Thank you very much :) To go further, is there a way to know when the web page displayed in the widget is fully loaded? ( ...
by Zax
Sun Sep 15, 2019 12:20 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: HTML source code within Web Browser?
Replies: 17
Views: 418

Re: HTML source code within Web Browser?

Simple and great !
Thanks bogs :)
by Zax
Sun Sep 15, 2019 11:07 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: HTML source code within Web Browser?
Replies: 17
Views: 418

HTML source code within Web Browser?

Hello,

Is there a way to retrieve the source code of a web page - a distant URL - displayed in a LC 9 web browser (widget or revBrowserSet command)?

Thank you.
by Zax
Thu Sep 05, 2019 9:40 am
Forum: Mac OS
Topic: Sending data from Applescript to LC standalone?
Replies: 0
Views: 84

Sending data from Applescript to LC standalone?

Hello,

Sorry if it is a very basic question, but how could I launch a LC standalone app with a string as parameter from an Applescript?
And also, send back another string to the applescript from my LC standalone?

Thank you.
by Zax
Wed May 29, 2019 5:53 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to make a text field "copyable" but not editable?
Replies: 19
Views: 1180

Re: How to make a text field "copyable" but not editable?

Klaus wrote:
Wed May 29, 2019 11:12 am
Will also work with a "Label" field, if you check "TraversalOn" and "Autohilite" in the inspector!
You're right, Klaus. "Autohilite" for a field was not obvious.
Thanks dunbarx for the "mouseDoubleDown" tip.
by Zax
Wed May 29, 2019 11:07 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to make a text field "copyable" but not editable?
Replies: 19
Views: 1180

Re: How to make a text field "copyable" but not editable?

Danke Klaus :)

I was trying on a label field... My bad.
by Zax
Wed May 29, 2019 10:19 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to make a text field "copyable" but not editable?
Replies: 19
Views: 1180

How to make a text field "copyable" but not editable?

Hello, Is there a way to make a text field "copyable" but not editable? I know this could easily be done with a script attached to a button "Copy" for example, but I prefer to let the user select part of the text, and then use the standard menu item "Copy"... but this field shouldn't be editable, so...

Go to advanced search