Hey Hermann - post title changed
That's really handy to know for the alerts - I just assumed answer was answer!
I did some digging around though and something weird is happening - I decided to try changing the text of a field when it gets to a certain point in the code to see where exactly it's failing. I have this code:
Code: Select all
do "var g=" & sudoku4JS & ";var r=solve_sudoku(g);liveCode.JSresult(g," & T0 & ");" in widget "Browser"
Which, if I've understood this right, runs the javascript code at the beginning and then runs the JSresult command in LC. I've put the changing text for my field in my JSresult command, as so:
Code: Select all
command JSresult gridR,T0
set the text of field "TestLabel" to "HELLO!"
DrawSolution gridR
end JSresult
(I just got rid of the code with the T0, but it shouldn't make a difference if it's not being used yet, right?)
On my computer, after pressing my solve button, TestLabel's text changes to HELLO!, but on mobile it doesn't! That said, I've put another "set the text" thing just before the first bit of code (and just after for testing purposes), and *both* work on my mobile! It gets to that stage, and for some reason just doesn't get to the JSresult bit at all?
I feel like I'm staring into a wall and the answer is super simple, but I just can't see it