sample_msie.xfdl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\default_typedef.xml"/>
  4. <Form id="test1" position="absolute 0 0 1211 784" titletext="TEST" style="margin: 0 8 0 8;" onload="Web00_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="Static00" text="웹사이트 호출" position="absolute 0 0 1210 34" anchor="left top right" style="background:#4fcee5ff;border:1 solid #428cb6ff ;color:black;padding:0 0 0 10;bordertype:round 3 3 ;font:Malgun Gothic,12, antialias;"/>
  8. <ActiveX id="msie" position="absolute 12 108 1128 648" progid="{8856F961-340A-11D0-A96B-00C04FD705A2}" windowed="true" useautobitmapcache="1" style="border:0 none #dcdcdcff #ffffffff; bordertype:normal 0 0 ; shadow:drop 0,0 0 #8080807d; " taborder="1" TitleChange="msie_TitleChange" WindowClosing="msie_WindowClosing"/>
  9. <Button id="Button01" taborder="5" text="브라우져 직접 실행" onclick="Button01_onclick" class="WK_btn_GridBtn" position="absolute 12 69 132 88"/>
  10. </Layout>
  11. </Layouts>
  12. <Objects/>
  13. <Script type="xscript4.0"><![CDATA[
  14. /**
  15. * <p>Form이 로딩된 후 발생</p>
  16. */
  17. function Web00_onload(obj:Form, e:LoadEventInfo)
  18. {
  19. var sUrl = "http://www.naver.com";
  20. var sPostData = "";
  21. //IE에 Post 방식으로 Data를 전달해서 브라우징 한다.
  22. fn_PostNavigate(msie, sUrl, sPostData);
  23. }
  24. /**
  25. * <p>화면에 임베디드된 IE 영역에 Post 방식으로 Data를 전달해서 브라우징 한다.</p>
  26. * @param objActiveX - IE Object
  27. * @param sUrl - 브라우징할 웹주소
  28. * @param sPostData - Post 방식으로 전송할 Data
  29. * @return
  30. */
  31. function fn_PostNavigate(objIE, sUrl, sPostData)
  32. {
  33. var objPostData = new Buffer(sPostData, "utf-8");
  34. var sHeader = "Content-Type: application/x-www-form-urlencoded";
  35. objIE.Navigate2(sUrl, objIE.name, "", objPostData.data, sHeader);
  36. }
  37. function Button01_onclick(obj:Button, e:ClickEventInfo)
  38. {
  39. system.execShell("http://www.naver.com");
  40. }
  41. ]]></Script>
  42. </Form>
  43. </FDL>