What happens if you put value(varName)?

Also, when you put the variable into the message box do you have the 5 returned to you? You could declare it a global and check the contents to make sure it holds what you want.
Mark


On Mar 18, 2005, at 4:41 PM, Varen Swaab wrote:

Thanks everyone,

I appreciate the help but nothing has worked for me. I agree, the examples you are giving should work and if I simply put a numerical value in place of the variable it works just fine, but the variable just doesn't work. Do you have any idea why it wouldn't work? This is pretty simple code so it must be another factor, I just can't think of what...hmmmm.

Thanks

Var



On 18-Mar-05, at 11:54 AM, T. R. Ponn wrote:

Varen,

This also works:

on mouseUp
put "16bie" into user
get url("http://www.alptex.com/products/emulators/alptex16bie/"&user)
put it into msg -- the html of the page titled "16bie.html" on our site is in the msg box
end mouseUp


Best Regards,

Tim Ponn



Varen Swaab wrote:

Hi

I'm trying to load a file from a server by constructing an url which has a variable as part of the string. When I remove the variable code and use just a straight url everything works fine, the file on the server is found and loaded:

get url "http://www.domain.com/view/xml/name/5";    <<< this works!!

However, when I try to insert a variable into the url string the file still loads from the server but the variable was not correctly passed onto the server--- resulting in the wrong page being sent back.

global user
put "5" into user
get url "http://www.domain.com/view/xml/name/&user&"; <<< this doesn't work


Klaus' suggestion didn't work either:

get url("http://www.domain.com/view/xml/name/"; & user) <<< this doesn't work either

I'm confident other parts of this, such as the server, etc are setup properly because if I simply put a "5" in the url I get the correct response.

I hope this is enough information.


Var



On 18-Mar-05, at 11:27 AM, Frank D. Engel, Jr. wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What do you mean it "doesn't work"? Do you get an error message, or do you expect something to happen that doesn't...

If you could be more specific about what you are trying to do, we could probably help you more effectively.

On Mar 18, 2005, at 1:50 PM, Varen Swaab wrote:

Klaus

Thanks for the idea but this doesn't work either. There is something about this syntax that isn't right. Do you have another idea?

Thanks.


On 18-Mar-05, at 1:57 AM, Klaus Major wrote:

Hi Varen,

Hi all,

I'm new at this so please go easy...

I'm trying to put a global variable into a url string and I'm not getting it to work. I think my syntax is messed up. The variable is set properly. The variable is named "user" and has a value of "3".

get url "http://www.domain.com/view/xml/name/&user&";

Does anyone have any suggestions on how to write this?


maybe you mean this:

get url("http://www.domain.com/view/xml/name/"; & user)

?

You have to "build" the appropriate string first...

Thanks very much

Var


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution


- -----------------------------------------------------------
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)


iD8DBQFCOyur7aqtWrR9cZoRAo0GAJ44Y3hpj3fM1Iv8qOivcZUzgD/h8wCdHQs5
o/BDB13SczAVH/D9eFC8//Y=
=d7uH
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to