Dynamic webapp/website

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
danieg
Posts: 8
Joined: Thu Sep 19, 2019 7:53 am

Dynamic webapp/website

Post by danieg » Wed Oct 30, 2019 9:04 am

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Dynamic webapp/website

Post by FourthWorld » Wed Oct 30, 2019 9:50 am

What are you building in LiveCode?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Dynamic webapp/website

Post by bogs » 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.
Image

danieg
Posts: 8
Joined: Thu Sep 19, 2019 7:53 am

Re: Dynamic webapp/website

Post by danieg » 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.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Dynamic webapp/website

Post by [-hh] » Wed Oct 30, 2019 1:31 pm

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
shiftLock happens

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Dynamic webapp/website

Post by FourthWorld » Wed Oct 30, 2019 4:13 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Dynamic webapp/website

Post by bogs » Wed Oct 30, 2019 8:55 pm

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
ksnip_LivecodeHtmlSiteAndChatApp.png
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.
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Dynamic webapp/website

Post by [-hh] » Wed Oct 30, 2019 11:18 pm

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).
shiftLock happens

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Dynamic webapp/website

Post by bogs » Thu Oct 31, 2019 10:50 am

[-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 :wink:

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.
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Dynamic webapp/website

Post by [-hh] » Thu Oct 31, 2019 1:44 pm

I really don't know what you mean: JavaScript is part of HTML5...
shiftLock happens

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Dynamic webapp/website

Post by bogs » Thu Oct 31, 2019 9:03 pm

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.
Image

danieg
Posts: 8
Joined: Thu Sep 19, 2019 7:53 am

Re: Dynamic webapp/website

Post by danieg » Thu Oct 31, 2019 9:35 pm

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.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Dynamic webapp/website

Post by bogs » Thu Oct 31, 2019 10:05 pm

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' .
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Dynamic webapp/website

Post by [-hh] » Thu Oct 31, 2019 10:56 pm

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.
shiftLock happens

Post Reply