On May 28, 8:32 pm, donovan78 <[email protected]> wrote:
> Hi,   I  have  been  try   to  load  markers  with  infowindows
> displaying  some  MySQL  database  items  and  the  output  of
> source  code   shows  all   these  items  loaded   however  any
> browser  not  displays  the  google  map   and  Firebug    returns
> this  error :
> missing ) after argument 
> listhttp://trekhotel.com/bina/html/track1.php?route=52
> Line 331

>  I  don't  know  if  this  error   showing   PHP  syntax  error   or
> Javascript error.

If the browser (Firebug) is reporting it, it's not a server error:
it's a Javascript error. It's to do with apostrophes here:
...onclick='CB_Open("href=\'http:...

What you may need to do is not
   <?php
  echo "var marker = ...
  ?>
but use the abbreviated PHP echo for *just* the parts that require it:
  var marker = createMarker(point, '<div id="infowindow">...
  <a href="<?=addslashes($row['5'])?>" ...
which may help keep the quoting in order.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to