php - doctype error with googlemaps -


When I try to display googlemaps, then I'm having an error

if I Loading googlemaps javascript source

I get this error in firebug

  syntax error [break this error]  

I have to load this file

  & lt ;? Php if (isset ($ gmap))? & Gt; Script type = "text / javascript" src = " 

And here's how I set the variable

  $ key = 'my-api-key'; $ This- & gt; View->. Gmap = "http://maps.google.com/maps?file=api&v=2&key=" $ key. "& Amp; sensor = false"; $ This- & gt; View- & gt; Js_gmaptest = 'gmaptest.js';  

Is there something that can cause problems? I was working earlier on this but knew that I do not know now.

Thank you, Richard

Obviously this is a problem, but your document's The beginning should look like this:

  & lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 strict // n" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: v = "vase: schema-microsoft-com: vml" & gt;  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -