Use functions (not global variables) for protocol and base_url
This commit is contained in:
@ -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,
|
||||
|
||||
|
Reference in New Issue
Block a user