Wednesday, 15 June 2011

django url encode issue in using mathjax -



django url encode issue in using mathjax -

i wanna add together mathjax script template </script> <script type="text/javascript" src="{% static "mathjax-2.4-latest/mathjax.js?config=tex-ams_html-full.js" %}"></script>

but django encode '?' '%3f' , '=' '%3d'(in firefox console), wrong url. if utilize "http://cdn.mathjax.org/mathjax/latest/mathjax.js?config=tex-ams-mml_htmlormml" "src" attribution value, it's correct. , firefix console can show '?' , '=' correctly.

okay, solved problem myself. should place "?config=xxx" out of "%}". looks like

<script type="text/javascript" src="{% static "mathjax-2.4-latest/mathjax.js" %}?config=tex-ams_html-full"> </script>

django encode mathjax

No comments:

Post a Comment