/    Sign up×
Community /Pin to ProfileBookmark

Firefox Firebug and Jquery

I decided to try such amazing product as jquery, because it simple. I started with getting start from jquery.com. and the first example didn’t work in my Firefox, but it’s perfectly work on IE7. There was an error that: “$ is not defined”
I get a google, but it doesn’t give me an answer. I just found that I’m not alone. how to solve it? (my firefox is 3.0.6 jquery 1.2.6 using from localhost)
P.S. anyother sites with jquery works well on firefox without any such errors in the firebug.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 03.2009 — Show the code you are using.
Copy linkTweet thisAlerts:
@linderoxauthorMar 03.2009 — if i use jquery straight from the googlecode it's works too well even in FF
<i>
</i>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Welcome to CodeIgniter&lt;/title&gt;

&lt;script type="text/javascript" src="/public/js/jquery-1.2.6.pack.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/public/js/jquery.dimensions.pack.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;script type="text/javascript"&gt;
$(document).ready( function() {
$('a').click(function() {alert('&amp;#1069;&amp;#1090;&amp;#1086; &amp;#1085;&amp;#1072;&amp;#1096;&amp;#1077; &amp;#1086;&amp;#1082;&amp;#1086;&amp;#1096;&amp;#1082;&amp;#1086;!');});
});
&lt;/script&gt;

&lt;body&gt;

&lt;h1&gt;Welcome to CodeIgniter!&lt;/h1&gt;
&lt;div id="pop"&gt;&lt;p&gt;&lt;a href="main"&gt;Main Site in a window&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
&lt;a href=""&gt;Link&lt;/a&gt;

&lt;p&gt;The page you are looking at is being generated dynamically by CodeIgniter.&lt;/p&gt;

&lt;p&gt;If you would like to edit this page you'll find it located at:&lt;/p&gt;
&lt;code&gt;system/application/views/welcome_message.php&lt;/code&gt;

&lt;p&gt;The corresponding controller for this page is found at:&lt;/p&gt;
&lt;code&gt;system/application/controllers/welcome.php&lt;/code&gt;

&lt;p&gt;If you are exploring CodeIgniter for the very first time, you should start by reading the &lt;a href="user_guide/"&gt;User Guide&lt;/a&gt;.&lt;/p&gt;



&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@FangMar 03.2009 — The error is caused by not having the correct jQuery file:

[I]jquery-1.2.6.[COLOR="Blue"]pack[/COLOR].js[/I] is required, change link to [I]jquery-1.2.6.js[/I] if you are using this file.

An update is available [I]jquery-1.3.js[/I]
×

Success!

Help @linderox spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...