blob: 4f73c53de0a29a019d9151e82a9d6828e19f2e52 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
-->
<Module specificationVersion="2.0">
<ModulePrefs title="OpenViews-OpenEE">
<Require feature="open-views"/>
</ModulePrefs>
<Content type="html"><![CDATA[
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
gadgets.util.registerOnLoadHandler(function() {
$(document).ready(function(){
$('input#xml').click(function(event) {
var dataModel = '<embed><url>http://www.opensocial.org</url></embed>';
gadgets.views.openEmbeddedExperience(null, null, dataModel);
});
$('input#obj').click(function(event) {
var dataModel = {url:'http://www.opensocial.org'};
gadgets.views.openEmbeddedExperience(null, null, dataModel);
});
});
});
</script>
<body>
<input id="xml" type="button" value="Open EE with XMl"></input>
<input id="obj" type="button" value="Open EE with Object"></input>
</body>
]]></Content>
</Module>