On Oct 24, 2:22 pm, Am <am2...@gmail.com> wrote:
> Thank you for the advice. I believe I have everything defined, but came
> across other issues. I'm still getting an undefined message on top of the
> properties that do show up. If you search for San Fransisco, 3 properties
> are listed in the sidebar, along with the undefined message.
> I am aware of the wrong points; I'm trying to fix those now. Is that what is
> causing my issue?

No. You are getting the undefined because your initial creation of
"sidebarInfo" doesn't assign it a value:
        var sidebarInfo;
Then when you do this:
           sidebarInfo += html;
          // add this line after the html var declaration:
          document.getElementById("sidebar").innerHTML=sidebarInfo;

it becomes "undefined"+ the value of html.

Change the initial definition to :
        var sidebarInfo = "";

And it should go away.

  -- Larry

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to