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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to