When you go to about, looks like your going to a different folder which means your relative path is off so the js files are not loaded. I am just guessing since the about links are not loading any content.
but i still have the same problem when i want to combine 2 jquey codes that have $function. one of them have 2 section that wrote with onready and Function $ and another just have one $.
for simple answering i uploaded two samples for you to download them
Jquery Sample 1 : http://mktik.com/myfiles/jQUERYANDASPNET/1280327040.zip // that Makes a scroller like amazone books
Jquery Sample 2 : http://mktik.com/myfiles/jQUERYANDASPNET/FeaturedZoomer.rar // That make a Fun Zoom For A Photo
i want to combine these two jquery codes but when i use $.noconflict or Jquery.noconflict , Whole codes were not worked.
please help me that what can i do or where should i place the noconflict code.
Start a new thread then people might be able to help as these post as marked as answered so less chances people might visit to provide you the solution.
and you trying to zoom and scrool on different images or same image???
abhishek0410
Participant
1174 Points
932 Posts
Jquery Error-Object Doesn't support this method or property.
May 11, 2011 03:11 PM|LINK
Hello,
i am using asp.net 4.0. i have a two content page. i am naviagating to second page from server side code.
I have a piece of code in jquery which i am writting in both content page. IT works fine in 1st content page but in second content page i am getting
error. screenshot of the error.
http://imageshack.us/f/40/erroron.png
What could be the reason of the error.??
The working page http://movie4u.in/Movie/Hindi-Movie .
If you click on the 'view Trailer' button then same code works. from this page if i click on 'About Movie' then from server side i am redirecting
to different content page. There i have written same code but i get error.
Please guide me..
Thanks
raghav_khung...
All-Star
32835 Points
5563 Posts
MVP
Re: Jquery Error-Object Doesn't support this method or property.
May 11, 2011 06:15 PM|LINK
Either the jQuery path or the .fancybox reffered file path is not correct.
A1ien51
All-Star
29935 Points
5821 Posts
Re: Jquery Error-Object Doesn't support this method or property.
May 12, 2011 04:42 AM|LINK
When you go to about, looks like your going to a different folder which means your relative path is off so the js files are not loaded. I am just guessing since the about links are not loading any content.
Eric
abhishek0410
Participant
1174 Points
932 Posts
Re: Jquery Error-Object Doesn't support this method or property.
May 12, 2011 04:45 PM|LINK
Hello
i wrote this piece of code.
<asp:Content ID="content1" runat="server" ContentPlaceHolderID="HeadContent"> <link href="../js/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" /> <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js" type="text/javascript"></script> <script src='<%=ResolveClientUrl("~/js/fancybox/jquery.fancybox-1.3.4.js")%>' type="text/javascript"></script> <script src='<%=ResolveClientUrl("~/js/fancybox/jquery.easing-1.3.pack.js")%>' type="text/javascript"></script> <script src='<%=ResolveClientUrl("~/js/fancybox/jquery.mousewheel-3.0.4.pack.js")%>' type="text/javascript"></script> <script type="text/javascript"> $.noConflict(); $(document).ready(function () { $(".fancyYoutube").fancybox({ 'transitionIn': 'elastic', 'transitionOut': 'fade', 'width': 680, 'height': 495, 'type': 'swf' }); }); </script> </asp:Content>i could see the js are loaded but still i get error.
error link is: http://imageshack.us/f/641/errorci.png/
in right you can see that js file are loaded..
i could notice that based on my url the files path is changed..
i changed the Url then i saw the path for js.
<link href="../js/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" /> <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js" type="text/javascript"></script> <script src='../../../js/fancybox/jquery.fancybox-1.3.4.js' type="text/javascript"></script> <script src='../../../js/fancybox/jquery.easing-1.3.pack.js' type="text/javascript"></script> <script src='../../../js/fancybox/jquery.mousewheel-3.0.4.pack.js' type="text/javascript"></script>
Do i need to change somethingi n the code of jquery too???
please guide me..
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: Jquery Error-Object Doesn't support this method or property.
May 16, 2011 02:15 AM|LINK
After using $.noConflict(), jQuery no longer owns $ as a window property. You'll modify the code to
jQuery(document).ready(function ($) {
// $ refers to jQuery
});
// code here does not refer to jQuery.
For your reference, http://api.jquery.com/jQuery.noConflict/
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
abhishek0410
Participant
1174 Points
932 Posts
Re: Jquery Error-Object Doesn't support this method or property.
May 16, 2011 05:29 PM|LINK
Helo BU XI
Thanks but i could solve my issue by using 'ResolveClientUrl' while referencing the js file in my content page.
and then
<script type="text/javascript"> $(document).ready(function () { $(".fancyYoutube").fancybox({ 'transitionIn': 'elastic', 'transitionOut': 'fade', 'width': 680, 'height': 495, 'type': 'swf' }); }); </script>it is working now...will try your approach too... ihad removed noconflict too/
Thanks.
Mohammad75
Member
21 Points
26 Posts
Re: Jquery Error-Object Doesn't support this method or property.
May 26, 2011 09:19 AM|LINK
HEY EVERYONE.
but i still have the same problem when i want to combine 2 jquey codes that have $function. one of them have 2 section that wrote with onready and Function $ and another just have one $.
for simple answering i uploaded two samples for you to download them
Jquery Sample 1 : http://mktik.com/myfiles/jQUERYANDASPNET/1280327040.zip // that Makes a scroller like amazone books
Jquery Sample 2 : http://mktik.com/myfiles/jQUERYANDASPNET/FeaturedZoomer.rar // That make a Fun Zoom For A Photo
i want to combine these two jquery codes but when i use $.noconflict or Jquery.noconflict , Whole codes were not worked.
please help me that what can i do or where should i place the noconflict code.
With thanks
Mohammad75
Member
21 Points
26 Posts
Re: Jquery Error-Object Doesn't support this method or property.
May 28, 2011 02:42 AM|LINK
SomeOne Help Me Please
jemand mir helfen bitte
abhishek0410
Participant
1174 Points
932 Posts
Re: Jquery Error-Object Doesn't support this method or property.
May 28, 2011 05:58 AM|LINK
Hey
Start a new thread then people might be able to help as these post as marked as answered so less chances people might visit to provide you the solution.
and you trying to zoom and scrool on different images or same image???
Please start new post for this question.
abhishek0410
Participant
1174 Points
932 Posts
Re: Jquery Error-Object Doesn't support this method or property.
May 28, 2011 06:43 AM|LINK
Did you start the new post?? i got it work done in same page.. and it is working now.
I am not using master page though.
Where you want me to post the answer or send the code?