Click to See Complete Forum and Search --> : Joining Variables


nanomad
04-11-2004, 02:02 AM
I know very little about javascript, so I am hoping that this will be easy for some one to help me with.

I have a variable, var imageName , which represents an image that has previously been uploaded.

I need to append the URL the image was uploaded to with the image name:

so how would i make var imageName equal to var imageURL AND var imageName

Thanks for any help!

Exuro
04-11-2004, 02:32 AM
var imageURL = "/uploads/pics/";
var imageName = "photo.jpg";
imageName = imageURL + imageName;
Like that?

nanomad
04-11-2004, 10:07 AM
Perfect! Thanks