Search found 52 matches

by TorstenHolmer
Wed Nov 01, 2023 2:06 pm
Forum: iOS Deployment
Topic: copying text from safari & pasting it into a LC fld
Replies: 8
Views: 4620

Re: copying text from safari & pasting it into a LC fld

I am looking for a way to put text from a livecode field into the clipboard of an iOS-Device. The plugin from Trevor seems to do this, but I cannot see how to use the plugin in my livecode app because there is no description / documentation for it. Can somebody explain me how to integrate the plugin...
by TorstenHolmer
Mon Jun 05, 2023 8:44 am
Forum: HTML5
Topic: Why is POST to URL not working in html5 standalone?
Replies: 7
Views: 6483

Re: Why is POST to URL not working in html5 standalone?

I have implemented a HTML5 standalone and it can communicate directly with the server where the standalone is installed with the normal GET (put url URL into VAR) and POST (post VAR to url URL). This does not work if the URL is not on the same server than the standalone. Then the javascript trick fr...
by TorstenHolmer
Tue Jan 17, 2023 7:42 am
Forum: Android Deployment
Topic: How to use the "share" feature on Android for sending links to a livecode app?
Replies: 3
Views: 2298

Re: How to use the "share" feature on Android for sending links to a livecode app?

Hi Jacque, thanks for the hint, but it seems that LC needs beyond the XML manifest a function called "getIntent" which will import the data. Also the app needs an icon for the sharesheet in Android etc. So the simplest way I could find and will use is the following: In the sender app choose "Share" ...
by TorstenHolmer
Sun Jan 08, 2023 5:54 pm
Forum: Android Deployment
Topic: How to use the "share" feature on Android for sending links to a livecode app?
Replies: 3
Views: 2298

How to use the "share" feature on Android for sending links to a livecode app?

Hi,

I want to send a link from a newspaper app via the share feature of Android to my mobile livecode app.
I tried it with the url scheme but it does not work.

Is there a way to "register" my app that it can receive the information by "share" or how can I do this?

Cheers,
Torsten
by TorstenHolmer
Tue Sep 06, 2022 11:46 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Hex - Decimal converter
Replies: 8
Views: 5505

Re: Hex - Decimal converter

Hi Richmond, thanks a lot for the inspiration. I was looking for a kind of function to do that in LC and developed a shorter one, inspired by your solution: Cheers Torsten function Hex2Int tHex -- INPUT: hex value -- OUTPUT: integer put the length of tHex into tLength put -1 into tPower repeat with ...
by TorstenHolmer
Sun Sep 04, 2022 9:38 am
Forum: CGIs and the Server
Topic: How to get the headers of the requesting client?
Replies: 5
Views: 4800

Re: How to get the headers of the requesting client?

In order to complete the answer of my question by myself:

HTTP_ACCEPT_LANGUAGE
HTTP_ACCEPT_ENCODING
HTTP_USER_AGENT
HTTP_ACCEPT

are the header values I was looking for.

Thanks to all for the help!
Torsten
by TorstenHolmer
Sat Sep 03, 2022 8:27 pm
Forum: CGIs and the Server
Topic: How to get the headers of the requesting client?
Replies: 5
Views: 4800

Re: How to get the headers of the requesting client?

Hi Bob and Ralf, the solution is $_SERVER, BUT the dictionary is not complete, that's why I haven't found the solution. The server keys with HTPP_* were not mentionied in the dictionary! Here is the code that is somehow similar from Bob's code to show all $_SERVER[*] keys. Cheers, Torsten <?lc put "...
by TorstenHolmer
Fri Sep 02, 2022 9:11 am
Forum: CGIs and the Server
Topic: How to get the headers of the requesting client?
Replies: 5
Views: 4800

How to get the headers of the requesting client?

Hi,

in PHP there is a command getallheaders(), which allows to see the request headers of the client.
I couldn't find a similar command in LC server. Is there something similar or how could I get these client information?

Cheers,
Torsten
by TorstenHolmer
Thu Aug 04, 2022 9:05 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: create new marker on map widget
Replies: 12
Views: 12474

Re: create new marker on map widget

Thanks okk,

great idea, works perfect in IDE :-)

This save me a lot of time!

Cheers,
Torsten
by TorstenHolmer
Sun Feb 06, 2022 4:50 pm
Forum: Internet
Topic: Different access in Firefox and browser widget
Replies: 16
Views: 8300

Re: Different access in Firefox and browser widget

Hi Jaqueline,

the URL trick does not change the cache for the cookies. I have to re-install the IDEs in order to get rid of the cookie, I think.
by TorstenHolmer
Tue Feb 01, 2022 8:35 am
Forum: Internet
Topic: Different access in Firefox and browser widget
Replies: 16
Views: 8300

Re: Different access in Firefox and browser widget

I found the reason of the different views: The problem is the browser cache! Somehow something went wrong in the access of this page (maybe some cookie) and there is data stored in the cache which results in the restricted access behavior. When I create a standalone, it has its own new browser cache...
by TorstenHolmer
Sun Jan 30, 2022 8:12 pm
Forum: Internet
Topic: Different access in Firefox and browser widget
Replies: 16
Views: 8300

Re: Different access in Firefox and browser widget

Please scroll down at bit more in the stack-window in order to see the subscriber notice. The current screenshot of the stack shows the top of the page only which is identical in all views ;-) In Safari the page can be viewed wihtout a restriction. Is it possible that the widget uses a useragent str...
by TorstenHolmer
Sun Jan 30, 2022 12:04 pm
Forum: Internet
Topic: Different access in Firefox and browser widget
Replies: 16
Views: 8300

Re: Different access in Firefox and browser widget

Hi, thanks for testing but you have to get one clock further. The first dialog is just if you want to enter the free mode, so you have to click the left button. BUT then the view of the page is different. In the local browsers you get access to the whole page while in the app the page is blocke for ...
by TorstenHolmer
Sat Jan 29, 2022 3:03 pm
Forum: Internet
Topic: Different access in Firefox and browser widget
Replies: 16
Views: 8300

Re: Different access in Firefox and browser widget

Hi, in order to show the effect I created a simple stack which uses the browser widget and ha s a button opening the same url in the local browser: https://www.dropbox.com/s/28nvlcjqyp9a2jl/Mysterious%20Behaviour.livecode?dl=0 You should see that in the LC-App window the access to the page is restri...
by TorstenHolmer
Wed Jan 26, 2022 12:03 pm
Forum: Internet
Topic: Different access in Firefox and browser widget
Replies: 16
Views: 8300

Different access in Firefox and browser widget

Hi, my goal is to get the text of a url via the browser widget. When I access thes following url with Firefox or another browser I can see the whole page. https://www.zeit.de/green/2022-01/klimaschutz-klimawandel-oekonomie-kosten-bip/komplettansicht When I set the url of the browser widget to this u...

Go to advanced search