Jump to content

ajax error


jahlxx

Recommended Posts

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;
 

Link to comment
Share on other sites

  • 7 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...