1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need a hand for a second

Discussion in 'Styling and Customization Questions' started by DieselMinded, Feb 8, 2016.

  1. DieselMinded

    DieselMinded Active Member

    see

    http://www.mymilitia.com/pages/map/

    now click on ALABAMA

    i had to put the html of the map in an iframe to get it to show, I'm working on setting links for each state, the only one i have done is alabama.

    thing is the new links need to open in a new window or tab and they are opening inside the iframe

    i have tried adding _black _top eat to the link and it don't matter it still opens inside the iframe

    Code:
    <stateData stateName="Alabama" url = "http://www.mymilitia.com/threads/state-of-alabama-militias-general-information.2688/" stateMode = "ON" initialStateColor= "ff9900" stateOverColor = "cd4315" stateSelectedColor = "6a809c">
    <![CDATA[<h1>ALABAMA</h1>
    there is the link

    can i add something somewhere else to force all the links to open in new window outside of the iframe?
     
  2. DieselMinded

    DieselMinded Active Member

    ill try to pull the map out of the iframe again
     
  3. DieselMinded

    DieselMinded Active Member

    what is the file path to root/map/js/paths.js

    trying to put html on page node cannot figure out file path from that page to additional elements...


    its not any of these...

    Code:
    <script src="index.php/map/js/paths.js" type="text/javascript"></script>
    Code:
    <script src="map/js/paths.js" type="text/javascript"></script>
    Code:
    <script src="js/paths.js" type="text/javascript"></script>
    Code:
    <script src="pages/map/js/paths.js" type="text/javascript"></script>
     
  4. wang

    wang Well-Known Member

    You can set the path to your js file in xenforo templates with this code:

    HTML:
    <xen:require js="js/foldername/filename.js" />
    And of course, replace the folder and file names with the names of the folder and file names.
     
    DieselMinded likes this.
  5. DieselMinded

    DieselMinded Active Member

    made me have an error on my page this is a pain in the ass

    Code:
    <xen:require js="map/js/jquery.js" />
    <xen:require js="map/js/raphael.js" />
    <xen:require js="map/js/scale.raphael.js" />
    <xen:require js="map/js/paths.js" />
    <xen:require js="map/js/init.js" />
    causes error

    all i want to do is display the following code on a page node

    Code:
    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>SVG USA Map</title>
    <meta name="description" content="SVG/VML Interactive USA map">
    <meta name="author" content="LGLab">
    
    <link href="css/reset.css" rel="stylesheet" type="text/css" />
    <link href="css/fonts.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/map.css" rel="stylesheet" type="text/css" />
    
    
    <script src="/A2EB891D63C8/avg_ls_dom.js" type="text/javascript"></script>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/raphael.js" type="text/javascript"></script>
    <script src="js/scale.raphael.js" type="text/javascript"></script>
    <script src="js/paths.js" type="text/javascript"></script>
    <script src="js/init.js" type="text/javascript"></script>
    
    </head>
    
    <body>
      
        <div id="container">
      
            <div class="mapWrapper">
        <div id="map"></div>
                    <div id="text"></div>
            </div>
          
        </div>
    
    </body>
    </html>
    
     
  6. DieselMinded

    DieselMinded Active Member

    i pulled it off in an iframe like this..
    Code:
    <div align="center">
      <a href="http://www.mymilitia.com/misc/contact" target="_blank">SUBMIT YOUR MILITIA BY CLICKING HERE
      </a>
    </div><br><br><p align="center"><iframe src="http://www.mymilitia.com/map/index.html" frameborder="0" width="100%" height="700" scrolling="no"></iframe></p>
    but all the links are opening inside the iframe even with target set so I'm trying again to display outside the iframe and i cannot get correct path to components

    everything is installed in

    /map/
     
  7. DieselMinded

    DieselMinded Active Member

  8. DieselMinded

    DieselMinded Active Member

    uploaded the files directly to root and it works
     
  9. DieselMinded

    DieselMinded Active Member

  10. Brogan

    Brogan XenForo Moderator Staff Member

    I suspect a JS error on the site is preventing those from working.

    Likely related to the map content.
     
    DieselMinded likes this.

Share This Page