Welcome Guest, Not a member yet? Register   Sign In
google map app help
#3

[eluser]boony[/eluser]
Quote:Of course you'll need to change 'phpsqlinfo_addrow.php' to the name of the controller/method in your CI app

You can then use $this->uri->uri_to_assoc(n) to return the segement as an associative array of key/value pairs.
Hope that helps!

Thanks eoinmcg,

I've been playing with this for hours and am now totally confused ( wots new I hear Sick).

I'm trying to get back to the controller and am using this (which doesn't seem to work)
Code:
var url = "<?=site_url('mapapp/test_form'); ?>/fname/" + fname + "/lat/" + latlng.lat() + "/lng/" + latlng.lng();


Does that look ok?

Also, I suspect there may be a problem in getting the JavaScript onclick to work. This is the script that is supposed to get the marker position...does CI need to do this differently???

Code:
var map = new google.maps.Map(document.getElementById("map_canvas"), options);
      var html = "<table>" +
                 "<tr><td>Name:</td> <td>&lt;input type='text' id='fname'/&gt; </td> </tr>" +
                   "<tr><td></td><td>&lt;input type='button' value='Save & Close'&gt;&lt;/td></tr>";
      infowindow = new google.maps.InfoWindow({
     content: html
    });


Messages In This Thread
google map app help - by El Forum - 09-29-2009, 04:05 AM
google map app help - by El Forum - 09-29-2009, 05:13 AM
google map app help - by El Forum - 09-29-2009, 11:54 PM
google map app help - by El Forum - 09-30-2009, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB