You probably need to play with the parameters passed into the marker object
to ensure that they are tied out between where the obj. is being defined and
then called. etc..  In other words.  look for all code calling the marker
and check the params being passed in are tied out...unless I'm
misunderstanding the issue....

k

On Thu, Apr 8, 2010 at 8:51 PM, Eric <[email protected]> wrote:

> Ok, nevermind.  I added a "var id = markers[i].getAttribute('id');"
> just above that code and it's working now...except it's returning a
> "null" for id...
>
> On Apr 8, 10:32 pm, Eric <[email protected]> wrote:
> > Thanks for the response... However, now the search does not work...
> > I've triple checked the code and everything seems to be in place, it
> > just doesn't return any results (it doesn't even return a "no results
> > found"... Is there anything I need to change in the genxml.php file?
> > I tried adding a $newnode for id but nothing seems to help...
> >
> > On Apr 8, 11:31 am, Karen Windus <[email protected]> wrote:
> >
> >
> >
> > > This is how I did it for some basic info with a link that I built from
> my
> > > XML file...granted, this was built just before the release of v3 API,
> but
> > > I'm thinking that it should still work.  If it doesn't, let me know.
>  It
> > > would be nice to know what I need to do to upgrade parts of my code
> from 2.5
> > > to 3.0...
> >
> > > var marker = createMarker(point, name, address, city, state, zip,
> rooms,
> > > id);
> > >          //alert(markers.length);
> > >          map.addOverlay(marker);
> > >          var sidebarEntry = createSidebarEntry(marker, name, address,
> city,
> > > state, zip, rooms, distance);
> > >          sidebar.appendChild(sidebarEntry);
> > >          bounds.extend(point);
> > >        }
> > >        map.setCenter(bounds.getCenter(),
> map.getBoundsZoomLevel(bounds));
> > >      });
> > >    }
> >
> > >     function createMarker(point, name, address, city, state, zip,
> rooms, id)
> > > {
> > >       var marker = new GMarker(point);
> > >       var html = '<b>' + name + '</b> <br/>' + address + '<br/>' + city
> +
> > > ',&nbsp;&nbsp;' + state + ',&nbsp;&nbsp;' + zip + '<br/><b><font
> > > color="red">Number of rooms:</font>&nbsp;' + beds + '</b><br/><a
> > > href=localhost/member.php?id=' + id + '>Profile</a>';
> > >       GEvent.addListener(marker, 'click', function() {
> > >         marker.openInfoWindowHtml(html);
> > >       });
> > >       return marker;
> > >     }
> >
> > > That should be the code to answer your question I hope.  If not or if I
> > > misread your question let me know...
> >
> > > Best of luck,
> >
> > > Karen
> >
> > > On Thu, Apr 8, 2010 at 9:21 AM, Eric <[email protected]> wrote:
> > > > My test site is
> > > >http://www.byebyewithbaby.com/test3.php. I have searched but haven't
> > > > found any answers on this...
> >
> > > > I used the tutorial at
> > > >http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html
> > > > for the code to this search.
> >
> > > > I have a page (http://www.byebyewithbaby.com/locations.php) that,
> > > > when
> > > > passed a "location_number" (ie locations.php?&location_number=[id
> > > > goes
> > > > here]) it will dynamically display more details on the entry for that
> > > > particular id number (which is in $row[0]).
> >
> > > > What code would I enter (and where would I enter it - I'm assuming in
> > > > the "function createMarker" area) to have it display a
> > > > link of "<a href='http://www.byebyewithbaby.com/locations.php?
> > > > &location_number=".$row[0]."'>Click Here for More Info</a>"?
> >
> > > > --
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "Google Maps JavaScript API v3" group.
> > > > To post to this group, send email to
> > > > [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B
> [email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to