Changeset 12913 for trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiExtra/scRichText/textBase.xbl.xml
- Timestamp:
- 02/28/09 19:28:28 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_XedLib/chrome/content/scenarixedlib/libUiExtra/scRichText/textBase.xbl.xml
r12911 r12913 5766 5766 5767 5767 5768 <binding id="extBlock" >5768 <binding id="extBlock" display="html:div"> 5769 5769 <content> 5770 5770 <children/> 5771 5771 <html:div/> 5772 <html:iframe anonid="iframe" xbl:inherits="src" />5772 <html:iframe anonid="iframe" xbl:inherits="src" /> 5773 5773 </content> 5774 <!--5775 5774 <implementation> 5776 5775 <constructor> 5777 this.refresh(); 5776 var vIframe = document.getAnonymousElementByAttribute(this, "anonid", "iframe"); 5777 function onMouse(pEvent){ 5778 try { 5779 var vEvent = vIframe.ownerDocument.createEvent('MouseEvent'); 5780 vEvent.initMouseEvent(pEvent.type, true, true, vIframe.view, pEvent.detail, 5781 pEvent.screenX, pEvent.screenY, pEvent.clientX, pEvent.clientY, 5782 pEvent.ctrlKey, pEvent.altKey, pEvent.shiftKey, pEvent.metaKey, 5783 pEvent.button, null); 5784 vIframe.dispatchEvent(vEvent); 5785 }catch(e){alert(e);} 5786 } 5787 vIframe.contentWindow.addEventListener("mousedown", onMouse, false); 5788 vIframe.contentWindow.addEventListener("click", onMouse, false); 5778 5789 </constructor> 5779 <method name="refresh">5780 <body><![CDATA[5781 //var vIframe = document.getAnonymousElementByAttribute(this, "anonid", "iframe");5782 //vIframe.setUserData("scViewContext", "TEST::::::::::::", null);5783 //vIframe.setAttribute("src", "chrome://optim-0_0/content/sfile_png/preview.xul");5784 ]]></body>5785 </method>5786 5790 </implementation> 5787 <handlers>5788 <handler event="click">5789 alert("gggggggg");5790 </handler>5791 </handlers>5792 -->5793 5791 </binding> 5794 5792
Note: See TracChangeset
for help on using the changeset viewer.