Page 1 of 1
Stuck on Hello World and revchat
Posted: Tue Feb 03, 2015 5:08 pm
by Ann
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
Re: Stuck on Hello World and revchat
Posted: Tue Feb 03, 2015 5:16 pm
by Klaus
Hi Ann,
1. welcome to the forum!
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
Re: Stuck on Hello World and revchat
Posted: Tue Feb 03, 2015 5:32 pm
by Ann
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
Re: Stuck on Hello World and revchat
Posted: Tue Feb 03, 2015 5:43 pm
by Klaus
Hi Ann,
AHA!
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
Re: Stuck on Hello World and revchat
Posted: Tue Feb 03, 2015 5:49 pm
by Ann
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

Re: Stuck on Hello World and revchat
Posted: Tue Feb 03, 2015 6:00 pm
by Klaus
Avec plaisir, Madame!
