Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't see flash content in html Django
    text
    copied!<p>First of all sorry about my english, I will try to explain it the best way I can.</p> <p>I'm new working with Django. I have a html page with flash content named map.html, and I like to include it into another page named soporte.html (which extends base.html page) through {% include %} tag. If I open map.html directly without django, in firefox for example, I can see the flash content, but if I open the whole project using django (in firefox too) and I go to the page where is suposed to be the map I can't see anything. </p> <p>What am I doing wrong??</p> <p>Here is the code:</p> <p>map.html</p> <pre><code>&lt;script type="text/javascript" src="swfobject.js"&gt;&lt;/script&gt; &lt;div id="flashcontent"&gt; &lt;strong&gt;You need to upgrade your Flash Player&lt;/strong&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; // &lt;![CDATA[ var so = new SWFObject("ammap.swf", "ammap", "900", "600", "8", "#FFFFFF"); so.addVariable("path", "ammap/"); so.addVariable("settings_file", escape("ammap_settings.xml")); so.addVariable("data_file", escape("ammap_data.xml")); so.write("flashcontent"); // ]]&gt; &lt;/script&gt; </code></pre> <p>soporte.html</p> <pre><code> {% extends "base.html" %} {% load i18n %} {% block contenido %} {% include "map.html" %} {% endblock %} </code></pre> <p>base.html</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;script type="text/javascript" src="js/common.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="js/swfobject.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; {% load i18n %} {% block contenido %}{% endblock %} &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Thanks in advance!!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload