PDA

View Full Version : Help Needed in DD (Newbie)



franzisk
5 Jul 2007, 12:11 PM
I have a JsonView that loads images, I want to drag them (the pictures) and drop inside a HtmlEditor field, and when do that I want the url of the image file be inserted in the field.

My JsonView:

var setupMarketingImages = function(){
var thumbTemplate = new Ext.Template(
'<div class="thumb-wrap" id="{id}">' +
' <div class="thumb"><img src="http://MY_SERVER/marketing/thumb/{filename}" title="{filename}"></div>' +
'</div>'
);
var imageViewer = new Ext.JsonView("images", thumbTemplate, {
jsonRoot: "images"
});
imageViewer.load({
url:"action_setMarketing.php",
params: "type=1",
text:"Loading Image Files..."
});
};

I really have no idea how to play with drag-and-drop, this is my first time using, so any idea how to do that would be welcome.

Thanks