Oh, that's right! Too often I miss the closing );, especially when *reading*
code.
It's very unfortunate javascript didn't have someone like Guido van Rossum
as BDFL. Life for web developers would surely be easier if it too were
developed with "be as readable as English" as a goal.
Glad to know
Sorry Andy and thank for your patience,
as I though the problem is simply simply bad JQuery.
$(document).ready(function() {
$('li').addClass("active");
}
what about some ");" to close statements?
Thanks
2011/10/28 Andre Terra :
> I'm sorry if I'm not understanding
You are right, sorry.
jQuery is loaded, I can see it in Firefox and in Firebug.
If I write this statement
$(document).ready(function() {
}
in a working JS file, that file stops working, can be reached through
Firefox (it is loaded) but not by Firebug.
2011/10/28 Andre Terra
I'm sorry if I'm not understanding you, but regarding 2 and 3, if jQuery
isn't being loaded, shouldn't you be getting a 404 error for the
jquery-1.6.4.js file?
Cheers,
AT
On Fri, Oct 28, 2011 at 11:30 AM, Leonardo Giordani <
giordani.leona...@gmail.com> wrote:
> Hi, thank you for your detailed
Hi, thank you for your detailed answer.
1. I'm on Django 1.3 (1.3.0-final). I'll take a look at staticfiles
for sure, thanks.
2. I'm getting no errors at all, other JS files in that directory load
perfectly. Firefox can reach them in source view.
3. I'll try it, but it seems to me strange not
Hello, Leonardo
First, which django version are you using? I recommend using the contrib
staticfiles app to handle your static files [1]. Once you get the hang of
it, it will pay off.
Second, see that you aren't getting 404 errors in the js URL. Using the dev
server, you can easily read through
Hi all,
I'm trying to add a bit of jQuery to a page in a Django site. It seems
that my jQuery scripts are simply not loaded, while JS scripts work
perfectly.
Evan Firebug does not see the jQuery file as loaded.
This is what I do in base.html
{% block javascript %}{%
7 matches
Mail list logo