include the library

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
boysky76
Posts: 48
Joined: Tue Aug 13, 2013 9:49 am

include the library

Post by boysky76 » Sat Dec 21, 2013 11:16 pm

Hi,

how to include the library or libUrlLastRhHeaders liburldownloadtofile the LiveCode server?

can someone explain how to do?

thanx

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: include the library

Post by Mark » Tue Dec 24, 2013 10:44 pm

Hi,

I'm not entirely sure that it will work, but you can try to copy the button libUrl of stack revLibrary to a new stack and save this on the server. In your server script, you include

Code: Select all

insert script of btn "libUrl" of stack /path/to/your/stack.rev" into back
and from then on you should be able to use the library. The question is whether it actually works. Give it a try and let me know.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

boysky76
Posts: 48
Joined: Tue Aug 13, 2013 9:49 am

Re: include the library

Post by boysky76 » Sun Dec 29, 2013 12:17 pm

thanks for the suggestion, but after doing this how do I call the function in the script created on the server, I have to use the command "includes stackname.rev" in the script?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: include the library

Post by Mark » Sun Dec 29, 2013 11:49 pm

Hi,

Just call the function as you always do in LiveCode.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

boysky76
Posts: 48
Joined: Tue Aug 13, 2013 9:49 am

Re: include the library

Post by boysky76 » Tue Jan 21, 2014 12:34 am

I have to re-create this function in LiveCode server:

libURLFormData-put ("username", pusername, "password", ppassword, "signin", "sign") into tData
tData post to url ("my_site_url")
put it into tHtmlPage
libUrlLastRHHeaders put () into tRHeaders-

  but I do not know how to include the library revlibrary.rev in LiveCode server, so that the commands liburlformdata and all other commands to work.

Can someone show me how to do?

Post Reply