Hi I am using a rating script and I can get it to work on folders 1 levels deep: (www. mysite.com/ videos/ video1) but when it goes to 2 levels deep it won't work? (www. mysite.com/ videos/ 2010/ video1) It is something to with the javascript line: I used a full address line but that doesn't work either. Any ideas?
../ means move back one directory. If it worked for /videos/video1 then I assume the script is in /videos/rating. That line would not work for /videos/2010/video1 because the script would have to be in videos/2010/rating. Strange that the full path didn't work, what did you actually use for that?
If you want to go 2 levels deep, use this; <script type="text/javascript" src="../../rating/rating.js"></script> Code (markup):
Try this <script type="text/javascript" src='<%=ResolveUrl("~/rating.js")%>'></script> Code (markup):
Thanks Mark that does work, but it works slightly differently to the other pages, when I vote it reloads the page instead of just staying where it is and registering the vote. Plus when it reloads the google ads disappear, I can only assume it must be a problem with the script. Thanks again though