Yves COPPE wrote:
Here is a very simple script :
on mouseUp
put empty into fld "resultat"
set itemDel to "/"
put item 1 to -2 of the effective fileName of this stack into tPath
set itemDel to comma
put tPath into fld "resultat"
end mouseUp
In the IDE, it gives the right path
when I build a revlet, put it on my server and open it with Safari, it
gives ... nothing ! fld "resultat" stays empty
Any idea ?
The stack file on your server isn't the one that's running. Like web
pages, what the browser gets is a downloaded copy of the stack file.
This copy lives in RAM, so its fileName will be empty.
--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution