Page 1 of 1

displaying map code at top of page

Posted: 21 Mar 2011, 06:43
by dawemmy
Hi there!
newbie here.
I am running joomla 1.5.2 the site is currently local but nearly ready to launch. Just need to add maps. Running K2 and rocketheme. The markers and map displays but at the top just under the body tag there is map code that displays in the frontend too.
0) { var phocaLatLngPlgPM1 = new google.maps.LatLng(13.719725768762425, 100.51393032073975); var phocaOptionsPlgPM1 = { zoom: 13, center: phocaLatLngPlgPM1, mapTypeControl: true, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DEFAULT, position: google.maps.ControlPosition.BOTTOM_RIGHT }, navigationControl:…" />
i only have 2 maps created and 2 markers.

I have tried disabling many different modules plugins and set the default template to rhuk milkyway but the code still displays. I don't think it's the theme, it could be k2 but all my content is in k2. :x
So I really am stuck. Like I said the map does display in the article but in addition the above code also displays.
Any suggestions?
Any suggestions?

Re: displaying map code at top of page

Posted: 22 Mar 2011, 16:35
by dawemmy
So no one has seen this kind of problem. It is truly persistent. The coding at the top looks terrible and unprofessional so I can't just let it slide... so do I uninstall and look for another component?

Re: displaying map code at top of page

Posted: 23 Mar 2011, 20:14
by muhad
You have probably problem with jscript. Editor (ie. tinymce) clears code: ie <script>
You can try to remove "script" from black list in tinymce.
or
put map in iframe.