﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11361	Using javascript in Django	WilsonOfCanada	nobody	"Hello ppl,

I am trying to use javascript in the html for an ""onChange"" event; however, anything enclosed between the script tags are excluded.  Now I am wondering if I am missing something or the path in url.py or Django does not support javascript at all.  

Thanks

html
{{{
{% extends ""Basic.html"" %}

{% block body %}

<form action=""/Results/"" method =""post"">

<div id=""formSite"">
	<div id=""navBar"">

	</div>

	<div id=""mainCol"">

		<script language=""JavaScript"" type=""text/javascript"" src=""/site_media/js/foo.js"">

			<label for=""selectCountry"">Select Country: </label>
			<select name=""selectCountry"" id=""selectCountry"" onChange=""changeProvince()"">
				<option value=""Canada"" selected=""selected"">Canada</option>

				<option value=""US"">United States</option>
				<option value=""France"">France</option>
			</select>

			<input type=""submit"" value=""Select""><br/>
		</script>

	</div>

</div>

</form>

{% endblock %}
}}}

urls.py
{{{
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'C:\\ ... \\media\\'}),
}}}

(The images and css files work)"		closed	Forms	dev		invalid	Javascript, HTML		Unreviewed	0	0	0	0	0	0
