Nevermind, I found out how to do it. I have been trying different
variations of the code below for so long and now it works!
I was missing the extra quotation marks (") on either side of the (+
nom +).
var html = "<table border=2 width=95% height=95%>" +
"<tr><td><b>Nom:</b></td> <td>" + nom + "</td> </tr>"
+
"<tr><td>Municipalité:</td> <td>" +
municipalite + "</td></tr>" +
"<tr><td>Secteur:</td> <td>" + secteur + "</td></tr>"
+
"<tr><td>Commentaires:</td> <td>" + commentaires + "</
td> </tr>" +
"<tr><td>Autres informations:</td> <td>" + autres +"</
td> </tr>";\
Thanks for trying to help though!
Pierre
On Aug 9, 11:18 am, "[email protected]" <[email protected]>
wrote:
> On Aug 9, 8:13 am, Pierre <[email protected]> wrote:
>
> > Sorry, my instructions weren't too clear. Click the checkbox named
> > "Afficher tous les commentaires" under the search button below the
> > map. You will then see all the markers that have been submitted. When
> > clicking on these markers, the information displayed is aligned to the
> > left. I would like to make clear tables.
>
> I saw that. I also saw that you have tables already in the submit
> infowindows.
>
> So my question was, what problem are you having putting them in the
> other place?
>
> Maybe you could give us a link to a map where you tried to format the
> data in those infowindows in a table and ran into trouble.
>
> -- Larry
>
>
>
> > On Aug 9, 11:08 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Aug 9, 7:49 am, Pierre <[email protected]> wrote:
>
> > > > Hi!
>
> > > > I am working on a website where I get users to submit their data into
> > > > my online database via a marker listener table. I then give users the
> > > > chance to view what others have submitted through info windows showing
> > > > certain fields of the initial table. You can see what I mean at the
> > > > following address.
>
> > > >http://pippin.geog.mcgill.ca/acton/manual/
>
> > > > I am wondering if it is possible to create a table in the info windows
> > > > which connect to my mysql database?
>
> > > It is.
>
> > > > I have tried creating tables using
> > > > HTML in the javascript for "var html =" but it doesn't seem to work.
>
> > > > Here is what is currently being called up!
>
> > > > var html = "<b>Nom:</b>" + nom + "<br/>" +
> > > > "<b>Municipalité:</b>" + municipalite + "<br/>" +
> > > > "<b>Secteur:</b>" + secteur + "<br/>" +
> > > > "<b>Commentaires:</b>" + commentaires + "<br/>" +
> > > > "<b>Autres informations:</b>" + autres;
>
> > > > I am looking for a more structured way of displaying each field and
> > > > result.Any pointers would be appreciated!
>
> > > What have you tried to create a table there? I see a table in the
> > > dblclick listener that seems to work just fine.
>
> > > -- Larry- Hide quoted text -
>
> > - Show quoted text -
>
>
--
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.