[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 753
  • Last Modified:

Jquery Style Menu in asp.net 3.5 using Jquery 1.7.1.js

Hello Experts,

I'm having issues with one of the Jquery Javascript function
<script type="text/javascript">

        $(function() {
            $("ul.level1 li").hover(function() {
                $(this).stop().animate({ opacity: 0.7, width: "170px" }, "slow");
            }, function() {
                $(this).stop().animate({ opacity: 1, width: "110px" }, "slow");
            });
        });
    </script>

Open in new window

When I try this stop().animate, stop doesn't show intellisense for animate.

Reference:
http://weblogs.asp.net/hajan/archive/2011/01/30/create-nice-animation-on-your-asp-net-menu-control-using-jquery.aspx

And trying to achieve this Menu control under my application. I'm sure Jquery is working when I did $, it shows the  Jquery selector Index.Even tried with older versions of Jquery JS:1.4.4. I'm using VS2008 as IDE.

Thanks,
ASPDEV
0
ASPDEV
Asked:
ASPDEV
  • 2
  • 2
1 Solution
 
Rajar AhmedConsultantCommented:
You need to reference jqueryvsdoc.js to respective version of jquery library
On jquery-1.6.2.js library :
  Addthis ,
    /// <reference path="jquery-1.6.2-vsdoc.js" />
<script type="text/javascript" src="jquery-1.6.2.js"></script>
<script type="text/javascript">
    $(function () {
        $("ul.level1 li").hover(function () {
            $(this).stop().animate({ opacity: 0.7, width: "170px" }, "slow");
                        
        }, function () {
            $(this).stop().animate({ opacity: 1, width: "110px" }, "slow");
        });
    });
</script>

Open in new window


More info,
http://www.learningjquery.com/2009/07/setting-up-visual-studio-intellisense-for-jquery
jquery-1.6.2.js
jquery-1.6.2-vsdoc.js
0
 
ASPDEVAuthor Commented:
Tried, no luck.
0
 
Rajar AhmedConsultantCommented:
am vs2010, it worked attached the complete integration i used.

Meeran03
jqinteintgration.zip
0
 
ASPDEVAuthor Commented:
I think, it's only working in VS2010 not in VS2008.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now