Working for firefox

This commit is contained in:
saksham1115 2016-06-14 15:27:11 +00:00
parent 7cf96b8e6d
commit 92497b7af6

View File

@ -20,15 +20,18 @@
#}
<script>
$(document).ready(function() {
$(".loadSubtitle").load("{{ path }}");
});
</script>
{% extends "mediagoblin/base.html" %}
{% block mediagoblin_content %}
<p>{{ path }}</p>
<textarea id="loadSubtitle" style="width:512px;height:256px"></textarea>
<textarea id="test" style="width:100%;height:600px"></textarea>
<script>
var xmlhttp, text;
xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', '{{ path }}', false);
xmlhttp.send();
text = xmlhttp.responseText;
document.getElementById('test').value = text;
</script>
{% endblock %}