• 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: Add Required Web Resource Gets Stuck in IF IE Tag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add Required Web Resource Gets Stuck in IF IE Tag


  • Subject: Re: Add Required Web Resource Gets Stuck in IF IE Tag
  • From: Johnny Miller <email@hidden>
  • Date: Fri, 22 Jun 2012 09:01:55 -1000

I'll look at that.  It's a style sheet that is getting put inside the if ie tags and I believe (without looking at the code) that it puts the style sheet ahead of the first script tag.  Which in this case happens to be inside the if ie tags.  There are a number of other script resources that get added correctly.

Thank you,

Johnny

On Jun 22, 2012, at 8:21 AM, Ramsey Gurley <email@hidden> wrote:

You could try putting the script in the body or have a script tag outside and above the ie conditional.  I believe the ERXResponseRewriter is going to try to add scripts to the end of head, and stylesheets before the first script... which seems to land it right inside your conditional comment.

Also, you may want to look at ERXIEConditionalComment component.  Nothing to do with your bug, just sayin' :-)

Ramsey

On Jun 21, 2012, at 5:18 PM, Johnny Miller wrote:

Hi,

In my page wrapper's head section I have something like this:

// HTML
<head>
...
<webobject name = "IFLTIE9Open" /> 
<script src=""http://html5shim.googlecode.com/svn/trunk/html5.js">http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<webobject name = "IFIEClose" />
...
</head>

// WOD

IFIEClose : WOString {
escapeHTML = false;
value = "<![endif]-->";
}

IFLTIE9Open : WOString {
escapeHTML = false;
value = "<!--[if lt IE 9]>";
}

For some reason a stylesheet that gets added through addStylesheetResourceInHead function is stuffed in-between the IF IE tags.

Can someone please tell me how to fix this?

Thank you,

Johnny Miller
Kahalawai Media Corp.
www.kahalawai.com


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: 
 >Add Required Web Resource Gets Stuck in IF IE Tag (From: Johnny Miller <email@hidden>)
 >Re: Add Required Web Resource Gets Stuck in IF IE Tag (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: H2 plugin and prototypes
  • Next by Date: Creating a javascript callback?
  • Previous by thread: Re: Add Required Web Resource Gets Stuck in IF IE Tag
  • Next by thread: Re: Add Required Web Resource Gets Stuck in IF IE Tag
  • Index(es):
    • Date
    • Thread