Hi,
During upload using xforms:upload i need to get the
selected filename and display in another text box. Thanks in advance.Is there any way to bind xforms:upload control to bind with Javascript ? Regards, Dhanasekar.T -- 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
|
On Tue, Jun 24, 2008 at 9:11 AM, Dhanasekar T
<[hidden email]> wrote: > During upload using xforms:upload i need to get the selected filename and > display in another text box. > Is there any way to bind xforms:upload control to bind with Javascript ? You can use a <xforms:filename ref="@filename"/> to have the name of the file land into a node of your instance. See: http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-upload Then you can display that name by binding an <xforms:output> to the same node. Note that the instance will only be updated after the file is uploaded, and the upload happens when the instance is submitted to the server, either through a replace="all" or replace="instance". I hope this helps, Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Hi,
Alex thanks for your help. I need to display the filename in another textbox before upload/submit to server ie),once user select the file by clicking browse button ,we need to call a clientside script to display the value in another textbox.. My code is like this, <xforms:instance id="file-instance"> <files xmlns=""> <newFileName/> <file fileName="" description="" comment=""/> </files> </xforms:instance> <xforms:bind nodeset="instance('file-instance')/file" id="file"/> <xforms:upload bind="file" id="uploadFile"> <xforms:label>Browse</xforms:label> <xforms:filename ref="@fileName"/> </xforms:upload> <xforms:input ref="instance('file-instance')/newFileName" id="newFile"> <xforms:label> New File Name </xforms:label> </xforms:input>. could any one help me how to solve this issue and How to enable a client side script in upload control? Thanks in Advance. Regards, Dhanasekar.T On Wed, Jun 25, 2008 at 3:40 AM, Alessandro Vernet <[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
|
On Tue, Jun 24, 2008 at 9:42 PM, Dhanasekar T
<[hidden email]> wrote: > I need to display the filename in another textbox before upload/submit > to server > ie),once user select the file by clicking browse button ,we need to call > a clientside script to display the value in another textbox.. In JavaScript, try the following, where "gaga" is the ID you have on your <xforms:input>: ORBEON.util.Dom.getChildElementByIndex(ORBEON.util.Dom.getElementById("gaga"), 0).value Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Hi Can anybody help me out in doing this
I have deployed orbeon 3.6 in liferay tomcat 5.5 version but iam not getting orbeon portlets which ihave added Ihave added my portlet settings in D:\liferay-portal-tomcat-5.5-5.0.1\webapps\orbeon\WEB-INF liferaydisplay.xml portlet.xml web.xml I cannot see any portlet on display Thanks and Regards, K Gopikrishna Reddy This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person. -- 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 winmail.dat (5K) Download Attachment |
Free forum by Nabble | Edit this page |