Absolut path for Javascript
-
I am trying to refer resource files from Productions Server on to my Master Page. But unable to accompolish that "> In the above code, Instead of having relative paths I would like to give absolute paths... Can someone help me with a work around
-
I am trying to refer resource files from Productions Server on to my Master Page. But unable to accompolish that "> In the above code, Instead of having relative paths I would like to give absolute paths... Can someone help me with a work around
What has this to do with JavaScript? If you want to gove an absolute path then give one. Or precede the url with ~/ link href="~/common/etc
-
What has this to do with JavaScript? If you want to gove an absolute path then give one. Or precede the url with ~/ link href="~/common/etc
Thank You for the reply, Sorry it was not particular with Javascript or css... Its with all resource files. I am aware of tilde "~" I want to give an absolute location path like http://www.mydomain.com/main.css Is that possible, If yes, Can you elaborate?
-
Thank You for the reply, Sorry it was not particular with Javascript or css... Its with all resource files. I am aware of tilde "~" I want to give an absolute location path like http://www.mydomain.com/main.css Is that possible, If yes, Can you elaborate?
altctrlnick wrote:
I want to give an absolute location path like http://www.mydomain.com/main.css
Then do that. Any resource that the browser requests can be requested using a complete url.
Despite everything, the person most likely to be fooling you next is yourself.