sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

Can sciter.js be used in the golang? #302

Closed 2vl closed 3 years ago

2vl commented 3 years ago

Can sciter.js be used in the golang? Can only use sciter.tis?? Is there a plan to support it?

pravic commented 3 years ago

Sciter.JS should work as is. Sciter.Tis should work as is. And, it seems, will be supported for a while and eventually dropped.

2vl commented 3 years ago

My tests found that sciter.js cannot be applied to golang. How does golang use sciter.js? Is there a corresponding example? Thank you very much.

pravic commented 3 years ago

Your tests are failing most likely due to #299.

2vl commented 3 years ago

Yes, it is. Our problem's solved. Thank you. It seems that sciter.js is not a standard javescript, basic : alert ("text") does not support, Vue.js or similar frameworks can't be used, right? I do not know what javescript standard functions sciter.js supports?

pravic commented 3 years ago

Better ask those questions on http://sciter.com/forums

In a few words, it is a standard JavaScript language. But the runtime library has some differences (e.g., a global alert() function you mentioned).

dzcpy commented 3 years ago

So that means go-sciter doesn't support js?

pravic commented 3 years ago

Sorry, what do you mean?

dzcpy commented 3 years ago

I mean can I use js as script language with go-sciter?

pravic commented 3 years ago

Yes.

2vl commented 3 years ago

So that means go-sciter doesn't support js?

no, support js, need use sciter-api branche