Jump to content

Live Map iFrame Not Working


heyitsomarrr

Recommended Posts

Hi,

This may be a dumb question (and I'm really new to code') but how would I go about using an iFrame to display my live map on an external page?

I tried using this:

<iframe id="mymap" name="mymap" src="http://crew.panamvirtual.org/index.php/acars" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="650px" scrolling="no"></iframe>

But when I tried to load the page, the spot where it was supposed to be was just blank. Any suggestions?

Link to comment
Share on other sites

  • Moderators

I checked the console log and I can see that error:

Load denied by X-Frame-Options: http://fsxccvirtual.com/index.php/acars does not permit cross-origin framing.

Check this for more information: https://stackoverflow.com/questions/38699221/load-denied-by-x-frame-options-does-not-permit-framing

I believe that it has to do with your web hosting provider's settings.

Link to comment
Share on other sites

Suggest going to the Admin CP, and copy the text/script into a created page via "Add Page" in the admin panel, from the acars.php file. Name the page anything you'd like, (example; Myacars or SiteAcars ). this creates a formatted page in htm or html depending on how you have config files setup from the core. From there you can embed the created page you have created in the Main layout.php file or the frontpage_main.php file with the <iframe> script. As mentioned above, you Can't cross reference directly the framing from the actual script. This is the ONLY way to do so. And remember one Major important thing in messing with any Main scripts. ALWAYS make a backup COPY ! Hope this helps you.

Jim

Link to comment
Share on other sites

The issue is the main website is not created by phpvms. I have a subdomain for the crew center running phpvms. I am trying to iframe the subdomain onto the main site. I contacted my hosting service and they asked me to contact a phpvms web developer to tell them what the server-side requirements are. Any ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...