Hi Kaveh,
since html5 does not support the clipboard or copy/paste, here a workaround for this problem:
https://forums.livecode.com/viewtopic.p ... 15#p227904
No idea if html5 can import/export text files...
Best
Klaus
Search found 13509 matches
- Wed Feb 28, 2024 2:03 pm
- Forum: HTML5
- Topic: New to HTML
- Replies: 4
- Views: 532
- Wed Feb 28, 2024 1:56 pm
- Forum: Talking LiveCode
- Topic: text conversion?
- Replies: 30
- Views: 1246
Re: text conversion?
From the webpage I import/read the file as an array (through PHP). Most of the material is numbers. But I had to do something with the title-part of the array. Here I did $titel[] = utf8_encode($linjeArray[12]); I must admit that I don't understand it Maybe that is a little part of the problem? ......
- Tue Feb 27, 2024 2:13 pm
- Forum: Talking LiveCode
- Topic: text conversion?
- Replies: 30
- Views: 1246
Re: text conversion?
I'd NEVER take an Ü for an Ü!
- Tue Feb 27, 2024 1:53 pm
- Forum: Talking LiveCode
- Topic: text conversion?
- Replies: 30
- Views: 1246
Re: text conversion?
Yes, Klaus simply put into a text-file... OK, I guessed, try this script, it will NOT doe the replace thing but encodes your exported text to UTF8 and chances are good that PHP will recognize the format as UTF8 and act accordingly. However I have no idea of PHP, maybe something sels has to be set i...
- Tue Feb 27, 2024 12:33 pm
- Forum: Talking LiveCode
- Topic: text conversion?
- Replies: 30
- Views: 1246
Re: text conversion?
Hi Joe, ... At first I just exported the text of card flds into a txt-file. When I open that on my Mac it's looks all fine. But when I import the text (via PHP) certain chars are replaced... How did you export the text from LC to TXT file on your Mac? Just a: put the text of fld "dansk" into url("fi...
- Tue Feb 27, 2024 10:25 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
Glad it works for you and sorry, I forgot a & in my script.
Yes, base64encode is the way to "translate" binary data to a string that can e.g. be sent via email.
Yes, base64encode is the way to "translate" binary data to a string that can e.g. be sent via email.
- Mon Feb 26, 2024 6:08 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
Using my example, e.g. store the images on the desktop ... put the keys of tAt into tFilenames repeat with i = 1 to the num of lines of tFilenames ## tFileName now contains the name of the first KEY of tAt put line i of tFilenames into tFileName ## Save the images on the desktop: put base64decode(tA...
- Mon Feb 26, 2024 11:26 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
tAt is NOT empty, it contains another ARRAY!
You cannot set the htmltext of the browser object to an array.
But you can access its keys, which are the filename of the attached files.
You cannot set the htmltext of the browser object to an array.
But you can access its keys, which are the filename of the attached files.
- Sun Feb 25, 2024 7:20 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
Hi Marc, I saved an email with a MP3 file attached. See in the script, attachments are also returned in an array with ... put emlToArray(tData) into tArray put getAttachments(tArray) into tAt ... The keys are abviously* the filename of the attached file and the content of that key its base 64 encode...
- Sat Feb 24, 2024 6:46 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
Avec plaisir, mon ami!
Feel free to ask if you get stuck.
Feel free to ask if you get stuck.
- Sat Feb 24, 2024 5:25 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
Well, that's all in my last postings, but here a summary: on mouseUp ## Let user select a EML file: answer file "EML" ## User clicked CANCEL so get out of this handler: if the result = "cancel" then exit to top end if ## Put it into a variable: put url("file:" & it) into tData ## Let LC make the dat...
- Fri Feb 23, 2024 5:30 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
What however worked with the above mentioned email is this:
Returned the complete body text in tText!
Code: Select all
...
put getMailText(tEMLArray) into tText
...
- Fri Feb 23, 2024 4:38 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
See my screenshot:
tEMLArray["parts"][2]["content"] -> the plain text body
tEMLArray["parts"][3]["content"] -> the htmltext body
???
Not sure if this is a bug or a feature...
tEMLArray["parts"][2]["content"] -> the plain text body
tEMLArray["parts"][3]["content"] -> the htmltext body
???
Not sure if this is a bug or a feature...
- Fri Feb 23, 2024 4:33 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecode Enhancements pack - error after update
- Replies: 28
- Views: 2676
Re: Livecode Enhancements pack - error after update
Hm, works here, but may highly depend on the mail itslef.
I just tried with some html emails and in the end some of the tEMLArray did not even contain the key -> content !?
I just tried with some html emails and in the end some of the tEMLArray did not even contain the key -> content !?
- Thu Feb 22, 2024 4:19 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Unusual Refresh Problems with Mac standalone
- Replies: 11
- Views: 943