Where is the revlet?...

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Where is the revlet?...

Post by Dixie » Thu Aug 20, 2009 10:39 am

Gents.. Ladies,

I have been playing with revlets and to a large extent things have been going really well. I appreciate that not all the syntax from the desktop environment is yet working in the web version... but... Is there anyway to get the revlet to tell you where it is ?... this works on the desktop, but not when the revlet is on the server.

Code: Select all

on mouseUp
   put the filename of this stack into fld 2
end mouseUp
 
The only way around this problem that I have come up with is to give a script the filepath of the revlet... as in

Code: Select all

on menuPick ItemName
   put "http://www.(sub-domain).(domain name).on-rev.com" into place
   put empty into fld 1
   set cursor to busy
   switch ItemName
      
      case "Image 1"
         set the filename of image "view" to  place &"/image1.png"
         put "Jenny and Jo in Wells, 2005" into fld 1
         break
         
      case "Image 2"
         set the filename of image "view" to place &"/image2.png"
         put "Jenny learning to ride her first bicycle.." into fld 1
         break
         
      case "Image 3"
         set the filename of image "view" to place &"/image3.png"
         put "Jenny and Joanne, being friendly for once..." into fld 1
         break
   end switch
end menuPick
[/code]

I look forward to the replies...

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

Post by Klaus » Thu Aug 20, 2009 2:06 pm

Hi Dixie,

how's your cat? :D

I never tried it by myself, but there was a discussion on the use list recently and according to this relative pathnames should work!

So if your images are in the same folder as your revlet this should work:
...
set the filename of img 1 to "name of image her.jpg"
...

At least worth a try :-)


Best

Klaus

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Post by Dixie » Thu Aug 20, 2009 4:32 pm

Klaus....

Thanks for the reply... the relative path method works in the IDE, but not when it is on the server... Oh well!... this and the QTVR problem might be sorted out by the time they release 4.0 in September.

The cat ?... I haven't seen much of her today, she was last seen heading towards the barn this morning, muttering something about mice..

Post Reply