You are not logged in.
Pages: 1
Is there any demo about that?
I had look for this, but found nothing.
Offline
e.g. I defines a type TMyClass = class; in delphi code, then I want use this type in js:
var mycl = new TMyClass();
In delphi-javascript wrap, it could be very easy.
Offline
Using a delphi class from JavaScript via RTTI would be very helpful!
e.g. i have a delphi class like this:
type
TApp = class
public
procedure alert(msg: string);
end;
and can call this class like this:
app.alert('hello world');
This can be done with previous implementations like
http://delphi-javascript.googlecode.com/svn/trunk
vote +1!
Best regards
Dirk
Offline
This would need the enhanced RTTI, so would work only with Delphi 2010 and up.
Arnaud, I'm not sure, but from the past discussions I remember mpv had such a plan, or has this feature (as demonstrated by tueddy above) been implemented?
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
I did not have news from mpv since weeks.
Hope everything is OK in his part of Ukraine.
There is indeed some custom JavaScript virtual object, ready to access Delphi class properties and methods.
But it is not tested nor fully integrated yet.
Offline
ab, I wish mpv is well. Has the .dll source code of mozjs-24.dll wrapper been published yet? If we don't have that, we'll be stuck.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
I wish mpv will see this discussion and will reply.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
@edwinsn - we prepare all patches and build instruction for SpiderMonkey - I send sources to AB.
@tueddy & win2014 - Yes, we add ability to share Delphi classes with SpiderMonkey. For my main product (commercial) we already done this year ago and now we migrate this part of sources to the Syn*. The main problem is support of both "old" RTTI and new RTTI. I think we solve it in a month.
Our implementation is much speed-efficient compared to http://delphi-javascript.googlecode.com/svn/trunk
Offline
Hi mvp,
thanks for information! Looking forward,
Best regards
tueddy
Offline
@edwinsn - we prepare all patches and build instruction for SpiderMonkey - I send sources to AB.
@tueddy & win2014 - Yes, we add ability to share Delphi classes with SpiderMonkey. For my main product (commercial) we already done this year ago and now we migrate this part of sources to the Syn*. The main problem is support of both "old" RTTI and new RTTI. I think we solve it in a month.
Our implementation is much speed-efficient compared to http://delphi-javascript.googlecode.com/svn/trunk
Seems good news! Exciting!
I write some "processor-oriented" code fix my question, even they looks ugly, but works.
Offline
Pages: 1