Hi all,
I'm about to write a dynamic qooxdoo JS code generator framework. Since qooxdoo
need to compile the source, I use qxbuild then. But, qxbuild also need to read
an external JS file (custom.js). What I need is to be able to generate JS code
on the fly directly injected into the HTML file, no external JS created. So, my
question is... how do I do that using qxbuild? Is it even possible?
I tried to modify the custom.html (supplied by qxbuild) and inject JS code
directly into it (taken from custom.js), but it didn't work. Here's what I
did...
<script type="text/javascript">
qxsettings = {};
qxsettings["qx.mode"] = "debug";
qxsettings["qx.theme"] = "qx.theme.Modern";
qxsettings["qx.path"] = "../qx";
qxsettings["qx.application"] = "custom.Application";
qxscripts = [
qxsettings["qx.path"] + "/script/qx-" + qxsettings["qx.mode"] + ".js",
//"./custom.js"
];
(function() {
qxloader.run({scripts: qxscripts});
// <-- 1st try: I put the code from custom.js here -->
}());
</script>
<script type="text/javascript">
// <-- 2nd try: I put the code from custom.js here -->
</script>
</body>
Both first and second try (I did it separately) didn't work. Any hints? Or a
workaround perhaps? :)
TIA.
-Bee-
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel