The problem that I see right off the bat is that you didn't include  
the outside files that are needed to run the LocalSearch control.  
Namely, you need to load the Search API and google.maps.LocalSearch  
js.  You need to add the proper script elements into your code before  
you can call new google.maps.LocalSearch():

<!-- Load the search api -->
<script type="text/javascript" 
src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-msw 
"></script>
<!-- Load the gmlocalsearch -->
<script type="text/javascript" 
src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js 
"></script>

You also need to import the CSS by including something like this:

<link rel="stylesheet" type="text/css" 
src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css 
"/>
<link rel="stylesheet" type="text/css" 
src="http://www.google.com/uds/css/gsearch.css 
"/>

There may be other things that need to be done, but this is at least a  
start.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
[email protected]

Unless otherwise noted, any price quotes contained within this  
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights  
Wesleyan Church!

And check out my blog, Adventures in Web Development, at 
http://jgeerdes.blogspot.com 
  !


On Apr 3, 2009, at 3:06 AM, [email protected] wrote:

>
> Hello,
>
> I am fighting debugging probably a syntax error in the script I have  
> used
> for the following map
>
> http://www.serate-italiane.dk/phpsqlajax_map.htm
>
> It is supposed to vosualize some markers which I generate reading data
> from the database.
>
> I cannot find out where the error is. It used to work.
> Any hints in general on how I can debug such errors?
>
>
> while ($row = @mysql_fetch_assoc($result)){
>  // ADD TO XML DOCUMENT NODE
>  echo '<marker ';
>  echo 'name="' . parseToXML($row['pagina']) . '" ';
>  echo 'address="' . parseToXML($row['address']) . '" ';
>  echo 'giorno="' . parseToXML($row['giorno']) ." ".
> parseToXML($row['mese']). " ". parseToXML($row['anno']).  '" ';
>  echo 'lat="' . $row['lat'] . '" ';
>  echo 'lng="' . $row['lng'] . '" ';
>  echo 'type="' . $row['type'] . '" ';
>  echo '/>';
> }
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to