Re: [css-d] Possible to overriding embedded SS with external SS?
Christian Heilmann wrote: > Not in CSS, so that is off-topic. I was trying to figure out how to get the 'right CSS' applied to the doc. I see now that including the 'how' part put me off topic. My bad. My apologies. Best regards, Bill __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Possible to overriding embedded SS with external SS?
> I'm pretty sure this is bass-ackwards, but I need to be able to over-ride > an embedded stylesheet with an external one, if the external one exists. I > was thinking it might be possible to do using javascript something like > this... > > > > it is off-topic, but I am also on the php list so may as well answer this > here. You could check whether the external stylesheet exists, and if so do a > str_replace on the content between the
Re: [css-d] Possible to overriding embedded SS with external SS?
> I'm pretty sure this is bass-ackwards, but I need to be able to over-ride an > embedded stylesheet with an external one, if the external one exists. I was > thinking it might be possible to do using javascript something like this... > > The embedded stylesheet would be included in the js code. On page load, the > script checks to see if the external stylesheet exists and then either writes > it or the included one to the page's . > > Anybody have any experience with / thoughts about the viability of this > approach? Happy to explain more about the problem / constraints if desired. Not in CSS, so that is off-topic. However, I don't see it as a big problem. On the server side try to fetch the stylesheet and if the result is zilch just write out the local one. You could even do it in AJAX, but that is a bit pointless as you need a server side component anyways (as AJAX cannot reach files outside the same domain). -- Chris Heilmann Blog: http://www.wait-till-i.com Writing: http://icant.co.uk/ Binaries: http://www.onlinetools.org/ __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
[css-d] Possible to overriding embedded SS with external SS?
I'm pretty sure this is bass-ackwards, but I need to be able to over-ride an embedded stylesheet with an external one, if the external one exists. I was thinking it might be possible to do using javascript something like this... The embedded stylesheet would be included in the js code. On page load, the script checks to see if the external stylesheet exists and then either writes it or the included one to the page's . Anybody have any experience with / thoughts about the viability of this approach? Happy to explain more about the problem / constraints if desired. Thanks in advance, Bill __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/