Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
My JavaScript is not working when i implement URL Routing in my asp.net application.....
There is problem of path ...
the source path i am adding in the head section of the page is recognized by the Browser....
If anybody know how to solve this problem please help me........

Here is some sample code :-

<pre lang="Javascript"><pre lang="Javascript"><pre lang="Javascript">
XML
<head id="Head1">
    
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    <script src="../jscripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../jscripts/jquery.helper.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("a#show-panel").click(function () {
                $("#lightbox, #LightBox-Hide").fadeIn(300);
            })
            $("a#close-panel").click(function () {
                $("#lightbox, #LightBox-Hide").fadeOut(300);
            })
        })
    </script>
</head>



when view the page in the browser the javascript functionality asscoiated with these jquery files is not working even CDN is not working.
when debug i found that these files are not means there is some path problem...
without routing this is working fine.
Posted
Updated 13-May-13 21:10pm
v2
Comments
Sergey Alexandrovich Kryukov 14-May-13 2:55am    
I don't see how JavaScript can be related to routing. It could be some indirect influence. Anyway, hard to say anything without your code sample. (Isn't it obvious?)
—SA

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