include (jslib_file);

wxdqz

New Member
Why does FF105 not reconise the include function ? (include undifined)
<?xml version="1.0"?>
<!DOCTYPE window>
<window id="jslib-file-test"
style="background-color: #cccccc; width: 100px; height: 100px;"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"
src=http://www.webdeveloper.com/forum/archive/index.php/"chrome://jslib/content/jslib.js" />;
<script type="application/x-javascript">
include (jslib_file);
localFile = "~/Desktop/fubar.dat";
var f = new File(localFile);
</script>
<vbox flex="1" pack="center">
<spacer flex="1" />
<button label="Function List" oncommand="alert(f.help);" />
<button label="exists" oncommand="alert(f.exists());" />
<button label="create file" oncommand="if (!f.exists()) f.create();" />
<spacer flex="1" />
</vbox>
</window>
 
Back
Top