I have went through many samples to have a variable inside quotes..But that doesnt help my case..it is strange in my case..have a look at it..
Var x='http://www.xyzftp/myservice/service1.svc'
Var y='/logincheck'
Now i want to have it inside a single quoted string like
'http://www.xyzftp/myservice/service1.svc/logincheck'
UPDATE:
I have a file named domainname.xml
I get the value http://www.xyzftp/myservice/service1.svc from that file.Now i need to concatenate /logincheck with it and pass as an URL to an ajax call…
Thats my specific need guys !!
Any ideas friends ???
There is no difference between a variable declared with single quotes vs. one declared with double quotes:
To join your two strings, just concatenate them with a
+orconcat():Now, if we’re all just misunderstanding your question, and what you are actually looking for is a string with single quotes as part of the string contents, here’s how you can get that: