How can I split up xmlhttp.responseText I receive from a database select row by row?
My database layout contains 3 columns which I want to hand over to a function.
This is what the responsetext looks like:
75px, 218px, foo, 12px, 13px, bar, 27px, 37px, bla
The function should be called:
myfunction(75px, 218px, foo)
and so on.
Can anybody show me an example code?
You can “split” the text on the commas:
edit to actually call the “trim” function I took the trouble to include 🙂