Hi. This is a tough nut to crack: Is it possible to use jQuery in a Dreamweaver extension? These extensions use the following syntax to reference the extension and the actual document which the extension will modify:
document.forms[0].elements[1] // refers to the extension file's form element
var dom = dw.getDocumentDOM(); // gets the DOM of the current document
var firstImg = dom.images[0];
firstImg.src = "myImages.gif";
You can have SCRIPT library tags in an extension file (which is a *.htm file), so we should be able to include the jQuery library for use. The trick is how to reference the current document DOM and the extension's DOM to get a handle on various objects in the extension and the current doc. Anyone have any thoughts or solutions? Thanks :)