I'm running Orbeon-CE. Exploring how to add new components. I am reading here to understand javascript development http://wiki.orbeon.com/forms/doc/contributor-guide/development-environment/javascript-development This refers to xforms.js. I have expanded web-inf\lib\orbeon-resources-private.jar into a separate folder .. > config > Meta-inf > ops > oxf > xbl but I don't see xforms.js in ops\javascript .. to be modified .. where is this file if not in orbeon-resources-private.jar? .. Also many of the expanded folders in ops\yui contain no javascript files (yui components) as in the standard yui distribution. Where are the yui javascripts? Can Orbeon yui library be extended from the standard yui distribution? Thanks. |
Fairly certain that with the current release, you need to write XBL components. http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide --Hank On Nov 8, 2010, at 12:40 PM, DL wrote: > > > I'm running Orbeon-CE. Exploring how to add new components. > > I am reading here to understand javascript development > > http://wiki.orbeon.com/forms/doc/contributor-guide/development-environment/javascript-development > > This refers to xforms.js. > > I have expanded web-inf\lib\orbeon-resources-private.jar into a separate > folder .. > >> config >> Meta-inf >> ops >> oxf >> xbl > > > but I don't see xforms.js in ops\javascript .. to be modified .. > > where is this file if not in orbeon-resources-private.jar? > > .. > > Also many of the expanded folders in ops\yui contain no javascript files > (yui components) as in the standard yui distribution. > Where are the yui javascripts? > Can Orbeon yui library be extended from the standard yui distribution? > > Thanks. > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/where-is-xforms-js-to-be-found-tp3032609p3032609.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws NEES@UCSB Earth Research Institute University of California, Santa Barbara 805-893-8042 -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
thanks ..
I've just found xforms.js packed here .. orbeon-resources-public.jar http://orbeon-forms-ops-users.24843.n4.nabble.com/Incremental-request-delay-td3009080.html#a3015278 I'm trying to embed swfobject.js to create embedded flashobjects in xforms. http://code.google.com/p/swfobject/ |
We built a reusable XBL component using swfobject. We can include the swfobject.js in xbl and initialize it in component's javascript file. I am curious as how xforms.js comes into play? I would love to know.
On Mon, Nov 8, 2010 at 4:02 PM, DL <[hidden email]> wrote:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by DL
It's in orbeon-resources-public.jar, which contains files served to
the web browser. -Erik On Mon, Nov 8, 2010 at 12:40 PM, DL <[hidden email]> wrote: > > > I'm running Orbeon-CE. Exploring how to add new components. > > I am reading here to understand javascript development > > http://wiki.orbeon.com/forms/doc/contributor-guide/development-environment/javascript-development > > This refers to xforms.js. > > I have expanded web-inf\lib\orbeon-resources-private.jar into a separate > folder .. > >> config >> Meta-inf >> ops >> oxf >> xbl > > > but I don't see xforms.js in ops\javascript .. to be modified .. > > where is this file if not in orbeon-resources-private.jar? > > .. > > Also many of the expanded folders in ops\yui contain no javascript files > (yui components) as in the standard yui distribution. > Where are the yui javascripts? > Can Orbeon yui library be extended from the standard yui distribution? > > Thanks. > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/where-is-xforms-js-to-be-found-tp3032609p3032609.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Binesh Gummadi
I would appreciate a few more tips on how to add swfobject as you describe above. Can you attach a test.xhtml and test.xbl file? So do I place into Web-inf\resources\xbl\orbeon\swfobject\ the swfobject *.html, swfobject.js, and *.swf files? Meanwhile I'm looking into xforms.js found in orbeon-resources-public.jar Thanks. |
DL,
Its more involved to create an XHTML page as our component has a lot more functionality specific to our use case. I apologize. But here is the idea. <xbl:xbl>
<xbl:script src="/components/citrix-form/flash-picker.js" />
<xbl:script src="/components/citrix-form/swfobject.js" /> <xbl:binding id="fr-flash-picker" element="fr|flash-picker"> <xbl:template xxbl:transform="oxf:unsafe-xslt">
<xsl:transform version="2.0"> <xsl:import href="oxf:/oxf/xslt/utils/xbl.xsl" />
<xsl:template match="/*"> <xforms:group xbl:attr="model context ref bind" xxbl:scope="outer">
<xxforms:script ev:event="xforms-enabled"> YAHOO.xbl.fr.FlashSelector.instance(this).init();
</xxforms:script> <div id="flashcontent" class="flashcontent"></div>
</xforms:group> </xsl:template> </xsl:transform> </xbl:template>
</xbl:binding> </xbl:xbl> flash-picker.js var YDOM = YAHOO.util.Dom; var ODOC = ORBEON.xforms.Document;
YAHOO.namespace("xbl.fr"); YAHOO.xbl.fr.FlashSelector = function() {}; ORBEON.xforms.XBL.declareClass(YAHOO.xbl.fr.FlashSelector, "xbl-fr-flash-picker");
YAHOO.xbl.fr.FlashSelector.prototype = { _instances: {}, _getInstance: function(target) {
var container = YDOM.getElementsByClassName("xbl-fr-flash-picker", null, this.container)[0]; return this._instances[container.id];
},
init: function() { this.flashElement = YDOM.getElementsByClassName("flashcontent", null, this.container)[0]; var so = new SWFObject("", "my-flash-picker", "300", "500", "8", "#CCCCCC");
so.addVariable("wmode", "transparent"); so.addVariable("salign", "t");
so.addParam("scale", "noscale"); so.addParam("src", "url-to-swf-file");
so.write(this.flashElement); } } In XBL you define a div(flashcontent) which will be used by SWFObject javascript. You create a SWFObject and write to the div. Hope this helps.
On Tue, Nov 9, 2010 at 8:14 AM, DL <[hidden email]> wrote:
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |