12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <example>Sample</example>
- <grid>
- <item>
- <a>1</a>
- <b>2</b>
- <c>3</c>
- </item>
- <item>
- <a>1</a>
- <b>2</b>
- <c>3</c>
- </item>
- <item>
- <a>1</a>
- <b>2</b>
- <c>3</c>
- </item>
- </grid>
- </root>
- </instance>
- </model>
- <script type="javascript">
- <![CDATA[
- function onclick()
- {
- if ("SoonsuViewer" == document.userAgent)
- {
- if ("xforms:cell" != document.all(event.target).elementName)
- {
- pop_group.visible = false;
- }
- }
- else
- {
- if ("xforms:col" != event.pTarget.elementName)
- {
- pop_group.visible = false;
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <datagrid id="datagrid1" nodeset="/root/grid/item" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:90px; top:50px; width:350px; height:150px; ">
- <col ref="a"/>
- <col ref="b"/>
- <col ref="c"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- pop_group.attribute("left") = (event.clientX - 10) + "px";
- pop_group.attribute("top") = (event.clientY - 10) + "px";
- pop_group.visible = true;
-
- ]]>
- </script>
- </datagrid>
- <group id="pop_group" visibility="hidden" overflow="hidden" style="left:460px; top:85px; width:114px; height:52px; background-color:#ccffcc; ">
- <button id="button1" style="left:5px; top:10px; width:100px; height:30px; ">
- <caption> ȸ</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- alert("window.load");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|