The answer was more in depth than I could have thought.
For some reason I could not connect to the Jquery library by using an external link like so:
http://code.jquery.com/jquery-latest.min.js
I had to copy the code and paste it into a file on my server.
That solved the issue of jquery not being initialized. The next step was something I didn't even consider.
When working with javascript:
$.ajax({ url:"text.txt", complete:function(r){
I would have imagined that that line of code would load the file correctly. But in fact, I didn't know that when you are referencing a file in javascript text.txt
that you have to include the path from the page calling the javascript. I have the actual text file located in:
javascript/text.txt
because I thought the javascript loads files from the directory it's stored in...
Thanks all that helped!