Page 1 of 1

Where is the revlet?...

Posted: Thu Aug 20, 2009 10:39 am
by Dixie
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...

Posted: Thu Aug 20, 2009 2:06 pm
by Klaus
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

Posted: Thu Aug 20, 2009 4:32 pm
by Dixie
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..