J
Jim
I don't wish to start another flame fest/name calling thread, but Matt's
suggesion to use JQuery led me to try it.
So I went to
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Setup and
followed the directions to load the jquery.js file into the same
directory as starterkit.html and custom.js, per " After downloading and
extracting its content we put jquery.js into the same directory and open
starterkit.html and custom.js with our favorite editor and
starterkit.html with a browser."
Then I added a small chunk of code to the starterkit.html file as
suggested:
<script type="text/javascript">
$(document).ready(function() {
// do stuff when DOM is ready
});
</script>^M
Before I went any farther I decided to see what it looked like so I
pointed my browser to http://localhost/starterkit/starterkit.html.
I see a bunch of things, but I also see firebug complaining about 2 Errors:
$ is not defined
http://localhost/starterkit/starterkit.html#
Line 751
jQuery is not defined
http://localhost/starterkit/custom.js
Line 1
I'm not one to trust a library that doesnt' even run its tutorial.
I suspect I've done something stupid, but as far as I can see, I did
what the tutorial said to do.
Jim.
suggesion to use JQuery led me to try it.
So I went to
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Setup and
followed the directions to load the jquery.js file into the same
directory as starterkit.html and custom.js, per " After downloading and
extracting its content we put jquery.js into the same directory and open
starterkit.html and custom.js with our favorite editor and
starterkit.html with a browser."
Then I added a small chunk of code to the starterkit.html file as
suggested:
<script type="text/javascript">
$(document).ready(function() {
// do stuff when DOM is ready
});
</script>^M
Before I went any farther I decided to see what it looked like so I
pointed my browser to http://localhost/starterkit/starterkit.html.
I see a bunch of things, but I also see firebug complaining about 2 Errors:
$ is not defined
http://localhost/starterkit/starterkit.html#
Line 751
jQuery is not defined
http://localhost/starterkit/custom.js
Line 1
I'm not one to trust a library that doesnt' even run its tutorial.
I suspect I've done something stupid, but as far as I can see, I did
what the tutorial said to do.
Jim.