Re: Writing IE specific code
Re: Writing IE specific code
- Subject: Re: Writing IE specific code
- From: David Masters <email@hidden>
- Date: Tue, 10 Apr 2007 22:28:57 +0100
Pierre,
On 10 Apr 2007, at 17:10, Mr. Pierre Frisch wrote:
I am not sure I understand the problem but the browser does not
change during a session so you can simply detect it in the headers
and include whatever code you need in a WOConditional.
I'd used similar browser detection approaches previously when having
to code differently for specific browsers, but currently the only
browser-specific requirements we have can be handled by conditionally
including a different style sheet or JavaScript file for IE.
Being able to put in conditional comments such as <!--[it lt IE 7]
>...<![end if]--> avoids having to do any server-side detection. The
WOGenericElement was used purely to get around WO's confusion over any
angle brackets in the embedded content within the conditional comments.
If the problem requires anything more complex than just linking in
different style sheets or JavaScript files then the WOConditional
approach would probably be a more appropriate and elegant approach.
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden