Just sharing. I added a script to config.json which creates (basically) 
this kind of index.html for browser optimized builds:

8<-------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>custom</title>

   <!-- Detect engine and load application accordingly -->
   <script type="text/javascript">
     var application = "custom";
     var variant = "unknown";

     if (window.opera)
     {
       variant = "opera";
     }
     else if (navigator.userAgent.indexOf("AppleWebKit/") != -1)
     {
       variant = "webkit";
     }
     else if (window.controllers && navigator.product === "Gecko")
     {
       variant = "gecko";
     }
     else if (navigator.cpuClass && 
/MSIE\s+([^\);]+)(\)|;)/.test(navigator.userAgent))
     {
       variant = "mshtml";
     }

     var script = document.createElement("script");
     script.type = "text/javascript";
     script.src = "script/" + application + "-" + variant + ".js";

     document.getElementsByTagName('head')[0].appendChild(script);
   </script>

<body></body>
</html>
8<-------


Am 23.04.2009 14:11 Uhr, schrieb thron7:
>
>> If I modify the config.json to build custom-mshtml.js, custom-webkit.js,
>> etc.: what is the proposed way to get the correct
>> build/scripts/custom-whatever.js script loaded in index.html?
>>
>
> I don't know of a better way than rolling your own, e.g. by taking
> advantage of the browser identification that comes with the request to
> your server and the server returning the right variant, or by adding JS
> code to your index.html that does that, or by creating a small loader
> script that is loaded by the index.html and that then loads the correct
> application script.
>
> I've added a bug to have such logic provided by qooxdoo
> (http://bugzilla.qooxdoo.org/show_bug.cgi?id=2290).
>
> Anybody else?
>
> T.
>
>>
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to