Stuck on Hello World and revchat

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
Ann
Posts: 3
Joined: Thu Jan 08, 2015 4:59 pm

Stuck on Hello World and revchat

Post by Ann » Tue Feb 03, 2015 5:08 pm

I am stuck way back at the beginning. I have made the Week 1 Hello World app and want to send my message to lc1582.on-rev[dot]com/revchat/. I believe I have followed all the directions, but It looks like it has run, but it never shows up there.
Thanks,
Ann

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Stuck on Hello World and revchat

Post by Klaus » Tue Feb 03, 2015 5:16 pm

Hi Ann,

1. welcome to the forum! :D

2. Looks like you are talking about some RunRev lessons -> "Week 1 Hello World app"?

Since not all forum members know what that is exactly or what has been taught in this lesson, could you please provide some more infos?
What does the lesson do and what did you script so far, what should happen and what does obviously not happen etc...


Best

Klaus

Ann
Posts: 3
Joined: Thu Jan 08, 2015 4:59 pm

Re: Stuck on Hello World and revchat

Post by Ann » Tue Feb 03, 2015 5:32 pm

Thank you Klaus. I do feel like I am in a fog. I am creating a message app that I am trying to post to an online chat. My send button has the following code:
on mouseup
set the text of field "messagelabel" to the text of field "newmessage"
--***Chat the message on the cloud****
--1. Format the message for the Internet
put "Ann" into YourName
get libURLFormData("name", YourName, "message", the test of field "newmessage")
--2. Send the mesage to the cloud message eapp
post it to URL "http:[slash slash] lc1582.on-rev[dot]com/revchat/setchat"
--3. Let the user know to check the cloud message app
answer "Check the cloud for your messages."
end mouseup
In the above scenario {slash slash} is replaced with two forward slashes and [dot] is replaced with an actual dot - I can't post links here. Everything here seems to work, but when I check the web (at http:[slash lash] lc1582.on-rev[dot]com/revchat/) my message never shows up. I've gone over this many times and can't figure out why it will not post.
Thanks,
Ann

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Stuck on Hello World and revchat

Post by Klaus » Tue Feb 03, 2015 5:43 pm

Hi Ann,

AHA! :D

OK, I logged in with my brwoser, created a user name, tried to post something with LC
and had success with this short script:

Code: Select all

on mouseup
    put "willi wonka" into YourName
   get libURLFormData("name", YourName, "message", "a LC test 666")
   post it to URL "http://lc1582.on-rev.com/revchat/setchat"
   answer IT
  ## I got: success
end mouseup
The I went to the webpage and there was my post!?

I noticed a little type in your script:
...
## get libURLFormData("name", YourName, "message", the test of field "newmessage")
get libURLFormData("name", YourName, "message", the TEXT of field "newmessage")
...
Correct it and try again!


Best

Klaus

Ann
Posts: 3
Joined: Thu Jan 08, 2015 4:59 pm

Re: Stuck on Hello World and revchat

Post by Ann » Tue Feb 03, 2015 5:49 pm

Klaus, thank you! I found the problem - a typo. I had "test" instead of "text". It all works now and I can move on. Phew! You have been most patient with me.
Ann :D

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Stuck on Hello World and revchat

Post by Klaus » Tue Feb 03, 2015 6:00 pm

Avec plaisir, Madame! :D

Post Reply