Malor's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
6 (0.01 per day)
Joined:
19-April 12
Profile Views:
379
Last Active:
User is offline Jul 11 2013 04:20 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Malor has not set their status

Posts I've Made

  1. In Topic: insert javascript prompt to cartodb

    Posted 14 Nov 2012

    View PostDormilich, on 14 November 2012 - 04:58 AM, said:

    but since it is a GET parameter, Javascript is not responsible for DB insertion. the API is.


    so what i have to do ?
  2. In Topic: insert javascript prompt to cartodb

    Posted 14 Nov 2012

    api from cartodb,, cartodb is almost the same as google maps..

    function createMarker(latLng) {
        var 
        lat = latLng.lat(),
        lng = latLng.lng();
    	console.log("add");
        var url = "http://malor.cartodb.com/api/v2/sql?q=INSERT%20INTO%20poi(the_geom)%20VALUES(%20ST_GeomFromText('POINT("+lng+"%20"+lat+")',%204326));&api_key=c24515e9aa959efe4ca69195dcb502d332f392fc";
        console.log(url);
    	console.log($.getJSON(url, function(){ alert('data stored in database!') }));
    


    this is also a code in my script.. but that's working.. so..

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Malor hasn't added any friends yet.

Comments

Malor has no profile comments yet. Why not say hello?