1
0

Use functions (not global variables) for protocol and base_url

This commit is contained in:
2014-01-24 22:44:19 -05:00
parent 98e62cf748
commit 0bcbf328da
24 changed files with 55 additions and 53 deletions

View File

@ -14,7 +14,7 @@ include("../header_top.php");
but didn't cover many cases (example: gradient transformations). Therefore, if you wanted to use existing SVG
files with dojox.gfx, you had to convert the file by hand. This was extremely tedious, so I have developed a converter tool
with which you may convert existing SVG files into Javascript code ready to be used with dojox.gfx. If you have any comments or
suggestions for improvement, feel free to <a href="<?php echo $base_url; ?>/contact">contact me</a>.</p>
suggestions for improvement, feel free to <a href="<?php echo get_base_url(); ?>/contact">contact me</a>.</p>
<fieldset style="border: solid black 1px;padding: 1em;"><legend>SVG (XML)</legend>
<textarea id="input" rows="10" style="width: 100%" wrap="off"></textarea>
<button onclick="submit()">Convert To Javascript</button>
@ -26,7 +26,7 @@ include("../header_top.php");
function submit(){
var data = dojo.byId("input").value;
dojo.rawXhrPost({
url: "<?php echo $base_url; ?>/svgparser/parser/index.php",
url: "<?php echo get_base_url(); ?>/svgparser/parser/index.php",
handleAs: "text",
postData: data,