Loading ...
Sorry, an error occurred while loading the content.

svg html communication problem

Expand Messages
  • FLOREZ LOSANTOS, Sergio hugo
    Hi all, How could I execute the hello() function from the mg_streets.htm page I open from the index.svg. I can reach the magister svg document but I don t
    Message 1 of 1 , Dec 1, 2003
    • 0 Attachment
      Hi all,

      How could I execute the hello() function from the 'mg_streets.htm' page I
      open from the index.svg. I can reach the 'magister' svg document but I don't
      know how execute any function included in any .js archive without including
      the js script in the htm document.

      I don't know how to reach the variable mapview from the 'mg_streets.htm'
      page neither.

      Thanks in advance.


      -------------------- index.svg -----------------------

      <svg id="magister"
      x="0"
      y="0"
      width="100%"
      height="100%"
      onload="initMap(evt)"
      >
      <defs>
      <circle id='point' cx='0' cy='0' r='0.01%' fill='blue'/>

      <script language="JavaScript">
      var mapview = null;
      var currentTool = 'MapTool';
      var previousTool = 'MapTool';

      function hello(){ alert('hello'); }
      </script>
      <script xlink:href="layer_manager.js" language="JavaScript"/>

      <symbol id="mnuArrow">
      <path d="M0,0l8.2,4.3l-8.2,4.5z"/>
      </symbol>
      </defs>
      ....
      <g id="tool_layer">
      <a href="#"
      onclick="javascript:open('mg_streets.htm','layerwindow','width=900,height=45
      0');">
      <image x="81.2" y="89" width="43" height="29"
      xlink:href="images/7EC0E4F7.jpg"/>
      </a>
      <title>Streets</title>
      </g>
      ....
    Your message has been successfully submitted and would be delivered to recipients shortly.