Wednesday, May 16, 2012

Re: Problem with Jquery over Django

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 this. You will need to do a lot of reading, and it will take a while to get it set up properly, but it will save you time in the long run. (This really is the easy way.)

On Wednesday, May 16, 2012 11:56:00 AM UTC-4, Amr Abdel-wahab wrote:
That's an example of a code, this exact file works fine if I just
double clicked it, but if when I render that HTML from a django view
the java scripts stops, This is really odd because the same exact file
runs out side the project if I just double clicked it as a HTML file,
but if I just try to open it from inside the scripts stops

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
        <head>
                <title></title>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
>
                <script type="text/javascript" src="swfobject.js"></script>
                <script type="text/javascript">
                        var flashvars = {};
                        var params = {};
                        var attributes = {};
                        attributes.id = "myId";
                        swfobject.embedSWF("/home/amr/STIP/media/MCCdirnum_2.swf",
"myAlternativeContent", "800", "600", "9.0.0", false, flashvars,
params, attributes);
                </script>
        </head>
        <body>
                <div id="myAlternativeContent">
                        <a href="http://www.adobe.com/go/getflashplayer">
                                <img src="http://www.adobe.com/images/shared/download_buttons/
get_flash_player.gif
" alt="Get Adobe Flash player" />
                        </a>
                </div>
        </body>
</html>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/lIBKi3uvwVMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate