jahlxx Posted September 14, 2016 Posted September 14, 2016 Hi. I've a problem with this piece of code. It raise an ajax error like this: ajax error missing : after property id. this is the piece of code. thanks for your help: script := script + ' var vertices = ['; qp.first; while not qp.eof do begin script := script + '{lat: ' + floattostr(qp.fieldbyname('latitud').asfloat) + ', lng: ' + floattostr(qp.fieldbyname('longitud').asfloat) + '},'; qp.next; end; // le quito la ultima coma script := copy(script, 0, length(script)-1); script := script + ' ]; ' + 'var poligono = new google.maps.Polygon({' + 'map: googleMap,' + 'paths: vertices,' + 'strokeColor: ''#FF0000'',' + 'strokeOpacity: 0.8,' + 'strokeWeight: 3,' + 'fillColor: ''#86CD31'',' + 'fillOpacity: 0.35' + '});'; end; Quote
Sherzod Posted September 14, 2016 Posted September 14, 2016 Hi, It would be nice, if there you will show us result of the "script" Best regards. Quote
Sherzod Posted September 14, 2016 Posted September 14, 2016 It can be a problem: floattostr(qp.fieldbyname('latitud').asfloat in decimal point... Quote
jahlxx Posted September 14, 2016 Author Posted September 14, 2016 OK. In one test, in standalone server works, but not in isapi module. thanks. Quote
jahlxx Posted September 14, 2016 Author Posted September 14, 2016 thanks delphi developer. you were right. Quote
araujoadanr Posted May 4, 2017 Posted May 4, 2017 Someone could help me, I may be doing wrong, copy the example of UniGUI, but I can not find my error. Quote
Sherzod Posted May 4, 2017 Posted May 4, 2017 Hi, Have you tested with \FMSoft\Framework\uniGUI\Demos\Desktop\GoogleMaps ? Works for you ?! Best regards, Quote
araujoadanr Posted May 5, 2017 Posted May 5, 2017 If it works, in fact copy the example, for now disable ajax alerts while I investigate that I may have been wrong. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.