It is currently Thu Aug 17, 2017 9:32 pm

News News of UI Development & Deployment

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

For discussing development & deployment issues

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 : 3501 | 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 : 3758 | 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 : 2777 | 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 : 3155 | 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 : 2158 | 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 : 2605 | 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 : 2129 | 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 : 2601 | Replies : 0 | Forum : CrossUI for Desktop Apps


Distributed UI Module function

Is it possible to call a function in a module that has been loaded using the distributed UI model.

I have a form loading as a module based on a previous selection and see how to interact between index.js and module1.js.

It is my lack of knowledge in JS causing the problem.

Also in CrossUI debug is it possible to get the PHP calls working. I can't find any useful help on debug

Thanks
Kevin
Read more : Distributed UI Module function | Views : 4621 | Replies : 5 | Forum : CrossUI for Web Apps


calc workflow, control-name-independent, available statuses

Example shows how to calculate available statuses for transition.

Enter status name into 'Input' control and press 'show'

Blue - is anavailable blocks
Yellow - current status
Green - available for transition

// 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 ...
Read more : calc workflow, control-name-independent, available statuses | Views : 2257 | Replies : 0 | Forum : CrossUI for Web Apps


 

Login  •  Register


Statistics

Total posts 983 • Total topics 324 • Total members 35

cron