<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscript/interpreter/urls/calls/4" class="A" scope="wmlscript" testtype="application" type="manual" source="wmls11#8.3.4" device="both">
  <assertion>When a call to an external WMLScript function is made via the use of a URL fragment anchor the parameters list is passed to the external function.
</assertion>
  <specnote>New for June 2000.</specnote>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<p>
The script referenced by this&nbsp;<a href="<script1>#main('card1','pass','fail')">link</a>&nbsp;calls an external script using a URL fragment anchor.  Click the link to complete the test.
</p>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<resulturl>">
<postfield name="test" value="$test"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[extern function main(next, pass, fail)
{

	    WMLBrowser.setVar ('test', pass);
	    WMLBrowser.go ('#' + next);

}




]]>
    </script>
  </scripts>
</test>

