<%@ taglib prefix="a" uri="http://jmaki/v1.0/jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="Shortcut Icon" href="https://ajax.dev.java.net/favicon.ico" type="image/x-icon" />

<link rel="stylesheet" href="jmaki-standard-no-sidebars.css" type="text/css"></link>

<html>
    <head>
        <title>jMaki Get Widget Data Sample</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <style type="text/css">
            .logo { background: url(images/jmaki-seal.png) top right;width:100px; height:80px;margin-top:0px;background-repeat: no-repeat }
        </style>
        <!--[if lt IE 7]>
           <style type="text/css">
	    		.logo { background: none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=image src=images/jmaki-seal.png);cursor:pointer }
           </style>
        <![endif]-->
	<script type="text/javascript">  
		function showEditorContents() { 
			var data = jmaki.attributes.get('myeditor').getValue(); 
			alert("contents=" + data); } 
	</script>

    </head>
    <body>
        <div id="outerBorder">
            
            <div id="header">
                <div id="banner"><div class="logo" style="float:left"></div>
                <div style="margin-top:20px; float:left;">jMaki Get Widget Data Sample</div>
	    </div>
            <div id="subheader">
                    <div>
                        <a href="http://forums.java.net/jive/forum.jspa?forumID=96" target="_jmaki">Feedback</a> |
                        <a href="http://jmaki.com" target="_jmaki">jMaki Home</a>
                    </div>
            </div> <!-- subheader  -->  
                
            </div> <!-- header -->


            <div id="main">
                
                <div id="content" style="height:400px">
		    <a:widget id="myeditor" name="dojo.editor" publish="/jmaki/editor" args="{ toolbar: 'medium'}" value="Enter information here"/>
                </div> <!-- content -->
            </div> <!-- main -->
		<button type="submit" value="Show editor contents" onclick="showEditorContents()" >Show editor contents</button>
                <a href="EditorContents.jsp">Show Editor Content Page</a>
      
        </div> <!-- outerborder -->
    </body.
</html>
