Including conditional comments in your XForm?

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Including conditional comments in your XForm?

Andrzej Jan Taramina
I have a situation where some users are still on IE 6 (ugh! but what can you do?).

And we use png's with transparent backgrounds.

So in the processed XForm, ie the html, that Orbeon emits, I need to include a conditional comment construct that looks
like this:

        <!--[if lte IE 6]><script type="text/javascript" src="./javascript/ie6-png.js"/></script><![endif]-->

If I just include this in the XForm source file, it never appears in the processed html output, since Orbeon eats comments.

Any easy way to do this?

Thanks!

--
Andrzej Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.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
Reply | Threaded
Open this post in threaded view
|

RE: Including conditional comments in your XForm?

Ryan Puddephatt-3
Try

<xsl:comment>[if lte IE 6]><script type="text/javascript"
src="./javascript/ie6-png.js"/></script><![endif]</xsl:comment>

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1812
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: Andrzej Jan Taramina [mailto:[hidden email]]
Sent: 09 December 2008 17:46
To: [hidden email]
Subject: [ops-users] Including conditional comments in your XForm?

I have a situation where some users are still on IE 6 (ugh! but what can
you do?).

And we use png's with transparent backgrounds.

So in the processed XForm, ie the html, that Orbeon emits, I need to
include a conditional comment construct that looks like this:

        <!--[if lte IE 6]><script type="text/javascript"
src="./javascript/ie6-png.js"/></script><![endif]-->

If I just include this in the XForm source file, it never appears in the
processed html output, since Orbeon eats comments.

Any easy way to do this?

Thanks!

--
Andrzej Taramina
Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Including conditional comments in your XForm?

Erik Bruchez
Administrator
Unfortunately that's unlikely to work because the pipelines don't  
forward comments at the moment.

-Erik

On Dec 10, 2008, at 9:22 AM, Ryan Puddephatt wrote:

> Try
>
> <xsl:comment>[if lte IE 6]><script type="text/javascript"
> src="./javascript/ie6-png.js"/></script><![endif]</xsl:comment>
>
> -----------------------------------------------
> Ryan Puddephatt
> Connectivity Developer
> Fidessa LatentZero
> 1 Old Jewry
> London EC2R 8DN
> Office: +44 (0) 20 7105 1000
> Direct: +44 (0) 20 7105 1812
> Blackberry: +44 (0) 79 8539 2458
> Fax: +44 (0) 20 7105 1818
> Email: [hidden email]
> Web: http://www.latentzero.com
>
>
> -----Original Message-----
> From: Andrzej Jan Taramina [mailto:[hidden email]]
> Sent: 09 December 2008 17:46
> To: [hidden email]
> Subject: [ops-users] Including conditional comments in your XForm?
>
> I have a situation where some users are still on IE 6 (ugh! but what  
> can
> you do?).
>
> And we use png's with transparent backgrounds.
>
> So in the processed XForm, ie the html, that Orbeon emits, I need to
> include a conditional comment construct that looks like this:
>
> <!--[if lte IE 6]><script type="text/javascript"
> src="./javascript/ie6-png.js"/></script><![endif]-->
>
> If I just include this in the XForm source file, it never appears in  
> the
> processed html output, since Orbeon eats comments.
>
> Any easy way to do this?
>
> Thanks!
>
> --
> Andrzej Taramina
> Chaeron Corporation: Enterprise System Solutions http://
> www.chaeron.com
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> _______________________________________________________________________
> The information transmitted is intended only for the person or  
> entity to which it is addressed and may contain confidential and/or  
> privileged material. Any review, retransmission, dissemination or  
> other use of, or taking of any action in reliance upon, this  
> information by persons or entities other than the intended recipient  
> is prohibited. If you received this in error, please contact the  
> sender and delete the material from any computer.
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by Verizon Business  
> Internet Managed Scanning Services - powered by MessageLabs. For  
> further information visit http://www.mci.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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Including conditional comments in your XForm?

Ryan Puddephatt-3
So the only option is to use CSS hacks to get around IE6 problems?!

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1812
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]
Sent: 10 December 2008 12:01
To: [hidden email]
Subject: [ops-users] Re: RE: Including conditional comments in your XForm?

Unfortunately that's unlikely to work because the pipelines don't forward comments at the moment.

-Erik

On Dec 10, 2008, at 9:22 AM, Ryan Puddephatt wrote:

> Try
>
> <xsl:comment>[if lte IE 6]><script type="text/javascript"
> src="./javascript/ie6-png.js"/></script><![endif]</xsl:comment>
>
> -----------------------------------------------
> Ryan Puddephatt
> Connectivity Developer
> Fidessa LatentZero
> 1 Old Jewry
> London EC2R 8DN
> Office: +44 (0) 20 7105 1000
> Direct: +44 (0) 20 7105 1812
> Blackberry: +44 (0) 79 8539 2458
> Fax: +44 (0) 20 7105 1818
> Email: [hidden email]
> Web: http://www.latentzero.com
>
>
> -----Original Message-----
> From: Andrzej Jan Taramina [mailto:[hidden email]]
> Sent: 09 December 2008 17:46
> To: [hidden email]
> Subject: [ops-users] Including conditional comments in your XForm?
>
> I have a situation where some users are still on IE 6 (ugh! but what
> can you do?).
>
> And we use png's with transparent backgrounds.
>
> So in the processed XForm, ie the html, that Orbeon emits, I need to
> include a conditional comment construct that looks like this:
>
> <!--[if lte IE 6]><script type="text/javascript"
> src="./javascript/ie6-png.js"/></script><![endif]-->
>
> If I just include this in the XForm source file, it never appears in
> the processed html output, since Orbeon eats comments.
>
> Any easy way to do this?
>
> Thanks!
>
> --
> Andrzej Taramina
> Chaeron Corporation: Enterprise System Solutions http://
> www.chaeron.com
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
>
> ______________________________________________________________________
> _ The information transmitted is intended only for the person or
> entity to which it is addressed and may contain confidential and/or
> privileged material. Any review, retransmission, dissemination or
> other use of, or taking of any action in reliance upon, this
> information by persons or entities other than the intended recipient
> is prohibited. If you received this in error, please contact the
> sender and delete the material from any computer.
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by Verizon Business Internet
> Managed Scanning Services - powered by MessageLabs. For further
> information visit http://www.mci.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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE: Including conditional comments in your XForm?

Erik Bruchez
Administrator
Yes, but IMO that's not a bad solution! That's what Yahoo! and others  
do, for example.

-Erik

On Dec 10, 2008, at 12:06 PM, Ryan Puddephatt wrote:

> So the only option is to use CSS hacks to get around IE6 problems?!
>
> -----------------------------------------------
> Ryan Puddephatt
> Connectivity Developer
> Fidessa LatentZero
> 1 Old Jewry
> London EC2R 8DN
> Office: +44 (0) 20 7105 1000
> Direct: +44 (0) 20 7105 1812
> Blackberry: +44 (0) 79 8539 2458
> Fax: +44 (0) 20 7105 1818
> Email: [hidden email]
> Web: http://www.latentzero.com
>
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]
> Sent: 10 December 2008 12:01
> To: [hidden email]
> Subject: [ops-users] Re: RE: Including conditional comments in your  
> XForm?
>
> Unfortunately that's unlikely to work because the pipelines don't  
> forward comments at the moment.
>
> -Erik
>
> On Dec 10, 2008, at 9:22 AM, Ryan Puddephatt wrote:
>
>> Try
>>
>> <xsl:comment>[if lte IE 6]><script type="text/javascript"
>> src="./javascript/ie6-png.js"/></script><![endif]</xsl:comment>
>>
>> -----------------------------------------------
>> Ryan Puddephatt
>> Connectivity Developer
>> Fidessa LatentZero
>> 1 Old Jewry
>> London EC2R 8DN
>> Office: +44 (0) 20 7105 1000
>> Direct: +44 (0) 20 7105 1812
>> Blackberry: +44 (0) 79 8539 2458
>> Fax: +44 (0) 20 7105 1818
>> Email: [hidden email]
>> Web: http://www.latentzero.com
>>
>>
>> -----Original Message-----
>> From: Andrzej Jan Taramina [mailto:[hidden email]]
>> Sent: 09 December 2008 17:46
>> To: [hidden email]
>> Subject: [ops-users] Including conditional comments in your XForm?
>>
>> I have a situation where some users are still on IE 6 (ugh! but what
>> can you do?).
>>
>> And we use png's with transparent backgrounds.
>>
>> So in the processed XForm, ie the html, that Orbeon emits, I need to
>> include a conditional comment construct that looks like this:
>>
>> <!--[if lte IE 6]><script type="text/javascript"
>> src="./javascript/ie6-png.js"/></script><![endif]-->
>>
>> If I just include this in the XForm source file, it never appears in
>> the processed html output, since Orbeon eats comments.
>>
>> Any easy way to do this?
>>
>> Thanks!
>>
>> --
>> Andrzej Taramina
>> Chaeron Corporation: Enterprise System Solutions http://
>> www.chaeron.com
>>
>>
>> ______________________________________________________________________
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> ______________________________________________________________________
>>
>> ______________________________________________________________________
>> _ The information transmitted is intended only for the person or
>> entity to which it is addressed and may contain confidential and/or
>> privileged material. Any review, retransmission, dissemination or
>> other use of, or taking of any action in reliance upon, this
>> information by persons or entities other than the intended recipient
>> is prohibited. If you received this in error, please contact the
>> sender and delete the material from any computer.
>>
>> _____________________________________________________________________
>> This e-mail has been scanned for viruses by Verizon Business Internet
>> Managed Scanning Services - powered by MessageLabs. For further
>> information visit http://www.mci.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
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
>
> _______________________________________________________________________
> The information transmitted is intended only for the person or  
> entity to which it is addressed and may contain confidential and/or  
> privileged material. Any review, retransmission, dissemination or  
> other use of, or taking of any action in reliance upon, this  
> information by persons or entities other than the intended recipient  
> is prohibited. If you received this in error, please contact the  
> sender and delete the material from any computer.
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by Verizon Business  
> Internet Managed Scanning Services - powered by MessageLabs. For  
> further information visit http://www.mci.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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: RE: Including conditional comments in your XForm?

Ryan Puddephatt-3
I agree, I prefer CSS over conditional includes, seems less of a hack and more of a solution to a problem that shouldn't exist ;-)

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1812
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]
Sent: 10 December 2008 12:07
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: Including conditional comments in your XForm?

Yes, but IMO that's not a bad solution! That's what Yahoo! and others do, for example.

-Erik

On Dec 10, 2008, at 12:06 PM, Ryan Puddephatt wrote:

> So the only option is to use CSS hacks to get around IE6 problems?!
>
> -----------------------------------------------
> Ryan Puddephatt
> Connectivity Developer
> Fidessa LatentZero
> 1 Old Jewry
> London EC2R 8DN
> Office: +44 (0) 20 7105 1000
> Direct: +44 (0) 20 7105 1812
> Blackberry: +44 (0) 79 8539 2458
> Fax: +44 (0) 20 7105 1818
> Email: [hidden email]
> Web: http://www.latentzero.com
>
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]
> Sent: 10 December 2008 12:01
> To: [hidden email]
> Subject: [ops-users] Re: RE: Including conditional comments in your
> XForm?
>
> Unfortunately that's unlikely to work because the pipelines don't
> forward comments at the moment.
>
> -Erik
>
> On Dec 10, 2008, at 9:22 AM, Ryan Puddephatt wrote:
>
>> Try
>>
>> <xsl:comment>[if lte IE 6]><script type="text/javascript"
>> src="./javascript/ie6-png.js"/></script><![endif]</xsl:comment>
>>
>> -----------------------------------------------
>> Ryan Puddephatt
>> Connectivity Developer
>> Fidessa LatentZero
>> 1 Old Jewry
>> London EC2R 8DN
>> Office: +44 (0) 20 7105 1000
>> Direct: +44 (0) 20 7105 1812
>> Blackberry: +44 (0) 79 8539 2458
>> Fax: +44 (0) 20 7105 1818
>> Email: [hidden email]
>> Web: http://www.latentzero.com
>>
>>
>> -----Original Message-----
>> From: Andrzej Jan Taramina [mailto:[hidden email]]
>> Sent: 09 December 2008 17:46
>> To: [hidden email]
>> Subject: [ops-users] Including conditional comments in your XForm?
>>
>> I have a situation where some users are still on IE 6 (ugh! but what
>> can you do?).
>>
>> And we use png's with transparent backgrounds.
>>
>> So in the processed XForm, ie the html, that Orbeon emits, I need to
>> include a conditional comment construct that looks like this:
>>
>> <!--[if lte IE 6]><script type="text/javascript"
>> src="./javascript/ie6-png.js"/></script><![endif]-->
>>
>> If I just include this in the XForm source file, it never appears in
>> the processed html output, since Orbeon eats comments.
>>
>> Any easy way to do this?
>>
>> Thanks!
>>
>> --
>> Andrzej Taramina
>> Chaeron Corporation: Enterprise System Solutions http://
>> www.chaeron.com
>>
>>
>> _____________________________________________________________________
>> _ This email has been scanned by the MessageLabs Email Security
>> System.
>> For more information please visit http://www.messagelabs.com/email 
>> _____________________________________________________________________
>> _
>>
>> _____________________________________________________________________
>> _ _ The information transmitted is intended only for the person or
>> entity to which it is addressed and may contain confidential and/or
>> privileged material. Any review, retransmission, dissemination or
>> other use of, or taking of any action in reliance upon, this
>> information by persons or entities other than the intended recipient
>> is prohibited. If you received this in error, please contact the
>> sender and delete the material from any computer.
>>
>> _____________________________________________________________________
>> This e-mail has been scanned for viruses by Verizon Business Internet
>> Managed Scanning Services - powered by MessageLabs. For further
>> information visit http://www.mci.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
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
>
> ______________________________________________________________________
> _ The information transmitted is intended only for the person or
> entity to which it is addressed and may contain confidential and/or
> privileged material. Any review, retransmission, dissemination or
> other use of, or taking of any action in reliance upon, this
> information by persons or entities other than the intended recipient
> is prohibited. If you received this in error, please contact the
> sender and delete the material from any computer.
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by Verizon Business Internet
> Managed Scanning Services - powered by MessageLabs. For further
> information visit http://www.mci.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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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
Reply | Threaded
Open this post in threaded view
|

RE: Including conditional comments in your XForm?

Andrzej Jan Taramina-2
In reply to this post by Andrzej Jan Taramina
Erik said:

> Unfortunately that's unlikely to work because the pipelines don't
> forward comments at the moment.

Then Ryan chimed in wtih:

> I agree, I prefer CSS over conditional includes, seems less of a hack and more of a solution to a problem that shouldn't exist

I agree that the problem shouldn't exist, but Microsoft and IE being the way they are, it does exist and thus has to be
dealt with until such a time when hell freezes over and MS decides to play nice and support standards. I'm not holding
my breath. ;-)

The solution for us was rather simple.  We use a custom version of the OrbeonXFormsFilter and all our XForms flow
through it.  We'ld already extended the this code to allow us to change base URLs, favicon references and other things
like that so that the resulting XForm was consistent with the rest of our web application.

So I just extended OrbeonXFormsFilter a bit further to allow it to perform arbitrary string substitutions on the
outbound xhtml (rendered XForm) returned by the Orbeon engine.  The substitutions are defined in the web.xml file, and
ours looked something like this:

<filter>
        <filter-name>orbeon-xforms-filter</filter-name>
        <filter-class>com.chaeron.tomcat.filter.OrbeonXFormsFilter</filter-class>
        <init-param>
                <param-name>oxf.xforms.renderer.context</param-name>
                <param-value>/orbeon</param-value>
        </init-param>
        <init-param>
                <param-name>oxf.xforms.filter.substitute.from.ie6png</param-name>
                <param-value>@@IE6-PNG@@</param-value>
                </init-param>
        <init-param>
                <param-name>oxf.xforms.filter.substitute.to.ie6png</param-name>
                <param-value>&lt;!--[if lte IE 6]&gt;&lt;script type="text/javascript" src="./js/ie6-png.js"/&gt;
                             &lt;/script&gt;&lt;![endif]--&gt;
                </param-value>
        </init-param>
</filter>

Then just put the string @@IE6-PNG@@ at the end of our XForm just prior to the <body> xhtml tag and voila....conditional
IE comments are rendered in the xhtml returned to the client browser.

You can specify any number of arbitrary string substitutions this way, in the web.xml file.  You just have to make sure
the param name part after the from./to. (ie6png in the above example)  matches up and is unique for every particular
substitution pair.

So now I don't much care if whether the problem should exist or not.....it's well and truly resolved, despite
Microsoft's best efforts. ;-)

--
Andrzej Taramina
Coalese Corporation: Knowledge that Acts!
http://www.coalese.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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Including conditional comments in your XForm?

Erik Bruchez
Administrator
>> I agree, I prefer CSS over conditional includes, seems less of a  
>> hack and more of a solution to a problem that shouldn't exist
>
> I agree that the problem shouldn't exist, but Microsoft and IE being  
> the way they are, it does exist and thus has to be dealt with until  
> such a time when hell freezes over and MS decides to play nice and  
> support standards. I'm not holding my breath. ;-)

I think Ryan and myself were not denying the problem, but just saying  
that there are other ways, besides conditional includes, to address  
it, namely CSS hacks.

> You can specify any number of arbitrary string substitutions this  
> way, in the web.xml file.  You just have to make sure the param name  
> part after the from./to. (ie6png in the above example)  matches up  
> and is unique for every particular substitution pair.
>
> So now I don't much care if whether the problem should exist or  
> not.....it's well and truly resolved, despite Microsoft's best  
> efforts. ;-)


Thanks for sharing!

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

Problem with ORBEON.xforms.Document.dispatchEvent

Reddy, Gopikrishna
In reply to this post by Erik Bruchez
Hi All,
Iam Facing the Problem with ORBEON.xforms.Document.dispatchEvent
I Have requirement of Setting some values if we Press hot Keys.

For this I have written the code attached .

Problem:Event is not firing when we call the event in java script

Can anybody help me to resolve this issue.

Thanks in advance,

Gopi



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

test11.xhtml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Submission error for dynamic action url

Karolin Heiss
Hello

I hava a dynamic action url to submit the xml data of my xforms.

dynamic url from instance

I tried to submit to an action url which I read from the instance.

<xforms:submission method="post" id="submit1" ref="instance('data')">
  <resource value="instance('request-instance')/request/url"/>
</xforms:submission>

Example like in
http://www.w3.org/TR/xforms11/#submit-submission-element 


When i submit my form I get the error message:
"xforms:submission: action attribute or resource attribute is missing"


dynamic url from request-attribute

I tried to submit to an action url which I read from the request
attribute.

<xforms:model>
  ...
  <xxforms:variable name="actionurl"
select="xxforms:get-request-attribute('XFormsActionURL')"/>
  <xforms:submission method="post" id="submit1"
ref="instance('employee-instance')" action="$actionurl"/>
  <xforms:insert ev:event="xforms-model-construct-done"
nodeset="instance('employee-instance')"
origin="xxforms:get-request-attribute('data')"/>
</xforms:model>

When i submit my form I get the error message:
"xxforms:get-request-attribute() can only be called during XForms
initialization"


Is there any other possibility to submit to a dynamic uri?

Karolin


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Submission error for dynamic action url

Erik Bruchez
Administrator
Karolin,

Ah yes, we don't yet implement the nested <xforms:resource> element.
Instead, you can use an attribute value template (AVT):

<xforms:submission method="post" id="submit1" ref="instance('data')"
resource="{instance('request-instance')/request/url}"/>

-Erik

On Thu, Oct 29, 2009 at 1:56 AM, Karolin Krieg <[hidden email]> wrote:

> Hello
>
> I hava a dynamic action url to submit the xml data of my xforms.
>
> dynamic url from instance
>
> I tried to submit to an action url which I read from the instance.
>
> <xforms:submission method="post" id="submit1" ref="instance('data')">
>  <resource value="instance('request-instance')/request/url"/>
> </xforms:submission>
>
> Example like in
> http://www.w3.org/TR/xforms11/#submit-submission-element
>
>
> When i submit my form I get the error message:
> "xforms:submission: action attribute or resource attribute is missing"
>
>
> dynamic url from request-attribute
>
> I tried to submit to an action url which I read from the request
> attribute.
>
> <xforms:model>
>  ...
>  <xxforms:variable name="actionurl"
> select="xxforms:get-request-attribute('XFormsActionURL')"/>
>  <xforms:submission method="post" id="submit1"
> ref="instance('employee-instance')" action="$actionurl"/>
>  <xforms:insert ev:event="xforms-model-construct-done"
> nodeset="instance('employee-instance')"
> origin="xxforms:get-request-attribute('data')"/>
> </xforms:model>
>
> When i submit my form I get the error message:
> "xxforms:get-request-attribute() can only be called during XForms
> initialization"
>
>
> Is there any other possibility to submit to a dynamic uri?
>
> Karolin
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ORBEON.xforms.Document.dispatchEvent

Alessandro  Vernet
Administrator
In reply to this post by Reddy, Gopikrishna
Gopi,

On Wed, Oct 28, 2009 at 8:26 AM, Reddy, Gopikrishna
<[hidden email]> wrote:
> I Have requirement of Setting some values if we Press hot Keys.
>
> For this I have written the code attached .
>
> Problem:Event is not firing when we call the event in java script

The problem seems to be just with the JavaScript code intercepting the
key. Since we already using YUI for the Orbeon Forms, you can use the
YUI library instead of registering your key handler "by hand". This
does the trick for the key ctrl-y:

function doSomething() {
    console.log("Do something");
    ORBEON.xforms.Document.dispatchEvent("main-model","do-something");
}

YAHOO.util.Event.onDOMReady(function() {
    new YAHOO.util.KeyListener(document, { ctrl:true, keys:89 }, { fn:
doSomething } ).enable();
});

You will also find attached your example updated with the above JavaScript code.

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My 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

key.xhtml (2K) Download Attachment
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet