Re: Problem with Jquery over Django

2012-05-16 Thread Jon Paugh
Check out "How to handle static files" from this page: https://docs.djangoproject.com/en/1.4/#the-development-process. Also note that the links on this page can help answer a lot of the basic questions about Django for you. Django has a built-in app to handle static files, and cases such as thi

Re: Problem with Jquery over Django

2012-05-16 Thread Amr Abdel-wahab
Ok to solve that thing quickly for now I just copied the whole JS file into my HTML, another problem we're facing here is that I get the name of the file dynamically like the following swfobject.embedSWF("{{lecture.lectureFile}}", "myAlternativeContent", "800", "600", "9.0.0", false, flashvars, p

Re: Problem with Jquery over Django

2012-05-16 Thread Phang Mulianto
Hi You need understand the different between open the html directly in you browser with open it from a web server. Check your static file setting and load it, is it returning the js or not On May 17, 2012 12:18 AM, "Marcin Tustin" wrote: > Host your JS on your server, and use an absolute URL. T

Re: Problem with Jquery over Django

2012-05-16 Thread Marcin Tustin
Host your JS on your server, and use an absolute URL. This is what the STATIC_URL setting is for. On Wed, May 16, 2012 at 5:15 PM, Amr Abdel-wahab < amr.mohamed.abdelwa...@gmail.com> wrote: > Oh ok, then can you give me a solution? > > -- > You received this message because you are subscribed to

Re: Problem with Jquery over Django

2012-05-16 Thread Amr Abdel-wahab
And I am sorry for bothering you. -- 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 m

Re: Problem with Jquery over Django

2012-05-16 Thread Amr Abdel-wahab
Oh ok, then can you give me a solution? -- 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.

Re: Problem with Jquery over Django

2012-05-16 Thread Marcin Tustin
Once again: You have a relative url for your JS. This is expanded to a different location depending on where it is served from. This means that in one case, your browser can find the file on the filesystem, but in the other, it tries to pull it from your server. On Wed, May 16, 2012 at 5:03 PM,

Re: Problem with Jquery over Django

2012-05-16 Thread Amr Abdel-wahab
It just doesn't work if rendered but the same exact file does work if I opened it in a browser view -- 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 grou

Re: Problem with Jquery over Django

2012-05-16 Thread Amr Abdel-wahab
Man it's the same exact file, from the same directory and everything -- 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+