0 Replies Latest reply on Jun 14, 2011 10:01 AM by Arul pugazh

    Google Maps API for Flex : HTML content in InfoWindow

    Arul pugazh

      In my component , when an Overlay is clicked , it will show an InfoWindow .


      I want that InfoWindow to contain labels, text inputs and a button .


      For this i have modified as: ( this is an example in Google's site for javascript )


      My Code :


      var html_content:String = "<table>" +
                      "<tr><td>Name:</td> <td><input type='text' id='name'/> </td> </tr>" +
                      "<tr><td>Address:</td> <td><input type='text' id='address'/></td> </tr>" +
                      "<tr><td>Type:</td> <td><select id='type'>" +
                      "<option value='bar' SELECTED>bar</option>" +
                      "<option value='restaurant'>restaurant</option>" +
                      "</select> </td></tr>" +
                      "<tr><td></td><td><input type='button' value='Save & Close' onclick='saveData()'/></td></tr></table>";


      In the InfoWindow it shows like this :




      I want this to be as : ( the google example )





      You can find that example here


      Why do the InputBoxes and Button don't show up ( the table ? ) .....