Il giorno lun, 27/02/2012 alle 16.09 +0100, Adam D. Ruppe ha scritto: > On Monday, 27 February 2012 at 09:46:51 UTC, Andrea Fontana wrote: > > Can you call custom (external, from 3rd party libs) > > JS functions from there? > > Yes, just make: > > extern(js) void function_name_here(...);
Good! > > and you can call it. For jQuery, you'd probably want > to define an extern(js) class JQuery {} with all its method > names. Since so many of them take strings, I think this would > actually be somewhat easy. About jquery: i mean what about a d function similar to $() jquery function for better elements handling (instead of getElementById() )