• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Writing IE specific code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Writing IE specific code (From: Jean Pierre Malrieu <email@hidden>)
 >Re: Writing IE specific code (From: Helmut Schottmüller <email@hidden>)
 >Re: Writing IE specific code (From: David Masters <email@hidden>)
 >Re: Writing IE specific code (From: "Mr. Pierre Frisch" <email@hidden>)

  • Prev by Date: Re: How to debug fetch problem
  • Next by Date: Re: How to debug fetch problem
  • Previous by thread: Re: Writing IE specific code
  • Next by thread: Re: Writing IE specific code
  • Index(es):
    • Date
    • Thread