[Seaside] Re: IE 5.5 and 6 png "fix"
Udo.Schneider at homeaddress.de
Fri Sep 21 21:17:10 UTC 2007
Philippe Marschall wrote:
> aRoot if lessThan; ie7; do: [
> url: 'pngfix.js' ]
I use something like this:
anHtmlRoot if lessThan ie7 do:
[(anHtmlRoot linkToScript: (WATCFileLibrary urlOf: #pngfixJs))
To use the defer piece in this was I had to patch
WHHtmlRoot>>#linkToScript: to return the script though:
"only link to script if it's not already been linked too, necessary
when lists of child components try to link to dependant scripts, a
google map for example"
| fullUrl |
fullUrl := self absoluteUrlForResource: url asString.
detect: [ :each | each name = 'script' and: [ each url = fullUrl ] ]
ifNone: [ self scriptElementWithSrc: fullUrl ]
More information about the seaside