I cannot for the life of me figure out why this script is not working on my site but it is working on JSFIDDLE
Here is my current script working in JSFiddle
Edit this Fiddle - jsFiddle - Online Editor for the Web (JavaScript, MooTools, jQuery, Prototype, YUI, Glow and Dojo, HTML, CSS)
Here is the link to the site I am trying to design
http://blog.redeyepr...m/WebForm1.aspx
Essentially what I am trying to accomplish is on my sight simulate the dragscroll of the windows phone 7
or for those that don't know that then IPhone
I am not getting any errors reported it just simply is not working on my ASP.NET Site
one of the first things I thought was maybe I had something on my site that was interferring which still maybe true but I broke it down pretty basic to lesson the chance of that being the case.
I even made sure the DocType was the same on JSFiddle
3 replies to this topic
#1
Posted 08 October 2011 - 02:04 PM
|
|
|
#2
Posted 08 October 2011 - 06:47 PM
You load your script too fast.
You have to wait for jquery to be loaded before executing your script
Wrap all your jquery code inside this
You have to wait for jquery to be loaded before executing your script
Wrap all your jquery code inside this
$(document).ready(function() {
...
}
#3
Posted 08 October 2011 - 07:11 PM
You are SUPREMELY AWESOME!!!
Thank you that has been irratating me all day long.
---------- Post added at 11:11 PM ---------- Previous post was at 10:55 PM ----------
Apparently JSFiddle automatically wraps it for you and thats why it works on there... Once again thank you. I knew it was going to be something simple but I was blind to it
Thank you that has been irratating me all day long.
---------- Post added at 11:11 PM ---------- Previous post was at 10:55 PM ----------
Apparently JSFiddle automatically wraps it for you and thats why it works on there... Once again thank you. I knew it was going to be something simple but I was blind to it
#4
Posted 08 October 2011 - 07:18 PM
JSFiddle load jquery, and once it loaded he load your data, so on JSFiddle you don't have to wait for jquery to be loaded since it's already loaded.
A little bit like if you load something via ajax, you don't have to wait for jquery, you know it's loaded
A little bit like if you load something via ajax, you don't have to wait for jquery, you know it's loaded
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









