Okay everyone, it's now fixed!

I looked into my error logs when running the suggested code
modifications and I was getting a PHP Parse error:  syntax error,
unexpected T_STRING, expecting ',' or ';'   I did some investigating
and it turns out that the the code suggestions were correct except
that the ("head") part of the code needed to be escaped like (\"head
\")  Maybe I'm supposed to know this, but I'm a rookie.  It makes it
even harder to know this because when looking at source code examples
the escaped quotes do not get displayed.  This seems like it could be
a common mistake.

Here are the code examples that were offered early on in this thread,
but with escaped quotes added.  I tested each of them and they both
worked for me in all browsers, Chrome and Safari included  ;-)

document.getElementsByTagName(\"head\")[0].appendChild(script);
document.documentElement.getElementsByTagName(\"head\")[0].appendChild
(script);

Thanks for everyone's help.  Much appreciated.

On Sep 28, 5:58 pm, Rossko <[email protected]> wrote:
> > You're right it disappeared.  It looks like adding the new code stops
> > the server from reading the javascript and from continuing past it.
>
> I doubt it's quite like that, but clearly you need to look at why the
> php include fails silently. Maybe you have error reporting suppressed
> or something.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to