* SupAlpuket i can't add encoded new line (\n) in 'code'
block / builder tool
2014-04-09 00:27 · (0)
* Graham * SupAlpuket You can but you have to be using the full page code editor NOT the code blocks in the building tool it has to be the the full page code editor
I used this to test
<script>
var foo = "<pre>These\nare\nnewlines.</pre>";
  document.write(foo);
</script>

Copy code
and heres the output
http://graham99.xtgem.com/Anl
I am not sure if anything can be done for building tool code blocks but I will ask tomorrow
2014-04-09 01:04 (edited 2014-04-09 01:26 by Graham ) · (0)
* SupAlpuket * Graham yes, that i know, but my phone not agree to use full text editor :v
2014-04-09 09:19 · (0)
* Graham * SupAlpuket The staff have been informed and are looking in to it
a solution is to put your script into a plain text file with a .js extension and then use the "local file include" xt function to add it to the page
ie my_js.js and then "include" the file my_js.js (.js files are not parsed by the building tool)
building your page like this may be better for you anyway as it allows you to use smaller blocks that are easier to edit on a mobile
2014-04-09 09:43 (edited 2014-04-09 09:46 by Graham ) · (0)
* tiaxgame * Graham Can include file.xt by xt function (not used xtscript) ???
Ex: <xt:include url="domain.xtgem.com/file.xt" />
2014-04-09 10:52 (edited 2014-04-09 10:53 by tiaxgame ) · (0)
* Graham * tiaxgame Yes xt:include is not bothered about what extension a file has
The original problem should be fixed later today as soon as the production version is updated It was a old legacy code causing the issue and that has been removed
2014-04-09 11:11 · (0)
* tiaxgame * Graham oh! Can used xt function to "call functions" !? (no xtscript)
Ex: <xt:call function="pi" />

Print: "3.14xxxxx"
2014-04-09 12:26 · (0)
* tiaxgame * Graham oh! Can used xt function to "call functions" !? (no xtscript)
Ex: <xt:call function="pi" />

Print: "3.14xxxxx"
2014-04-09 12:26 · (0)

Online: Guests: 1