Mashups are not client-side scripts. You can use Javascript, but the DOM and other client object such as window do not exist. Mashups run in the Mashup Server and produce responses with data.
It looks like, from your EMML code, that you are using the OMA reference engine for EMML? Or are you using Presto? It would help to give you more specific answers if you can indicate what you are using and what you are trying to accomplish.
<!--Session data-->
Sara, technical writer/jackbe
It would be better to ask questions about EMML on the OMA group to avoid getting advice that uses Presto capabilities that are not present in the OMA EMML runtime reference engine.
That said, what you are trying to do is *not* possible in either Presto or with the EMML runtime reference engine from OMA. Mashups from EMML are data.
You have to write your own client-side user interface and have that interface run the mashup you have written in EMML and then handle the response. That is where you would put the JavaScript code to open a new window.
<!--Session data-->
Sara, technical writer/jackbe



I have the folowing code:
<?xml version="1.0"?>
<mashup
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openemml.org/2009-04-15/EMMLSchema ../schemas/EMMLSpec.xsd"
xmlns="http://www.openemml.org/2009-04-15/EMMLSchema"
name="a">
<input name="jobDescription" type="string" default="Java"/> <!-- Filter parameter -->
<output name="jobsDoc" type="document"/>
<!-- Invoke Yahoo HotJobs RSS Feed -->
<directinvoke endpoint="http://hotjobs.yahoo.com/rss/0/USA/-/-/-/java" outputvariable="jobsDoc"/>
<script type="text/javascript" >
<![CDATA[
var load = window.open('http://www.google.com','','scrollbars=yes,menubar=yes,height=600,width=800,resizable=yes,toolbar=yes,location=no,status=no');
]]>
</script>
</mashup>
but I recieve folowing error:
<error> <errorMessage>1002</errorMessage> <errorMessage><![CDATA[Error executing script : ReferenceError: "window" is not defined. (#3) [ Line # 14] (<script type="text/javascript"><![CDATA[ var load = window.open('http://www.google.com','','scrollbars=yes,menubar=yes,height=600,width=800,resizable=yes,toolbar=yes,location=no,status=no'); ]]></script> ) ]]> </errorMessage> </error>