How to list data,data separated by "|"
1.AJAX Request url (tag="ReadData")
2.AJAX on "ReadData" completed
3.TextBox set text to AJAX.LastData
Can appear 10|20|30|
How to make him
10
20
30
Develop games in your browser. Powerful, performant & highly capable.
You can do like this:
REPEAT tokencount(AJAX.LastData, "|") => Text Append text: tokenat(AJAX.LastData, loopindex, "|") & newline & newline
Thanks for your teaching
I do it this way
This is I do after the this
The contents of the PHP file
header("Access-Control-Allow-Origin: *"); echo "10|20|30|";
Still something wrong, how to deal with it?
thank
Put the REPEAT as sub-event of On load completed AJAX.
Set your text to "" before Append new text.
is ok
thx. ^^