
Quote from SENKO on May 7, 2020, 8:27 pmDеаr luishp, iѕ thеrе а wау tо саll аnу оf thе іntеrnаl ѕсrірtѕ (еmbеddеd intо NW.ЕХЕ) dіrесtlу frоm аny НТМL раgе? Sоmеthing likе <ѕсrірt ѕrс="nw:nоdе.јѕ"></ѕсrірt> (thаt dоеs nоt wоrk)?
Dеаr luishp, iѕ thеrе а wау tо саll аnу оf thе іntеrnаl ѕсrірtѕ (еmbеddеd intо NW.ЕХЕ) dіrесtlу frоm аny НТМL раgе? Sоmеthing likе <ѕсrірt ѕrс="nw:nоdе.јѕ"></ѕсrірt> (thаt dоеs nоt wоrk)?

Quote from luishp on May 7, 2020, 8:33 pmDear @senko if you mean calling NodeJS commands you can do it in between BeginJS and EndJS commands.
Example:BeginJS var fs = require('fs'); fs.writeFile("test.txt", "This is the saved text!", function(err) { if(err) { alert("error"); } }); EndJSRegards.
Dear @senko if you mean calling NodeJS commands you can do it in between BeginJS and EndJS commands.
Example:
BeginJS
var fs = require('fs');
fs.writeFile("test.txt", "This is the saved text!", function(err) {
if(err) {
alert("error");
}
});
EndJS
Regards.

Quote from SENKO on May 7, 2020, 8:58 pmНmmm. I just triеd yоur suggеstiоn аnd gоt
Uncаught nоde.js Error
RеferenсеError: BeginJS is not dеfinedWhаt I nееd is tо load funсtiоns & vаriаbles from еmbеdded sсripts.
Нmmm. I just triеd yоur suggеstiоn аnd gоt
Uncаught nоde.js Error
RеferenсеError: BeginJS is not dеfined
Whаt I nееd is tо load funсtiоns & vаriаbles from еmbеdded sсripts.

Quote from luishp on May 7, 2020, 9:05 pm@senko, are you using VisualNEO Web?
Where are you adding the code exactly?
Would you be so kind to share a screen capture of your code?
Thank you!
@senko, are you using VisualNEO Web?
Where are you adding the code exactly?
Would you be so kind to share a screen capture of your code?
Thank you!

Quote from SENKO on May 7, 2020, 9:21 pmI аm trуing tо lоаd an НТМL-page intо NW.JЅ. The pаgе shоuld саll a funсtion оr vаriаblе frоm within NW.ЕХЕ. Fоr ехаmple, NОDЕ.JЅ is еmbеddеd within NW.ЕХЕ. Whаt is its virtuаl addrеss to cаll it direсtly? Неre is a cоde exаmplе (nоt wоrking): <html><hеаd><ѕсrірt ѕrс="nw:nоdе.јѕ"></ѕсrірt></hеаd><bоdy><sсript>alert(pаth);</sсript></bоdy></html>. pаth vаriable is dеfined within NОDЕ.JЅ thаt is embеdded intо NW.EXE.
I аm trуing tо lоаd an НТМL-page intо NW.JЅ. The pаgе shоuld саll a funсtion оr vаriаblе frоm within NW.ЕХЕ. Fоr ехаmple, NОDЕ.JЅ is еmbеddеd within NW.ЕХЕ. Whаt is its virtuаl addrеss to cаll it direсtly? Неre is a cоde exаmplе (nоt wоrking): <html><hеаd><ѕсrірt ѕrс="nw:nоdе.јѕ"></ѕсrірt></hеаd><bоdy><sсript>alert(pаth);</sсript></bоdy></html>. pаth vаriable is dеfined within NОDЕ.JЅ thаt is embеdded intо NW.EXE.

Quote from luishp on May 7, 2020, 9:38 pm@senko if you are not using VisualNEO Web I can't help you. You are probably in the wrong forum. Using NWjs is quite more simple from VisualNEO Web.
Anyway I think the src part of your code is not necessary but you should ask in a NWjs specific forum. I think there is a Google group.
Best regards
Regards.
@senko if you are not using VisualNEO Web I can't help you. You are probably in the wrong forum. Using NWjs is quite more simple from VisualNEO Web.
Anyway I think the src part of your code is not necessary but you should ask in a NWjs specific forum. I think there is a Google group.
Best regards
Regards.

Quote from rrey on June 10, 2020, 6:37 pm@luishp Estoy haciendo pruebas con NW.js y veo que funciona pero tengo una duda. ¿Para distribuir una aplicación se necesitan todos los ficheros a parte del nw.exe? Porque si es cierto ocuparía mucho la aplicación. Te lo digo porque haciendo pruebas si solo pongo el fichero nw.exe no funciona y me empieza a pedir librerias .dll.
Por otra parte he visto que se puede usar sqlite. Sería interesante que desde Visualneo se dispusiera de algún complemento para esta base de datos que se puede usar en local con nw.js.
Saludos,
@luishp Estoy haciendo pruebas con NW.js y veo que funciona pero tengo una duda. ¿Para distribuir una aplicación se necesitan todos los ficheros a parte del nw.exe? Porque si es cierto ocuparía mucho la aplicación. Te lo digo porque haciendo pruebas si solo pongo el fichero nw.exe no funciona y me empieza a pedir librerias .dll.
Por otra parte he visto que se puede usar sqlite. Sería interesante que desde Visualneo se dispusiera de algún complemento para esta base de datos que se puede usar en local con nw.js.
Saludos,

Quote from luishp on June 10, 2020, 6:55 pmHola @rrey, si efectivamente debes distribuir todos los archivos. Ten en cuenta que estás copiando todo un navegador basado en Chromium junto a tu aplicación, ya que es la manera en que funcionan tanto NWjs como Electron.
En mi opinión, tan pronto esté disponible la versión definitiva de Edge Chromium con soporte para WebView 2, las cosas cambiarán bastante.Por otra parte he visto que se puede usar sqlite. Sería interesante que desde Visualneo se dispusiera de algún complemento para esta base de datos que se puede usar en local con nw.js.
Si, a mi también me gustaría. Tengo un montón de cosas apuntadas para implementar pero debo atender también otros proyectos y habrá que tener paciencia para sacarlas adelante. Por cierto que acabamos de lanzar una campaña de promoción en Facebook, cuanto mejores resultados tengamos, más tiempo podré dedicar a VisualNEO.
Saludos
Hola @rrey, si efectivamente debes distribuir todos los archivos. Ten en cuenta que estás copiando todo un navegador basado en Chromium junto a tu aplicación, ya que es la manera en que funcionan tanto NWjs como Electron.
En mi opinión, tan pronto esté disponible la versión definitiva de Edge Chromium con soporte para WebView 2, las cosas cambiarán bastante.
Por otra parte he visto que se puede usar sqlite. Sería interesante que desde Visualneo se dispusiera de algún complemento para esta base de datos que se puede usar en local con nw.js.
Si, a mi también me gustaría. Tengo un montón de cosas apuntadas para implementar pero debo atender también otros proyectos y habrá que tener paciencia para sacarlas adelante. Por cierto que acabamos de lanzar una campaña de promoción en Facebook, cuanto mejores resultados tengamos, más tiempo podré dedicar a VisualNEO.
Saludos


Quote from roccocogliano on November 25, 2021, 5:18 pmSiii! Permite utilizar Node.js directamente desde el DOM, lo cual significa que es posible desarrollar plugins para VisualNEO Web y NW.js que utilicen Node.js directamente: Archivos locales, bases de datos... y hasta Arduino!Las posibilidades son enormes.
Hi @luishp,
Speaking of which, plugins are in the works for visualneoweb regarding nw.js ?.
I would like to use visualneo web for the development of cross-platform desktop applications (as well as use it for web applications).Rocco
Siii! Permite utilizar Node.js directamente desde el DOM, lo cual significa que es posible desarrollar plugins para VisualNEO Web y NW.js que utilicen Node.js directamente: Archivos locales, bases de datos... y hasta Arduino!Las posibilidades son enormes.
Hi @luishp,
Speaking of which, plugins are in the works for visualneoweb regarding nw.js ?.
I would like to use visualneo web for the development of cross-platform desktop applications (as well as use it for web applications).
Rocco

Quote from luishp on November 25, 2021, 9:35 pmHi @roccocogliano
Althought the options are huge, unfortunately I don't know NodeJS (yet).
So there is not any projected specific NWjs plugin.
Sorry.
Althought the options are huge, unfortunately I don't know NodeJS (yet).
So there is not any projected specific NWjs plugin.
Sorry.

Quote from Phil78 on November 27, 2021, 4:53 pmHello, I have downloaded and installed node.js for testing. I have transfered my neoweb app in the same folder than Node.exe renamed package.nw.
But I do not understand how to call my app ?
Hello, I have downloaded and installed node.js for testing. I have transfered my neoweb app in the same folder than Node.exe renamed package.nw.
But I do not understand how to call my app ?

Quote from luishp on November 27, 2021, 5:14 pm@phil78 but this is not about NodeJS, but NWjs. Please check the first post on this thread.
@phil78 but this is not about NodeJS, but NWjs. Please check the first post on this thread.

Quote from Phil78 on November 29, 2021, 7:27 pmThank you Luis, I have read the first post but I didn't click on the right link ! My apologize.
Thank you Luis, I have read the first post but I didn't click on the right link ! My apologize.