Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hi,
I used master page . and on that i used jquery for menu items ..

one is smootmenu.js and one is jquery version 1.2.6

on the same master page i also applied css .


~/js/1.2.6.js
~/js/smoothmenu.js

now when i come to my main page ..

I have subfolders

main folder System ->
there is subfolder named user and under this page i have my .aspx pages

and my js folder is inside System

now the problem is when i use this folder system my jquery is working on every page .'


but now when i create one more folder inside system named "Home" and when i keep my .aspx pages inside this folder the jquery wont work for menu now ..


i change all possible things on my master pages

giving hardcoded rooths,
../../js/djhf.js

.. also used other possible things ..

<script src='<%= Page.ResolveUrl("~/jquery-1.2.6.min.js")' type="text/javascript"></script>

and many other suggestion same like above but none is working .. if i create one more folder inside my system folder the jquery is not woirking for that path .. if i keep those pages back to system folder .. now jquery working .. i want to make my application folder based .. but this is the problem
Posted
Updated 28-Nov-13 5:31am
v2
Comments
What errors you see on FireBug console window in FireFox?
Torakami 29-Nov-13 1:01am    
not getting error , probem is menu is not working on Home whic is in subfolders ... but working fine from outside pages
Have you included the folders inside the Project?
Torakami 29-Nov-13 1:37am    
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="../js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="../js/ddsmoothmenu.js" type="text/javascript"></script>
Torakami 29-Nov-13 1:39am    
the upper part is i am working .. the .aspx pages whise roort is ../js they can access this scripyts.. but after the subfolder .. the rrot gets changed and js location becomes ../../js/

so i could not workable .. i also try to change the path for temporary on master page to ../../ but still nt working fol sub folder pages

1 solution

U need to register the Jquery files only on to the master pages and remove all jquery files from all other pages. Your problem will be solved.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900