I need to use an ie-specific conditional comment in my xform:
<!--[if lt IE 7]> <script src="/ie7/ie7-standard-p.js" type="text/javascript"></script> <![endif]--> When I put this in my xform, it is seen as xml comment and ignored. Even when I surround it with CDATA tags, the conditional comment is not outputted. How to do this? Kind regards, Teun van Eijsden -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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,
Teun van Eijsden schrieb: > I need to use an ie-specific conditional comment in my xform: > > <!--[if lt IE 7]> > <script src="/ie7/ie7-standard-p.js" > type="text/javascript"></script> > <![endif]--> > > When I put this in my xform, it is seen as xml comment and ignored. Even > when I surround it with CDATA tags, the conditional comment is not > outputted. How to do this? detect the user-agent and use the result as a condition for the call of the JavaScript. Or, you call the JavaScript unconditionally and insert some browser detection code at the start of it. HTH florian -- 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
|
It may well be that you won't be able to generate that kind of stupid
(not your fault at all, it's all Microsoft's) IE comments because our XML pipelines do not support XML comments yet. So I think that it would be better if you could make do with one of the solutions proposed below. -Erik On Dec 4, 2007, at 7:34 AM, Florian Schmitt wrote: > Hi, > > Teun van Eijsden schrieb: > >> I need to use an ie-specific conditional comment in my xform: >> <!--[if lt IE 7]> >> <script src="/ie7/ie7-standard-p.js" >> type="text/javascript"></script> >> <![endif]--> >> When I put this in my xform, it is seen as xml comment and ignored. >> Even >> when I surround it with CDATA tags, the conditional comment is not >> outputted. How to do this? > > I didn't test it, but you could try to use the request generator [1] > to detect the user-agent and use the result as a condition for the > call of the JavaScript. Or, you call the JavaScript unconditionally > and insert some browser detection code at the start of it. > > HTH > florian 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 |
Free forum by Nabble | Edit this page |