M
Michael Wolf
Hello,
I'm using Walter Zorns DHTML Drag & Drop Library.
(http://www.walterzorn.com/dragdrop/dragdrop_e.htm)
The main method SET_DHTML is used with the name of the HTML-element
which you want to drag or drop.
Example:
<img name="myName" ... />
SET_DHTML("myName");
Furthermore you can add additional parameters:
Example:
SET_DHTML("myName"+NO_DRAG);
My problem is, that I want to call this method dynamically where the
name of the hatml-tag is in a variable.
My straightforward approach:
function myFunction(nameOfHTMLElement){
SET_DHTML(nameOfHTMLElement+NO_DRAG);
}
That does not work. While searching the web I found that the topic has
already been discussed here in the list, but the solution has not been
posted.
http://www.thescripts.com/forum/thread471194.html
Does anybody know how to do this?
Thanks for your help,
Michael Wolf
I'm using Walter Zorns DHTML Drag & Drop Library.
(http://www.walterzorn.com/dragdrop/dragdrop_e.htm)
The main method SET_DHTML is used with the name of the HTML-element
which you want to drag or drop.
Example:
<img name="myName" ... />
SET_DHTML("myName");
Furthermore you can add additional parameters:
Example:
SET_DHTML("myName"+NO_DRAG);
My problem is, that I want to call this method dynamically where the
name of the hatml-tag is in a variable.
My straightforward approach:
function myFunction(nameOfHTMLElement){
SET_DHTML(nameOfHTMLElement+NO_DRAG);
}
That does not work. While searching the web I found that the topic has
already been discussed here in the list, but the solution has not been
posted.
http://www.thescripts.com/forum/thread471194.html
Does anybody know how to do this?
Thanks for your help,
Michael Wolf