Hello!
Please Help:
I’m trying to build simple off-line Dictionary app for Iphone. I have MobiOne DC Version 2.1.0 Preview.
As an example I used temperature converter (find at how-too section) and turned it into simple dictionary. You can put a value (word) in one field and it gives you result in another.
The JS logic is here:
function f2c () {
var a = ($(‘#m1-tempconvert-farenheitInput’).val());
var b = ($(‘#m1-tempconvert-celciusInput’).val());
if ( a == ‘1’) { b = ‘1111111111’; }
else if ( a == ‘2’) { b = ‘2222222222’; }
else if ( a == ‘3’) { b = ‘3333333’; }
update(a,b);
}
This example works just FINE until I try to load more data. As soon as I try to populate it and paste in the cycle more than 2000 values it stops working!
Debugger gives an error in the middle of nowhere and says:
…..
else if (a == “1665”) { b = “1849815”; }
SyntaxError: Parse error
else if (a == “1666”) { b = “1850926”; }…..
Could you please help me figure out what should I do? and how can I fix the problem?
Kind regards
Dmitry