It is currently Mon Sep 25, 2017 1:09 pm

News News of UI Development & Deployment

Site map of UI Development & Deployment » Forum : UI Development & Deployment

For discussing development & deployment issues

Multiple scripts called from main script

Can anyone advise me on the best way to do the following.

1 main screen (project1) that can call other scripts(project2, project3 etc) as separate displays. keeping project 1 as the main menu as in a normal website

I have a main screen that the user can login and based on privileges allocated builds a menu. The menu option should then call another project.
I have done each project separate to keep the file sizes ...
Read more : Multiple scripts called from main script | Views : 2624 | Replies : 3 | Forum : CrossUI for Web Apps


Json/xml data example run on local pc

Hi all

I would like to reproduce the Json/xml data example on my local machine.

Looking at the code it appears (please pardon my lack of knowledge) that data may be loaded from the local directory
and displayed in the grid. If that is the case can someone post the data file please.
Update: A while later after I posted this I found the data files that I needed.

Also what would be REALLY REALLY ...
Read more : Json/xml data example run on local pc | Views : 2141 | Replies : 2 | Forum : CrossUI for Web Apps


upload file

Hi there,

I tried the code here post125.html#p125

I can't get it to work in this demo.

also I tried on my side and I got NS_ERROR_FAILURE

I use the same php code as the demo above and I set the folder upload permission to 0777 so I wonder what may be wrong

it is possible to upload multiple file at once ? I don't know if crossui is ...
Read more : upload file | Views : 3628 | Replies : 5 | Forum : CrossUI for Web Apps


Simple Form Builder, Build form from JSON array

Press 'готово' button and see console.log

// The default code is a com class (inherited from xui.Com)
Class('App', 'xui.Com',{
// Ensure that all the value of "key/value pair" does not refer to external variables
Instance:{
// To initialize instance(e.g. properties)
initialize : function(){
// To determine whether or not the com will be destroyed, when the first UI control be destroyed
this.autoDestroy = true;
// To initialize properties
this.properties = {};
},
// To initialize ...
Read more : Simple Form Builder, Build form from JSON array | Views : 3817 | Replies : 0 | Forum : CrossUI for Web Apps


SVG append

Can anyone help me with the append commands for svg to paper, also show/hide.

Tried all combinations with no joy, not even sure I am on the right track or if it is possible.

Thanks
Kevin
Read more : SVG append | Views : 2871 | Replies : 3 | Forum : CrossUI for Web Apps


Show debug window programmatically

Show debug window

javascript code
if(typeof(require)=='function') require('nw.gui').Window.get().showDevTools();
Read more : Show debug window programmatically | Views : 3216 | Replies : 0 | Forum : CrossUI for Desktop Apps


close application programmatically

close application programmatically :

1-st way
javascript code
process.exit(code=0);


2-nd way
javascript code
var win=require('nw.gui').Window.get();
win.maximize();
win.show();

win.close();
Read more : close application programmatically | Views : 2213 | Replies : 0 | Forum : CrossUI for Desktop Apps


shell execute

shell execute:

javascript code
var childProcess = require('child_process');
childProcess.exec('wscript.exe C:\\test\\1.vbs',
function (error, stdout, stderr) {
xui.echo('stdout: ' + stdout);
xui.echo('stderr: ' + stderr);
if (error !== null) {
xui.echo('exec error: ' + error);
}
});
Read more : shell execute | Views : 2667 | Replies : 0 | Forum : CrossUI for Desktop Apps


Pop dialog outside of parent

Pop dialog outside of parent by creating new dialog

// The default code is a com class (inherited from xui.Com)
Class('App', 'xui.Com',{
// Ensure that all the value of "key/value pair" does not refer to external variables
Instance:{
// To initialize instance(e.g. properties)
initialize : function(){
// To determine whether or not the com will be destroyed, when the first UI control be destroyed
this.autoDestroy = true;
// To initialize properties
this.properties = {};
}, ...
Read more : Pop dialog outside of parent | Views : 2179 | Replies : 0 | Forum : CrossUI for Web Apps


File read/write

As i understood Node.js can be used:

read:
javascript code
fs = require('fs');
fs.readFile('c:\\test.txt', 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
console.log(data);
});


write:
javascript code
var fs = require('fs');
fs.writeFile("c:\\test.txt", "Hey there!", function(err) {
if(err) {
console.log(err);
} else {
console.log("The file was saved!");
}
});
Read more : File read/write | Views : 2668 | Replies : 0 | Forum : CrossUI for Desktop Apps


 

Login  •  Register


Statistics

Total posts 986 • Total topics 327 • Total members 35

cron