Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  17] [ 7]  / answers: 1 / hits: 41141  / 14 Years ago, wed, august 18, 2010, 12:00:00

Is there an absolute path while declaring the tag?



this will resolve if I have a aspx page in a folder (one level)
script src=../Scripts/jquery-1.4.1.js type=text/javascript>



this will resolve if I have a aspx page in a folder (two level)
script src=../../Scripts/jquery-1.4.1.js type=text/javascript>



this will resolve if I have a aspx page in the main root
script src=Scripts/jquery-1.4.1.js type=text/javascript>



Do i really need to create different version for each relative path?


More From » asp.net

 Answers
112

You may want to use a relative path from the domain root instead:



<script src=/Scripts/jquery-1.4.1.js type=text/javascript>

[#95882] Sunday, August 15, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kamronr

Total Points: 749
Total Questions: 110
Total Answers: 122

Location: Dominica
Member since Sat, Nov 5, 2022
2 Years ago
kamronr questions
Mon, Dec 21, 20, 00:00, 4 Years ago
Fri, Oct 16, 20, 00:00, 4 Years ago
Sat, Oct 3, 20, 00:00, 4 Years ago
Sun, Jul 28, 19, 00:00, 5 Years ago
;