Syntax problem
    Varen Swaab 
    varen at veggio.com
       
    Fri May  6 00:40:26 EDT 2005
    
    
  
Sarah
I'm trying to create a url to connect to an http server. If I use this code:
get theLink
then, everything works fine. The variable  "theLink" contains a fully formed
url such as:
"http://www.server.com/path/path.
I'm trying to extend this url by adding the value of another variable
"subID" which is entered by the user. This additional value needs to be
added to the original url without breaking it and then initiate a get
command.
So, the end result will be:
http://www.server.com/path/path/uservalue
Here's the full WORKING code:
on linkClicked theLink
  put off into session
  send "remoteClick" to button "master" of stack "player"
  put currentLink into currentLinkOld
  unload URL currentLinkOld
  put theLink into currentLink
  get theLink
  
  put it into session_xml
  send getSession to stack "player"
  if me is empty then set visible of me to false
  
end linkClicked
I thought that by combining the variables for  "theLink" and "subID" I could
create a well formed url.
Thanks
Var
On 5/5/05 9:15 PM, "Sarah Reichelt" <sarahr at genesearch.com.au> wrote:
> What sort of URL are you trying to create? Rev uses this syntax for web
> pages and files.
> For web pages, the structure needs to be the same as the address in a
> browser e.g.
> get URL "http://www.google.com"
> 
> 
> 
> Varen Swaab
    
    
More information about the use-livecode
mailing list