Thanks for the answer.

I'm not using ajax (yet) but I figured out how to solve the problem.
So there's no problem anymore.

On Mar 1, 2:17 am, pete <[email protected]> wrote:
> Can you please elaborate on the error that occurs.
>
> Could it be that at time of infoWindow creation your "link" variable
> doesn't exist? i.e. are you using AJAX to retrieve this variable?
>
> Pete
>
> On Feb 26, 9:24 pm, Mig <[email protected]> wrote:
>
> > Hello
>
> > Sorry, but I haven't deployed my application yet so I can't give an
> > url to the project.
>
> > But my problem is that I can't seem to figure out how to write a
> > hyperlink (to a file on the server) inside the string of content in an
> > infowindow. I've tested that the infowindow itself works but when I
> > add some code to generate the link and error occours.
>
> > The application is hosted in JSP.
>
> > This is the line of code that's producing the problem:
> > out.print("content: \"Description:" +
> > getDescription(rs3.getString("latitude"), rs3.getString("longitude"))
> > + " PDF: "+<a href='"+link+"'>Get</a>+"\n");
>
> > The "link" is generated from the latitude and the longitude from
> > mysql. That part is tested too and the file is there.
>
> > To sum it up: I would like to dynamically generate a link to a file on
> > the server and insert the link into the content of the infowindow.
>
> > Thankyou in advance!

-- 
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