Collect data from htm file in server

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
gilar
Posts: 96
Joined: Sat Sep 26, 2015 12:59 pm

Collect data from htm file in server

Post by gilar » Sat Sep 26, 2015 3:52 pm

Hello ... I'm a newbie in LiveCode
I'm success create CasparCG Client software with LiveCode
connect connect it into CasparCG Server
This is my thread in CasparCG forum
htt***p://casparcg.co***m/forum/viewtopic.php?f=5&t=3390 please delete *** to view this link

Now Im Trying to Connect the Client into scoring software system.
I want to make automatic scoring system with casparcg and livecode.

This the schema:
htt***p://i967.photobucket.co***m/albums/ae157/ninesoul-clothing/ILUSTRASI._zpsv3ipsxd1.jpg please delete *** to view this image

This what i have done
Part 01 Manual Scoring
-Create CasparCg Client with livecode ===> [Success]
-Create computer server with xampp, this is the same computer with CasparCG server. ===> [Success]

Part 02 Automatic Scoring
-Send htm file from Fixit Scoring software to Server. ===> [Success]
-Collect htm data from server into livecode client ===> [failed]

I read about load file URL here on "Office of Digital Humanities"
htt***p://revolution.byu.edu/internet/RevInternet.php please delete *** to view this link

Then I try create script like this

Code: Select all

get URL "file:///c:/xampp/htdocs.test01.htm"
set the htmlText of fld "myField" to it

I can't load data on htm file into livecode

What I want is ..... LOAD AND LOOP data from "htm file" in server. Than display it into Broadcast system with Livecode and CasparCg.

any comment and help would be appreciate




Gilar Kadarsah
Indonesia
Gilar | from INDONESIA

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Collect data from htm file in server

Post by SparkOut » Sat Sep 26, 2015 4:37 pm

Without knowing more about your setup, it's difficult to say for sure, but if you are using xampp, I think you are going to want to get the url of the page being served by the xampp web server. What you have at the moment looks like the static source code file will be loaded. (And probably htdocs.test01.htm isn't the right name either?)

try something like

Code: Select all

get url ("http://127.0.0.1/test01.htm") -- use the IP address of your xampp server if it is not the localhost
set the htmlText of fld "myField" to it
Use a proper web browser on your computer to check the right page is reachable on the xampp server, and adjust the http:// path as necessary.

gilar
Posts: 96
Joined: Sat Sep 26, 2015 12:59 pm

Re: Collect data from htm file in server

Post by gilar » Sun Sep 27, 2015 1:28 am

Thank You for Replay
SparkOut wrote:Without knowing more about your setup, it's difficult to say for sure, but if you are using xampp, I think you are going to want to get the url of the page being served by the xampp web server.
Could you please see my illustration set up here .... ==>

Code: Select all

htt***p://i967.photobucket.co***m/albums/ae157/ninesoul-clothing/ILUSTRASI._zpsv3ipsxd1.jpg 
This what i'm trying to do .... ===>

Code: Select all

htt***p://i967.photobucket.co***m/albums/ae157/ninesoul-clothing/ILUSTRASI%2002_zps6ibjyli8.jpg 
(please delete *** to view this image)
SparkOut wrote: What you have at the moment looks like the static source code file will be loaded. (And probably htdocs.test01.htm isn't the right name either?)
Yes .... htdocs.test.01.htm isn't the right name
the right name is .... file:///C:/xampp/htdocs/sample_BOXSCORE.HTM
SparkOut wrote: try something like

Code: Select all

get url ("htt***p://127.0.0.1/test01.htm") -- use the IP address of your xampp server if it is not the localhost
set the htmlText of fld "myField" to it
Use a proper web browser on your computer to check the right page is reachable on the xampp server, and adjust the htt***p:// path as necessary.
I'm trying this but it's not work out, maybe i miss something


This is all my file I hope you could download and test it .... http***s://tinyurl.co***m/gilarsharing (PLEASE DELETE *** TO VIEW THIS LINK)
livecode file ==> AUTOMATIC SCORING SYSTEM.livecode
htm file ==> sample_BOXSCORE.HTM
Gilar | from INDONESIA

Post Reply