Page 1 of 1
Dynamic webapp/website
Posted: Wed Oct 30, 2019 9:04 am
by danieg
When building a website an/or webapp in livecode, can I do a dynamic update like whats possible with jquery?
.
Purpose is for a chatbot implementation I have in mind.
Re: Dynamic webapp/website
Posted: Wed Oct 30, 2019 9:50 am
by FourthWorld
What are you building in LiveCode?
Re: Dynamic webapp/website
Posted: Wed Oct 30, 2019 10:03 am
by bogs
Um, his question appears to be how to implement a chatbot in a dynamic website, or web app, with *all* of it being built in Lc.
Re: Dynamic webapp/website
Posted: Wed Oct 30, 2019 10:23 am
by danieg
bogs wrote: ↑Wed Oct 30, 2019 10:03 am
Um, his question appears to be how to implement a chatbot in a dynamic website, or web app, with *all* of it being built in Lc.
Yes. Everything in Livecode. Chatbot on normal website with dynamic response and content fed to it. Maybe venture to Wordpress later on and perhaps use JSON API.
Re: Dynamic webapp/website
Posted: Wed Oct 30, 2019 1:31 pm
by [-hh]
If you mean how to communicate from HTML5 standalones with the web browser by javascript then have a short intro here:
viewtopic.php?p=181331#p181331
Re: Dynamic webapp/website
Posted: Wed Oct 30, 2019 4:13 pm
by FourthWorld
danieg wrote: ↑Wed Oct 30, 2019 10:23 am
bogs wrote: ↑Wed Oct 30, 2019 10:03 am
Um, his question appears to be how to implement a chatbot in a dynamic website, or web app, with *all* of it being built in Lc.
Yes. Everything in Livecode. Chatbot on normal website with dynamic response and content fed to it. Maybe venture to Wordpress later on and perhaps use JSON API.
I would not have been able to infer that "all" would be LiveCode, since HTML is not LiveCode and neither is the browser to view it in.
So you're referring to the server side only, with delivery to a web browser rather than a LiveCode standalone, is that correct?
I ask because when I'm using LC Server with LC standalones I sometimes handle things differently than when either client or server is made with something else.
Re: Dynamic webapp/website
Posted: Wed Oct 30, 2019 8:55 pm
by bogs
FourthWorld wrote: ↑Wed Oct 30, 2019 4:13 pm
I would not have been able to infer that "all" would be LiveCode, since HTML is not LiveCode and neither is the browser to view it in.
Well, I can't be sure, but I think they are asking about doing it using the html 5 to save the Livecode app in

- All of me...
FourthWorld wrote: ↑Wed Oct 30, 2019 4:13 pm
So you're referring to the server side only, with delivery to a web browser rather than a LiveCode standalone, is that correct?
It could certainly also be that, we'll have to wait till Danieg re-responds to clarify.
Just in case it is the html5 choice, I'd have to guess it isn't possible in it's current state.
Re: Dynamic webapp/website
Posted: Wed Oct 30, 2019 11:18 pm
by [-hh]
bogs wrote:Just in case it is the html5 choice, I'd have to guess it isn't possible in it's current state.
Using callbacks by javascriptHandlers it is certainly possible if the OP is medium advanced in both LC Script and javaScript...
For example
http://hyperhh.de/html5/FrameTalkHTML5.html is a website that loads four HTML5 standalones from two different servers and these standalones can send messages to each other (all client side).
Re: Dynamic webapp/website
Posted: Thu Oct 31, 2019 10:50 am
by bogs
[-hh] wrote: ↑Wed Oct 30, 2019 11:18 pm
Using callbacks by javascriptHandlers it is certainly possible if the OP is medium advanced in both LC Script and javaScript...
Yes it would be possible under those conditions, but they did say
danieg wrote: ↑Wed Oct 30, 2019 10:23 am
Yes. Everything in Livecode.
In it's current state, I really do not think it would be possible as a solely Lc solution using html5.Of course, I could be wrong, it isn't like that would be the first time eh, and none of it is anything I tend to mess around with in any event
However, like I said, that may not be the target either, Richard has brought up an alternate possibility and the OP has not chimed back in.
Re: Dynamic webapp/website
Posted: Thu Oct 31, 2019 1:44 pm
by [-hh]
I really don't know what you mean: JavaScript is part of HTML5...
Re: Dynamic webapp/website
Posted: Thu Oct 31, 2019 9:03 pm
by bogs
I am sorry, when I referred to 'html5' , I was talking about the 'html5 builder' in the Lc standalone settings panel, i.e. turning out an html5 standalone.
The picture I posted 3 posts earlier was what I was referring to, not html5 the web-standard, which is not part of LC.
Re: Dynamic webapp/website
Posted: Thu Oct 31, 2019 9:35 pm
by danieg
Sorry for not responding sooner. Thanks guys. I was thinking about a html standalone. But my project calls for a LC chatbot on any webpage. Using sockets would be a better solution I think. The chat engine was written in C++. They had an example of a chatbot on a webpage using "php".and sockets. Can I use LC in place of the php? The webpage uses inline php code.
Re: Dynamic webapp/website
Posted: Thu Oct 31, 2019 10:05 pm
by bogs
danieg wrote: ↑Thu Oct 31, 2019 9:35 pm
Using sockets would be a better solution I think.
I'd say your probably right there.
danieg wrote: ↑Thu Oct 31, 2019 9:35 pm
Can I use LC in place of the php? The webpage uses inline php code.
Richard or Hermann would have a far better understanding of this than I, but I believe the answer is 'yes' .
Re: Dynamic webapp/website
Posted: Thu Oct 31, 2019 10:56 pm
by [-hh]
Yes such things are doable if you know both LC Script and php good enough -- but it will be slower.
Sadly nobody here will do that for you.
You could try yourself and ask with *concrete* scripting problems in an advanced forum, you are now in the 'complete beginners' forum.