jquery |
[eluser]gunner0007[/eluser]
Hi guys, badly needing help here. I have stared to learn Javascript along with Jquery and have tried everything from reading the user guides to every tutorial I can find but to no avail cannot get Jquery to work. First question...when it comes to the view. I have my script as this... Code: language="Javascript" type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"> (I took out the 'script' because it kept saying removed) I've tried downloading the jquery and pointing the src to it to no avail. Second question... Do I need to do anything in the controller such as loading the javascript library? Last....Here is what I am doing to test this but not getting the sliding feature or anything else for that matter. [removed] $("p").slideDown("4000"); $("p.slow").addClass("neat"); $("p.slow").show("4000"); [removed] <p class="slow">Hopefully this will show a bit later.</p> <p class="neat">here is the paragraph with the stuff.</p> I know this is just basic jquery but just wanna get this working so at least when I go to make apps I have somewhere to start from. Will appreciate the help.
[eluser]sirfilip[/eluser]
check this out mate. https://github.com/sirfilip/ci it is a project i started for newbies. there is jquery usage in there. and this is how i add additional scripts https://github.com/sirfilip/ci/blob/mast...ts.php#L66 .
[eluser]gunner0007[/eluser]
If this is for newbies then maybe I'm way over my head on this one. Much thanks for your help but I'm completely lost on this project. I just simply want to get jquery working then I can go from there.
[eluser]Ed Robindon[/eluser]
What do you see using Firefox html view? Alomst sounds like a simple path issue in your script tags. I use this script to fetch jQuery and it works fine. Code: <$cript>type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></$cript>
[eluser]gunner0007[/eluser]
I don't see anything. The simple code I have there is not giving any results. Does the code there look wrong to you? I mean I would think a simple slide down or show would show some kind of animation. When I use jsfiddle.net it all works. Has to be something with CI. And when you say path issue. Is there anything else I need to do other than this src source to get jquery to work? Is this the right format? lastly....when i actually type the code in the console it works...not sure what else to make from there.
[eluser]gunner0007[/eluser]
ahhhhh foolish me!!!!! I had the scripts all above the the actual html code. Wow how embarassing.
[eluser]InsiteFX[/eluser]
People if your do no not want this to happen then do this Code: [removed][removed]
[eluser]Ed Robindon[/eluser]
InsiteFX, I don't see any <$cript> tags in this post...
[eluser]InsiteFX[/eluser]
I am showing you how to include them in the forums here, Gee.
|
Welcome Guest, Not a member yet? Register Sign In |