I wanted to check out jquery and see what i could do with it, i installed the library but it wouldn't load, javascript will run but no jquery commands or scripts will work.
I linked to the google CDN and that didn't change anything, so i'm assuming it's an issue with apache not being configured right.
No error's appear in firebug.
Any idea's what the issue could be?
jQuery is client side, and it's a library. You can't "install" a library.
XAMPP is server software.
jQuery does not have anything to do with the server you set it up on.
You need to explain your definition of "install", because your post is otherwise confusing.
by install i mean i stored the jquery.js library locally in a folder called JS with in the root of the site and pointed my <script language> to it...
when that didn't work, i pointed to the google cdn... that doesn't work either...
So, what i'm asking is if there's a configuration that could be wrong with xampp (possibly apache/asp config or something...)
I didn't think my post was all that confusing, my apologies...
[QUOTE=CombineGuru;26795572][code]<script type="text/javascript" src="jquery-1.4.4.min.js"></script>[/code][/QUOTE]
I already did that... then... when that didn't work i used googles CDN as the src, it still didn't work...
Googles CND is [code]<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>[/code]
Can you paste your entire code?
[QUOTE=Luc1f3r;26795404]by install i mean i stored the jquery.js library locally in a folder called JS with in the root of the site and pointed my <script language> to it...
when that didn't work, i pointed to the google cdn... that doesn't work either...
So, what i'm asking is if there's a configuration that could be wrong with xampp (possibly apache/asp config or something...)
I didn't think my post was all that confusing, my apologies...[/QUOTE]
Open Firebug and type $ into the console, and execute it. If you get function() that means jQuery is loaded.
Client-side code should not and cannot be related to your server at all, and JavaScript is client-side. Just so you know.
[QUOTE=a2h;26796012]Open Firebug and type $ into the console, and execute it. If you get function() that means jQuery is loaded.
Client-side code should not and cannot be related to your server at all, and JavaScript is client-side. Just so you know.[/QUOTE]
Ahh, ok that makes sense...
also when i used $ in the console it replied
[code]
>>> $
anonymous()[/code]
Same thing?
I ran it on another script that doesn't appear to work and it gave back a result of function()
went ahead and uploaded them to a server online, they have the same issue, does any of the jquery functions work for you?
[url]http://barbirdsdev.5gbfree.info/Dev/login/login.html[/url] (gave the function() result)
[url]http://barbirdsdev.5gbfree.info/Dev/starterkit/starterkit.html[/url] (gave the anonymous() result)
One is just the starter kit, the other is a random tutorial they had, i haven't edited either except for calling the jquery library to google.
[QUOTE=CombineGuru;26796214]It's broken...[/QUOTE]
Thats just an old version of the jquery library, changed it to point to the 1.4.4 and it's still not working (though $ reply's with function now instead of anonymous...)
[QUOTE=Luc1f3r;26796339]Thats just an old version of the jquery library, changed it to point to the 1.4.4 and it's still not working (though $ reply's with function now instead of anonymous...)[/QUOTE]
Okay, keep it at the newer version.
However, there's still a problem with you breaking it into two lines, because when you do so the newline is parsed as a space. And that means browsers are going to try and look for "http://ajax.googleapis.com/ajax/ libs/jquery/1.3.1/jquery.min.js". Which doesn't exist, because there's no " libs" folder.
I'm having the same problem.... doing the $ returns a function for me too though
[QUOTE=a2h;26796685]Okay, keep it at the newer version.
However, there's still a problem with you breaking it into two lines, because when you do so the newline is parsed as a space. And that means browsers are going to try and look for "http://ajax.googleapis.com/ajax/ libs/jquery/1.3.1/jquery.min.js". Which doesn't exist, because there's no " libs" folder.[/QUOTE]
Isn't that just 'caus of the width of the code on the Facepunch page?...
[QUOTE=SataniX;26911599]Isn't that just 'caus of the width of the code on the Facepunch page?...[/QUOTE]
No it's not 'caus of the width there's a little magic thing in this world called View Source
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>jQuery Starterkit</title>
<link rel="stylesheet" type="text/css" media="screen" href="screen.css" />
<script src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.1/jquery.min.js" type="text/javascript"></script>
<script src="custom.js" type="text/javascript"></script>
</head>[/code]
I'm not sure if it's relevant but:
[img]http://dl.dropbox.com/u/934051/screengrab_20101224144345.png[/img]
What's those extra .html()s for? They don't seem to return to anything
[QUOTE=Bugster;26929386]I'm not sure if it's relevant but:
[img_thumb]http://dl.dropbox.com/u/934051/screengrab_20101224144345.png[/img_thumb]
What's those extra .html()s for? They don't seem to return to anything[/QUOTE]
Is that TextMate?
[QUOTE=Combino;26948971]Is that TextMate?[/QUOTE]
nope it's "e", I love it :D
[QUOTE=Bugster;27026135]nope it's "e", I love it :D[/QUOTE]
Ah yeah, I use e too.
Do you find it has an issue when you've deleted a file that's open in it?
Sorry, you need to Log In to post a reply to this thread.