I have a bunch of items in which I can drag and drop inside a Source object. One of those items loads an HTML page in which loads an iframe with a message board inside it. Now, I am able to fully navigate the message board as expected, which is great. However, when I drag it to another location within the Source, it reloads the message board to its index page. Is there a way to stop this behavior?
EDIT: I probably should've posted some of my code, eh?
This is my creator function. "item" has only one property "href" which is a string giving the URL.
function componentCreator(item, hint){
var component = dojo.doc.createElement("div")
dojo.addClass(component, item.href)
dojo.xhrGet({
url: item.href,
preventCache: false,
load: function(response){
component.innerHTML = response
}
})
return {
node: component,
data: item,
type: []
}
}
var component = dojo.doc.createElement("div")
dojo.addClass(component, item.href)
dojo.xhrGet({
url: item.href,
preventCache: false,
load: function(response){
component.innerHTML = response
}
})
return {
node: component,
data: item,
type: []
}
}

I had a similar problem
I had a similar problem where objects were re-initialized when dragged between Source's (and not when dropped somewhere else inside the same Source). What I had to do to get it working was set 'c1.creator = null;' (where 'c1' is the jsId of the Source container) for each Container, after they had their content set.