Welcome Guest, Not a member yet? Register   Sign In
google map app help (again)
#4

[eluser]John_Betong[/eluser]
[quote author="boony" date="1254707414"]Hi,

Yep, I finally realised that this is an AJAX problem (doh!! And they say I'm slow he he). I figure that I needed to get my hands dirty with some JQuery and CI integration..

Hopefully, this will be resolved soon (has to be I'm already 3 days late on the deliverable but hey who's counting)[/quote]
 
I am not familiar with JavaScript but if it was my code I would try and do the concatanation in CI. After the string is built then test it by echoing or calling the URL, when it is OK then try and pass the single URL through to the JavaScript.
 
Also I would remove the short-tag and replace with '<'?php echo ... ?'>'
Code:
<?php
...
...
...
$this->load->helper('url'); // just in case

$url = site_url('mapapp/test_form')
      . '/fname/'
      . 'fname'
      . '/lat/'
      .  latlng.lat()
      . '/lng/'
      .  latlng.lng();
echo $url;

?>
<script type='text/javascript'>

  var url = "<?php echo $url ?>;

</script>
 
 
edit: spelling, etc
 


Messages In This Thread
google map app help (again) - by El Forum - 09-30-2009, 05:33 PM
google map app help (again) - by El Forum - 10-04-2009, 12:02 PM
google map app help (again) - by El Forum - 10-04-2009, 02:50 PM
google map app help (again) - by El Forum - 10-04-2009, 06:27 PM
google map app help (again) - by El Forum - 10-05-2009, 12:11 AM
google map app help (again) - by El Forum - 10-05-2009, 12:26 AM
google map app help (again) - by El Forum - 10-05-2009, 12:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB