> on this line: class='twitter-share-button' data-url='"

The problem code is
   + "<a href='http://twitter.com/share'
      class='twitter-share-button' data-url='"
To javascript, that is one string  - everything between the two " -
split over two lines.  Many browsers choke on that, the newline 'ends'
the string prematurely and so the browser tries to interpret the next
line as javascript and fails.
Avoid splitting strings over two lines, be especially careful when
copy/pasting others code.

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