revLet: what url am I?

2010-05-20 Thread David Bovill
Playing with a revLet:

   put the revletParams of this stack into someArray
combine someArray with CR and tab
put $HTTP_HOST  CR  CR  someArray into someText
answer someText


But I am not getting anything for $HTTP_HOST it looks like that global
is not supported. This is what I get for the globals:

gRevAppIcon
 gRevSmallAppIcon
 $JAVA_JVM_VERSION
 $XRE_BINARY_PATH
 $XUL_APP_FILE
 $NO_EM_RESTART
 $XRE_IMPORT_PROFILES
 $XRE_START_OFFLINE
 $XRE_PROFILE_NAME
 $XRE_PROFILE_LOCAL_PATH
 $XRE_PROFILE_PATH
 $MOZ_LAUNCHED_CHILD
 $MOZ_CRASHREPORTER_STRINGS_OVERRIDE
 $MOZ_CRASHREPORTER_DATA_DIRECTORY
 $MOZ_CRASHREPORTER_RESTART_ARG_2
 $MOZ_CRASHREPORTER_RESTART_ARG_1
 $MOZ_CRASHREPORTER_RESTART_ARG_0
 $COMMAND_MODE
 $SECURITYSESSIONID
 $Apple_PubSub_Socket_Render
 $SSH_AUTH_SOCK
 $DISPLAY
 $LOGNAME
 $USER
 $HOME
 $SHELL
 $TMPDIR
 $PATH
 $#


Can't see anything that is going to give the url of the actual revLet -
$HOME and $PATH give the same thing - a realtive path on the server!
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revLet: what url am I?

2010-05-20 Thread Mark Schonewille

David,

Have a look at this http://qurl.tk/av

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new projects. Contact me for a  
quote http://economy-x-talk.com/contact.html
Download Clipboard Link http://clipboardlink.economy-x-talk.com and  
share the clipboard of your computer over the local network.


On 20 mei 2010, at 21:37, David Bovill wrote:


Playing with a revLet:

  put the revletParams of this stack into someArray

  combine someArray with CR and tab
  put $HTTP_HOST  CR  CR  someArray into someText
  answer someText



But I am not getting anything for $HTTP_HOST it looks like that  
global

is not supported. This is what I get for the globals:

gRevAppIcon

gRevSmallAppIcon
$JAVA_JVM_VERSION
$XRE_BINARY_PATH
$XUL_APP_FILE
$NO_EM_RESTART
$XRE_IMPORT_PROFILES
$XRE_START_OFFLINE
$XRE_PROFILE_NAME
$XRE_PROFILE_LOCAL_PATH
$XRE_PROFILE_PATH
$MOZ_LAUNCHED_CHILD
$MOZ_CRASHREPORTER_STRINGS_OVERRIDE
$MOZ_CRASHREPORTER_DATA_DIRECTORY
$MOZ_CRASHREPORTER_RESTART_ARG_2
$MOZ_CRASHREPORTER_RESTART_ARG_1
$MOZ_CRASHREPORTER_RESTART_ARG_0
$COMMAND_MODE
$SECURITYSESSIONID
$Apple_PubSub_Socket_Render
$SSH_AUTH_SOCK
$DISPLAY
$LOGNAME
$USER
$HOME
$SHELL
$TMPDIR
$PATH
$#



Can't see anything that is going to give the url of the actual  
revLet -

$HOME and $PATH give the same thing - a realtive path on the server!



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revLet: what url am I?

2010-05-20 Thread David Bovill
Thanks Mark - I'm wandering if I should file access to the more usual Apache
environment globals as a feature request?

On 20 May 2010 21:23, Mark Schonewille m.schonewi...@economy-x-talk.comwrote:

 David,

 Have a look at this http://qurl.tk/av

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revLet: what url am I?

2010-05-20 Thread Mark Schonewille

Hi David,

I don't think so, because a revlet runs locally, not on the server.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new projects. Contact me for a  
quote http://economy-x-talk.com/contact.html
Download Clipboard Link http://clipboardlink.economy-x-talk.com and  
share the clipboard of your computer over the local network.


On 20 mei 2010, at 22:39, David Bovill wrote:

Thanks Mark - I'm wandering if I should file access to the more  
usual Apache

environment globals as a feature request?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revLet: what url am I?

2010-05-20 Thread David Bovill
So does HTML :)

On 20 May 2010 21:42, Mark Schonewille m.schonewi...@economy-x-talk.comwrote:

 Hi David,

 I don't think so, because a revlet runs locally, not on the server.


Anyway it is useful.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revLet: what url am I?

2010-05-20 Thread Mark Schonewille

David,

HTML is indeed rendered locally, which is why you can't use server  
environment veriables in HTML. If you want to parse environment  
variables, you need to use PHP, ASP, Perl or irev for instance.  
Moreover, the environment variables that are listed by the globals  
function are set locally, not by the server.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new projects. Contact me for a  
quote http://economy-x-talk.com/contact.html
Download Clipboard Link http://clipboardlink.economy-x-talk.com and  
share the clipboard of your computer over the local network.


On 20 mei 2010, at 22:45, David Bovill wrote:


So does HTML :)

On 20 May 2010 21:42, Mark Schonewille m.schonewi...@economy-x-talk.com 
wrote:



Hi David,

I don't think so, because a revlet runs locally, not on the server.



Anyway it is useful.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revLet: what url am I?

2010-05-20 Thread David Bovill
On 20 May 2010 22:14, Mark Schonewille m.schonewi...@economy-x-talk.comwrote:

HTML is indeed rendered locally, which is why you can't use server
 environment veriables in HTML.


Hi I was sort of joking - but really you have HTTP headers like HTTP
referrer - so that the browser can tell where the hell the HTML came from -
similarly revTalk will sometmes need to know the url the original stack came
from.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution