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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...