Ok I found it! I used href="..." instead of "src=...". I am very sorry Thx all anyway, it taught me some other things;)
On 14 fév, 17:58, arbi <arbin...@gmail.com> wrote: > I still can't find the pb. > My js file looks like that : > > function hello() > { > alert('hello'); > > } > > do I need to add a : {% block reference %} {%endblock %} in this js > file, and the same in my html file? What I can't understand, is that > my paths are right and my css works... > > On 14 fév, 01:18, felix <crucialfe...@gmail.com> wrote: > > > actually if you've got firebug on it won't cache at all. > > it will check if for "not modified" headers and reuse if the server says its > > not modified. > > > the worst thing is that firefox is very slow with all the gadgets turned on. > > I use safari + firefox at the same time. just safari for speed. > > > so arbi - > > > its a 404, you're path is wrong on the script tag. > > > you can always copy the js URL out of the html source and try to load the js > > directly and try different paths till you find it. > > > On Fri, Feb 13, 2009 at 11:10 PM, Briel <toppe...@gmail.com> wrote: > > > > Firefox is known to cashe things a lot, this might be the reason why > > > it doesn't load all the stuff. Also you should look at the page source > > > to see if the missing js file is listet. > > > > On 13 Feb., 21:14, arbi <arbin...@gmail.com> wrote: > > > > Ok I tryed it, and they say : "test.js is not loaded" in firebug. > > > > I don't see what to do next. What is strange also is that my > > > > background-body images are loaded on safari (no pb) and not on > > > > firefox... > > > > Any solution? > > > > thx > > > > > On 13 fév, 18:19, felix <crucialfe...@gmail.com> wrote: > > > > > > use Firefox with Firebug installed if you aren't already. > > > > > > you can then see if you get any 404s and if any of the included files > > > failed > > > > > with syntax errors > > > > > or if something happened during javascript runtime to kill it > > > > > > also, I like django-compress quite a bit for css and js > > > > > > felix : crucial-systems.com > > > > > > On Fri, Feb 13, 2009 at 6:11 PM, arbi <arbin...@gmail.com> wrote: > > > > > > > Thx, but I did this already. In fact i have no problem for a css > > > > > > doc, > > > > > > but problems for a js doc. I don't know why! > > > > > > My css is in "/media/css/css_file.css" and my js is in "/media/js/ > > > > > > test.js". A simple "alert" in my test.js file doesn't work. I don't > > > > > > understand. > > > > > > Any help? > > > > > > Thx! > > > > > > Arbi > > > > > > > On 12 fév, 23:29, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > > > > > On Thu, Feb 12, 2009 at 5:28 PM, arbi <arbin...@gmail.com> wrote: > > > > > > > > > Hi all, > > > > > > > > > I am trying to execute a javascript doc to display a google map. > > > The > > > > > > > > javascript doc to refer to is "google-map.js". How do I write it > > > in > > > > > > > > here ? : > > > > > > > > TEMPLATE : > > > > > > > > <script src="/what/path/to/use/google-map.js" > > > type="text/javascript"> > > > > > > > > </script>. > > > > > > > > > I tryed many things and it did not work! I read many things, but > > > I > > > > > > > > can't figure out how to solve this pb. > > > > > > > > Is there an easy solution? > > > > > > > > > Thx a lot for your help > > > > > > > > Arbi (newb) > > > > > > > > Take a look here: > > > > > >http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs > > > > > > > > Alex > > > > > > > > -- > > > > > > > "I disapprove of what you say, but I will defend to the death your > > > right > > > > > > to > > > > > > > say it." --Voltaire > > > > > > > "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---