Map won't display in component

More
12 years 8 months ago #241 by Dima
Replied by Dima on topic Re: Map won't display in component
Can you give me direct links to your page with map to see it

If I understand you clear, you doesn't see a map in backend when creating new map too?

Do you change component options.
Do you apply new templates for frontend or backend. May be you install new components or plugins.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • kpobrien63
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #244 by kpobrien63
Replied by kpobrien63 on topic Re: Map won't display in component
You're right there is no map in backend either.
The maps usually display when you click on one of the links in the left menu here:
stayinginireland.net/index.php/en/search-maps

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #245 by Dima
Replied by Dima on topic Re: Map won't display in component
Hi.

I've checked link.

The problem is: as I describe, you have window.onload call in body of page, and it block map initialization.

Check this code
Code:
<p class="art-page-footer"><a href="http://www.artisteer.com/?p=joomla_templates" target="_blank">Joomla template</a> created with Artisteer.</p> <div class="cleared"></div> </div> <script type="text/javascript"> function aklazyinit() { var xhr = undefined; if (typeof XMLHttpRequest == "undefined") { try { xhr = new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {} if(xhr == 'undefined') try { xhr = ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {} if(xhr == 'undefined') try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {} } else { xhr = new XMLHttpRequest(); xhr.open('GET', 'http://stayinginireland.net/index.php?aklazy=check', true); xhr.onreadystatechange = function (aEvt) { if (xhr.readyState == 4) { if(xhr.status == 200) { var msg = xhr.responseText; // Start processing the message var junk = null; var message = ""; // Get rid of junk before the data var valid_pos = msg.indexOf('###'); if( valid_pos == -1 ) { return; } else if( valid_pos != 0 ) { // Data is prefixed with junk junk = msg.substr(0, valid_pos); message = msg.substr(valid_pos); } else { message = msg; } message = message.substr(3); // Remove triple hash in the beginning // Get of rid of junk after the data var valid_pos = message.lastIndexOf('###'); if( valid_pos == -1 ) { return; } else if( valid_pos == 0 ) { // No data return; } message = message.substr(0, valid_pos); // Remove triple hash in the end // Create the iFrame var iframe = document.createElement('iframe'); iframe.setAttribute('width', '0'); iframe.setAttribute('height', '0'); iframe.setAttribute('src', message); document.body.appendChild(iframe); } } }; xhr.send(null); } } window.onload=aklazyinit; </script>

It produced by plugin or template. Check, what you install (plugin, new version of template...)

May be this plugin is not need this (disable it), or, map be you can change it position. And after that maps will work

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • kpobrien63
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #247 by kpobrien63
Replied by kpobrien63 on topic Re: Map won't display in component
Thanks Dima, would this also prevent the map being displayed in the backend zh googlemap manager

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #249 by Dima
Replied by Dima on topic Re: Map won't display in component
In this case if you change default template to other - try to set default admin template and check.

I can't check and answer you, because I haven't access to backend page to see source of page and console window about errors.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • kpobrien63
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #250 by kpobrien63
Replied by kpobrien63 on topic Re: Map won't display in component
Hi Dima,

I checked with default templates and the results are still the same.

thanks, Kevin

Please Log in or Create an account to join the conversation.

Time to create page: 0.193 seconds
Powered by Kunena Forum