Using LC server to check for existence of mp3 on our web server?

2017-01-21 Thread Tim Selander via use-livecode
Hi, On-rev.com hosting, using LC server to present a list of our AM/FM radio programs for people to listening to on-demand. Out of a month's 20 programs, 3 or 4 might not get uploaded due to copyright issues, etc. Also, mp3's are not on the on-rev.com server, but another hosting service we

Re: Using LC server to check for existence of mp3 on our web server?

2017-01-22 Thread Tim Selander via use-livecode
d it tells you if the file is in the programs folder or not. So the url would look something like this: http://my.programserver.com/check.lc?1234.mp3 The text of the 'check.lc' file: This is most likely not exactly what you need, but maybe it'll give you a starting point. Than

Cancelling a script??

2017-02-10 Thread Tim Selander via use-livecode
The documentation says Cmd + . should stop a running script. I haveset the allowinterrupts to true in my openstack script. But if I get into a long repeat loop, cmd + . does not stop anything. Community v8.1, OSX 10.9. Any advice appreciated. Tim Selander Tokyo, Japan

Re: Cancelling a script??

2017-02-10 Thread Tim Selander via use-livecode
00 AM, Tim Selander via use-livecode < use-livecode@lists.runrev.com> wrote: The documentation says Cmd + . should stop a running script. I haveset the allowinterrupts to true in my openstack script. But if I get into a long repeat loop, cmd + . does not stop anything. Community v8.1

Re: Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
Yes, that had occurred to me, but my explanation was too simplistic. While it is a Scrabble-esque game with tiles, the tiles are hexagons and are staggered on the board. (pic-- http://tinyurl.com/jjcqolm) That still might be calculate-able, but is beyond my math skills! Thanks, Tim On

Re: Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
ist of the objects you wish to check against (or array, or whatever) on mousemove if the mouse is down then repeat for each line tLine in objectList if within(tLine,the mouseloc) then put tLine into tResult exit repeat end repeat end if if tResult end mousemove On Sat, Mar 11, 2017 at 1:02 AM,

Messages sent while mouse is down?

2017-03-11 Thread Tim Selander via use-livecode
I miss the Zynga "Pathwords" game on Facebook, so for my own amusement I'm trying to recreate it in Livecode. For those who don't know the game, it had a solid screenful of Scrabble-like lettered tiles. Click and drag the mouse through adjacent letters to make words. Without clicking,

Sending an FTP command from one web server to another?

2017-07-18 Thread Tim Selander via use-livecode
Hi, My company gave up on hosting our email and website at on-rev.com back when they were having lots of reliability problems. We're using a host in Japan; no LC server installed, nor is it installable. I still have our Founder's account on on-rev.com, and use quite a few .lc scripts,

Re: Sending an FTP command from one web server to another?

2017-07-18 Thread Tim Selander via use-livecode
th ftp outgoing connections. Matthias Matthias Rebbe +49 5741 31 ‌matthiasrebbe.eu <http://matthiasrebbe.eu/>‌ Am 18.07.2017 um 10:38 schrieb Tim Selander via use-livecode <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>: Hi, My company gave

Re: Sending an FTP command from one web server to another?

2017-07-18 Thread Tim Selander via use-livecode
of lc server. Regards, Matthias Matthias Rebbe +49 5741 31 ‌matthiasrebbe.eu <http://matthiasrebbe.eu/>‌ Am 18.07.2017 um 12:50 schrieb Tim Selander via use-livecode <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>: Hi Matthias, Good idea. I

Re: Sending an FTP command from one web server to another?

2017-07-18 Thread Tim Selander via use-livecode
u/>‌ Am 18.07.2017 um 10:38 schrieb Tim Selander via use-livecode <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>: Hi, My company gave up on hosting our email and website at on-rev.com <http://on-rev.com/> back when they were having lots of reliability

Re: Goofy question #7234

2017-07-10 Thread Tim Selander via use-livecode
Hi Richmond This works (both scripts in the button): on mouseUp put goRed() end mouseUp function goRed set the backGroundColor of card 1 to red end goRed I think the general idea is that a function returns information. So date() returns the date. But just having a line "date()" in the script

Re: Sending an FTP command from one web server to another?

2017-07-19 Thread Tim Selander via use-livecode
Richard, Have never written a CGI in my life but you got me thinking; a quick Google found me a php script to "print" a folder listing. So now my .lc script on my on-rev serve puts the url of the .php page on the server with the mp3s into a variable -- which gives me the list of file names

Re: IP to decimal function?

2017-05-14 Thread Tim Selander via use-livecode
, 17:02, Richmond Mathewson via use-livecode wrote: I almost never know anything, but I do know where to look to find out: https://www.mkyong.com/java/java-convert-ip-address-to-decimal-number/ Hope that spoils your Sunday :) Richmond. On 5/14/17 8:25 am, Tim Selander via use-livecode wrote: Hi

IP to decimal function?

2017-05-13 Thread Tim Selander via use-livecode
Hi I need to convert IP address from web logs to decimal for easier processing... Before I try to "reinvent the wheel" (and no doubt roll off a cliff) I'm wondering if anyone already has such a function they'd be willing to share? TIA Tim Selander Tokyo, Japan

Re: IP to decimal function?

2017-05-15 Thread Tim Selander via use-livecode
It should be in the master library. Bob S On May 13, 2017, at 22:25 , Tim Selander via use-livecode <use-livecode@lists.runrev.com> wrote: Hi I need to convert IP address from web logs to decimal for easier processing... Before I try to "reinvent the wheel" (and no doubt roll off a cliff

Getting directory list from web server??

2017-11-06 Thread Tim Selander via use-livecode
Hi, Up until now, in my livecode server script, put URL "http://www.myserver.com/radio/15/; after vlist has gotten me text list of the directory contents. Now it gets me a "You don't have permission to access." error message. on-rev hosting, "sage" is the server. Anyone know what is

UTF8 on LC server

2018-05-31 Thread Tim Selander via use-livecode
Hi, In LC, if I have a field or variable in Japanese (double-byte) and get, say, the 5th character, it returns the correct double-byte character. But on LC server (on-rev hosting) "character" commands get single bytes, breaking the Japanese character turning it into gibberish. Is there any

Re: UTF8 on LC server

2018-05-31 Thread Tim Selander via use-livecode
kanji got split in half. Identical results to "put char 500 to 550." Tim Selander On 2018/06/01 8:39, kee nethery via use-livecode wrote: On May 31, 2018, at 4:33 PM, Tim Selander via use-livecode wrote: Thanks, Warren. Yes, I've got that header set up, and UTF8 is working fi

Re: UTF8 on LC server

2018-05-31 Thread Tim Selander via use-livecode
for than info is, and Googling failed me this time... Tim Selander On 2018/06/01 8:55, kee nethery via use-livecode wrote: I’m assuming you are using “unicode” (aka UTF-16) and not UTF8 to do all your transforming of the data? Kee On May 31, 2018, at 4:46 PM, Tim Selander via use-livecode

Re: UTF8 on LC server

2018-05-31 Thread Tim Selander via use-livecode
rren Samples via use-livecode wrote: On 05/31/2018 06:43 AM, Tim Selander via use-livecode wrote: Is there any way to get LC Server to handle double-byte characters the same way LC desktop does? Tim Selander Tokyo, Japan LC Server serves pages with a default "Content-Type" header o

Re: UTF8 on LC server

2018-06-01 Thread Tim Selander via use-livecode
Hi Mark, Here is the script. The files I'm using are bamboobabies.com/getjapanesetext.lc, and the text it is getting is bamboobabies.com/news.txt. In the script, there are two lines reading the text file that I've taken turns commenting out If you can give me any hints, it would be

Re: UTF8 on LC server

2018-06-01 Thread Tim Selander via use-livecode
Mark, Success! Greatly appreciate your walking me through this. Have a great weekend. Tim Selander Tokyo, Japan On Fri, Jun 1, 2018 at 7:15 AM, Mark Waddingham via use-livecode < use-livecode@lists.runrev.com> wrote: On 2018-06-01 12:53, Tim Selander via use-livecode wrote: H

Getting current line number of a table field.

2018-02-14 Thread Tim Selander via use-livecode
Hi, Editing a table field (not datagrid) and need to track the number of the line that is being edited. If I click into a new line, "selectionchanged" will let me figure out what line I'm editing. But if I hit return or tab to go to a new line, how can I track what line the cursor is in?

Re: Getting current line number of a table field.

2018-02-14 Thread Tim Selander via use-livecode
Hi Mike, Thanks! I put the script in the table field itself with no luck. But when I moved it to the card script, it works! Great! I never would have come up with that in a million years. This list is fantastic. Oh, and I just re-named the table field to "Opera" ;-) Tim Selander Tokyo,

Re: another mac to Windows gotcha

2018-02-24 Thread Tim Selander via use-livecode
er Tokyo, Japan On 2018.02.24 23:44, Paul Dupuis via use-livecode wrote: controlKeyDown is absolutely available on Windows. See the dictionary entry in LC8.1.9 for example. What version of LiveCode are you using? On 2/24/2018 9:04 AM, Tim Selander via use-livecode wrote: Hi, Trying my first litt

Re: another mac to Windows gotcha

2018-02-24 Thread Tim Selander via use-livecode
ff via use-livecode wrote: Tim, Try both commands in order: set playRate, then start. Peter Bogdanoff On Feb 24, 2018, at 10:16 AM, Tim Selander via use-livecode <use-livecode@lists.runrev.com> wrote: Hi Paul, Using 9.0 dp11 community. After sending the post, I found in the dictionary

another mac to Windows gotcha

2018-02-24 Thread Tim Selander via use-livecode
Hi, Trying my first little LC app on Windows. I wrote an app on osx and am now trying to get it to work in a Win7 machine. On the mac app, I use ctrl-J, ctrl-K, and ctrl-L to control the video player. JKL is pretty standard video player control in video editing software. On the mac app,

playing a video in Win7?

2018-02-24 Thread Tim Selander via use-livecode
Hi, Trying to simply play an h264 video on LC 9 in a player on a Win7 machine. Quicktime installed. I have .mov, .mp4, .mv4 videos that all play fine on Mac osx /and/ in QT on the Win7 machine. But I can only get .wmv to play in the LC player object on Win7. Have to create a little in-house

Using the $_POST global in LiveCode server

2018-08-02 Thread Tim Selander via use-livecode
Hi, Is it possible to change, or even delete, the $_POST[] array in LiveCode server? I want to clear it after my script has pulled out the info it needs. Or, maybe there's another way to skin the cat. I have a search page that returns a list of our online TV programs. But even if the page is

Re: Using the $_POST global in LiveCode server

2018-08-02 Thread Tim Selander via use-livecode
Thanks, Mike. This seemed like a good hint/possible solution. Another though has just occurred to me also.. If you use session variables, you can store the search term in the session, and since the browser will re-post on reload, if $_POST and your session variable contain the same search

$_POST[] variable?

2018-08-02 Thread Tim Selander via use-livecode
Hi, Is it possible to manipulate the contents of the $_Post[] global directly on Livecode serve? When I reload a page, the values in the array still have the values in them from the previous time the "Submit" button was used... efforts to delete or put empty into, do not seem to work.

Re: Writing a UTF8 text file to server.

2018-10-04 Thread Tim Selander via use-livecode
o Tim, Did you look at the textEncode function? — Scott Morrow On Oct 3, 2018, at 10:22 PM, Tim Selander via use-livecode wrote: I am using Livecode Server on Livecode's hosting plan. Taking my first stab at a web response form. I am getting the data from $_POST fine, and when I simply d

Writing a UTF8 text file to server.

2018-10-03 Thread Tim Selander via use-livecode
I am using Livecode Server on Livecode's hosting plan. Taking my first stab at a web response form. I am getting the data from $_POST fine, and when I simply do something like: put $_POST[firstname] the UTF8/Kanji word shows up fine in the webpage. But I am unable to save the data to a file

Re: Writing a UTF8 text file to server -- solved

2018-10-04 Thread Tim Selander via use-livecode
properly saved the data as utf8/kanji to the file on the server. All's well that ends well. Tim Selander Tokyo, Japan On 2018.10.04 15:48, Tim Selander via use-livecode wrote: Hi Scott, Added info; I have at the top of the web page source. Then, I only found outputTextEncoding

Re: multi line Livecode field uploaded to MySQL

2019-02-16 Thread Tim Selander via use-livecode
:17, Tim Selander via use-livecode a écrit : Thank you for your reply, but I haven't gotten it working yet. The code in my first post was from my working stack. Here is what I have from my non-working stack after re-writing to follow your instructions: # Construct SQL put "I

multi line Livecode field uploaded to MySQL

2019-02-15 Thread Tim Selander via use-livecode
I have a routine to take data from fields on a card and upload to a mysql database. Has worked well for years, got the original script off the Livecode learning site. --- # Construct SQL put "INSERT INTO

Re: multi line Livecode field uploaded to MySQL

2019-02-16 Thread Tim Selander via use-livecode
line n/a (External handler execution error: revdberr,syntax error) near "revdberr,syntax error"} I appreciate your taking the time to educate me. Tim Selander On 2019.02.16 16:12, Ludovic THEBAULT via use-livecode wrote: Le 16 févr. 2019 à 07:59, Tim Selander via use-livecode

Images and Players in "background" groups

2019-02-02 Thread Tim Selander via use-livecode
For the first time ever, probably, I have a little project that needs the HC "stack of cards" structure. Have a few buttons and fields in a group, acting a a background and it all works as expected. However, I also have an image and a play in the group/background. Oddly, when I set one

Re: Images and Players in "background" groups

2019-02-03 Thread Tim Selander via use-livecode
where tURL is a path to a local or remote file. Player controls would use similar methods as above. Peter Bogdanoff On Feb 2, 2019, at 10:55 PM, Tim Selander via use-livecode wrote: For the first time ever, probably, I have a little project that needs the HC "stack of cards" s

background images

2021-01-18 Thread Tim Selander via use-livecode
This is driving me nuts. Have a 'background' group with an image. If I change the filename of an image on one card, ALL the cards change to that image. Yet a field in the same group properly will take unique values for each card. I know I've done this before... what setting am I missing??

Re: background images

2021-01-18 Thread Tim Selander via use-livecode
on stored data about that image/card combination. Peter Bogdanoff On Jan 18, 2021, at 4:44 PM, Tim Selander via use-livecode wrote: Right, which is why this is so confusing. I do not want a 'shared text' image. Each card should keep it's own unique image, but when I change the image on one

Re: background images

2021-01-18 Thread Tim Selander via use-livecode
-livecode wrote: Hi Tim, Am 18.01.2021 um 19:12 schrieb Tim Selander via use-livecode : This is driving me nuts. Have a 'background' group with an image. If I change the filename of an image on one card, ALL the cards change to that image. Yet a field in the same group properly will take unique

Writing file to server with Livecode Server

2021-07-09 Thread Tim Selander via use-livecode
Hi, Several years back, I had a POST web form for our company where I saved responses to a .csv file on the same server and same folder as the .lc file. (All hosted on on-rev.com) That page is long gone, but I now need to do the same thing. But when I try to write the data to the csv file,

Re: Writing file to server with Livecode Server

2021-07-09 Thread Tim Selander via use-livecode
kyo, Japan On 2021.07.09 15:31, Tim Selander via use-livecode wrote: Hi, Several years back, I had a POST web form for our company where I saved responses to a .csv file on the same server and same folder as the .lc file. (All hosted on on-rev.com) That page is long gone, but I now need to do the

Getting user's IP address in LC Server

2021-05-03 Thread Tim Selander via use-livecode
Hi, I am trying to make a web page that changes content a bit based on the user's location. I am using my on-rev hosting account and am trying two different service's APIs: 1) put "My country is" && url "https://api.ipdata.co/country_name?api-key=my/key; 2) put "curl

Re: Getting user's IP address in LC Server

2021-05-04 Thread Tim Selander via use-livecode
interface related variables, along with any HTTP_* variables that are available. $_SERVER["REMOTE_ADDR] contains the remote ip address. Matthias - Matthias Rebbe Life Is Too Short For Boring Code Am 04.05.2021 um 06:30 schrieb Tim Selander via use-livecode : Hi, I am trying to make

Re: Whatever happened to on-rev?

2021-08-19 Thread Tim Selander via use-livecode
A few weeks back (months?) they upgraded the servers. I have two accounts, personal and work. Before they were on different servers, but after the upgrade, both are on quartz.on-rev.com, and I can get at them through c-panel. Same user name and password. Recommend contacting support --

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

What is the best way to trigger an action at a certain time?

2022-07-11 Thread Tim Selander via use-livecode
Dear all, I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was

Re: What is the best way to trigger an action at a certain time?

2022-07-11 Thread Tim Selander via use-livecode
of checking time, performing the required action etc. send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you end checkTime Best regards Tore Nilsen 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : Dear all, I want to have an LC app running

Re: What is the best way to trigger an action at a certain time?

2022-07-13 Thread Tim Selander via use-livecode
Gentlemen, The trigger will be 'pulled' once or twice a day only -- so these external to LC options are also viable. Hadn't entered my head at all! Will be playing around with all these ideas and learn something! Basically use Macs, but have couple unused Windows laptops -- sounds like

Re: Auto populate an HTML form with LC server

2022-08-07 Thread Tim Selander via use-livecode
-fan.com/ajaxzip3 and http://www.webdesign-fan-guide.com/ajaxzip3/ I believe you can use these on the LC server. Best, -- Kenji Kojima / 小島健治 http://www.kenjikojima.com/ On Aug 7, 2022, at 3:29 AM, Tim Selander via use-livecode <mailto:use-livecode@lists.runrev.com>> wrote: Many

More Server Silliness

2022-08-15 Thread Tim Selander via use-livecode
With Alex and everyone's help, I got the global vs cookies, etc., sorted out and am happily paginating away with my little membership web site. With Kenji's help, I got automatic address fill-in from Japanese zip codes. However, I was looking at LiveCode's server samples

Re: More Server Silliness -- Nevermind

2022-08-15 Thread Tim Selander via use-livecode
Using Firefox developer tools, found out jquery was not loading property. Hangs head in shame at rookie mistake... Still not working properly, but continue to poke at it. Tim Selander On 2022.08.15 21:58, Tim Selander via use-livecode wrote: With Alex and everyone's help, I got the global vs

Re: Server globals

2022-08-12 Thread Tim Selander via use-livecode
, Matthias Am 12.08.2022 um 13:27 schrieb Tim Selander via use-livecode : As always, appreciate everyone's help. Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even

Server globals

2022-08-12 Thread Tim Selander via use-livecode
As always, appreciate everyone's help. Have made several little projects using LC Server on the on-rev.com host. For the first time, I would like a global variable -- that is a variable that would retain it's value even if the page is re-loaded. Or if a user goes to another .lc page/file in

Re: Server globals

2022-08-12 Thread Tim Selander via use-livecode
is a better solution. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Tim Selander via use-livecode Sent: Friday, August 12, 2022 9:18 AM To: use-livecode

Re: Server globals

2022-08-13 Thread Tim Selander via use-livecode
ie, create a filename using something like uuid(), and store the file name in it - then retrieve the cookie, and read or write the file. Alex. On 12/08/2022 14:18, Tim Selander via use-livecode wrote: Hi Matthias, It is user specific, but I just tried the saving to a text file on the server -- very

Auto populate an HTML form with LC server

2022-08-07 Thread Tim Selander via use-livecode
Many web forms in Japan automatically fill in prefecture, town, ward and block when you just put in the zip code. I would like to do that on my web site, and know the api I would use. I assume these sites are using javascript, but can LC server pick up user input before the submit button is

LC Server and forcing page refreshes

2023-05-29 Thread Tim Selander via use-livecode
Once again find myself over my head in just a simple programming project. I made a little club members directory website, using LC server on on-rev's hosting site. Members can edit their info. I use a form, with the action going to an LC script. This script gets all the post data, shuffles

Re: LC Server and forcing page refreshes

2023-06-02 Thread Tim Selander via use-livecode
to the member’s URL like: ?foo=1685433742125 Ralf On 30.05.2023 02:32, Tim Selander via use-livecode wrote: Once again find myself over my head in just a simple programming project. I made a little club members directory website, using LC server on on-rev's hosting site. Members can edit

Re: LC Server and forcing page refreshes

2023-06-04 Thread Tim Selander via use-livecode
Hi, Yes, Matthias suggested similar, and it works too. But it slowed down the pages a bit, and I'm on the old, slow on-rev server! Tim On 2023.06.02 21:57, Georges Malamoud via use-livecode wrote: You can also add parameters into your .htaccess file on your server (if you have access)

Re: google translator access via livecode

2023-06-05 Thread Tim Selander via use-livecode
I use google translate API with an LC Server web application. It would probably work exactly the same with LC desktop. The call looks like this: put "https://www.googleapis.com/language/translate/v2?key=(your google API account key)=cat=en=ja" into tURL put URL tURL into vholder The word to

Uploading progress bar

2023-08-07 Thread Tim Selander via use-livecode
We are airing a kid's anime program on TV this fall, and are encouraging parents to video their kids singing the theme song -- which we'll air at the end of the program. Using LC Server, I made a simple page for the parents to use to upload the videos. It's working fine, but I would like to

Tutorial for Livecode Server log in system

2024-03-25 Thread Tim Selander via use-livecode
Hi all. As a hobbiest/amateur I continue to plunk away with Livecode, mostly the server product in my on-rev account. Can anyone point me to a tutorial or sample of an online log in system (username, email and password) for a website using Livecode? I've found some php tutorials, and

Re: Tutorial for Livecode Server log in system

2024-03-27 Thread Tim Selander via use-livecode
Dear Alex and Pere Thank you both for your code and and the time you took to help! I'm am working through the code you sent, studying out how it works. Great learning experience. Also, Alex, your point of not using password log ins is a philosophical re-frame in my thinking! Thank you!