SET_DHTML, Walter Zorn, dynamic name

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top