Welcome Guest, Not a member yet? Register   Sign In
detect JS with CI?
#11

[eluser]Pascal Kriete[/eluser]
I clearly can't read, absolutely skipped the noscript snippet in your original post.

There is no really nice way to achieve what you're trying to do. If both of your css files are setting the exact same things, you could just put the big one at the top and load the other one with js.

Code:
<link rel="stylesheet" href="./big.css" type="text/css" media="screen" title="no title" charset="utf-8">

<script type="text/javascript" charset="utf-8">
if (window.getWidth() < 950 ) {
  new Asset.css('800x600.css');
&lt;/script&gt;

Or you could make two body views, and ajax update the whole body.

Neither is ideal though.


Messages In This Thread
detect JS with CI? - by El Forum - 04-24-2008, 11:50 AM
detect JS with CI? - by El Forum - 04-25-2008, 12:56 AM
detect JS with CI? - by El Forum - 04-25-2008, 01:52 AM
detect JS with CI? - by El Forum - 04-25-2008, 03:54 PM
detect JS with CI? - by El Forum - 04-25-2008, 09:15 PM
detect JS with CI? - by El Forum - 04-25-2008, 09:57 PM
detect JS with CI? - by El Forum - 04-25-2008, 10:28 PM
detect JS with CI? - by El Forum - 04-26-2008, 10:17 AM
detect JS with CI? - by El Forum - 04-26-2008, 11:02 AM
detect JS with CI? - by El Forum - 04-26-2008, 11:55 AM
detect JS with CI? - by El Forum - 04-26-2008, 01:09 PM
detect JS with CI? - by El Forum - 04-26-2008, 01:44 PM
detect JS with CI? - by El Forum - 04-27-2008, 11:42 AM
detect JS with CI? - by El Forum - 04-27-2008, 12:02 PM
detect JS with CI? - by El Forum - 04-27-2008, 01:17 PM
detect JS with CI? - by El Forum - 04-27-2008, 02:02 PM
detect JS with CI? - by El Forum - 04-27-2008, 02:06 PM
detect JS with CI? - by El Forum - 04-27-2008, 03:58 PM
detect JS with CI? - by El Forum - 04-27-2008, 04:03 PM
detect JS with CI? - by El Forum - 04-27-2008, 04:54 PM
detect JS with CI? - by El Forum - 04-27-2008, 10:43 PM
detect JS with CI? - by El Forum - 04-28-2008, 05:15 PM
detect JS with CI? - by El Forum - 04-29-2008, 09:00 AM
detect JS with CI? - by El Forum - 04-30-2008, 08:03 AM
detect JS with CI? - by El Forum - 04-30-2008, 08:26 AM
detect JS with CI? - by El Forum - 04-30-2008, 09:11 AM
detect JS with CI? - by El Forum - 04-30-2008, 11:59 AM
detect JS with CI? - by El Forum - 04-30-2008, 04:56 PM
detect JS with CI? - by El Forum - 08-11-2009, 04:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB