Buying Need someone who knows javascript, simple, will pay $30

Discussion in 'Programming' started by edual200, Oct 22, 2009.

  1. #1
    im trying to ouput some javascript variable into php

    Using google maps, the code below place.Point.coordinates[1] and place.Point.coordinates[0] are both the longitude and latitude values i need.

    I pretty much need to output those into something like this

    <script type="text/javascript" src="my.php?latitude=place.Point.coordinates[1]&longitude=place.Point.coordinates[0]"></script>


    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=mykey" type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    var geocoder;
    var map;
    var address = "1145 East Main Street, Salem, VA";
    function load()
    {
    map = new GMap2(document.getElementById("map"));
    geocoder = new GClientGeocoder();
    geocoder.getLocations(address, addToMap);
    }
    function addToMap(response)
    {
    place = response.Placemark[0];
    point = new GLatLng(place.Point.coordinates[1],
    place.Point.coordinates[0]);
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(point, 15);
    marker = new GMarker(point);
    map.addOverlay(marker);
    }
    //]]>
    </script>
     
    edual200, Oct 22, 2009 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 2
    #2
    I can do it for you. If you still need help.
     
    stephan2307, Oct 22, 2009 IP
  3. dpacmittal

    dpacmittal Well-Known Member

    Messages:
    155
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    I am up for this, if you still need help. My IM details on my profile.
     
    dpacmittal, Oct 22, 2009 IP
  4. edual200

    edual200 Active Member

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Job was complete, thanks for all who inquired
     
    edual200, Oct 22, 2009 IP