i am developing a form builder, is simple, just dragging form elements to a droppable container, all works well but im showing to my friends and... surprise!!! doesn't work in Internet Exploiter, i am a linux user with firefox, im looking in internet how fix it but i dont find it, if somebody knows how fix it or a web site with good information about scriptaculous and prototype with IE please i'll be grateful
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Droppables.add('formulario', {
accept:'elementos',
onDrop:function(element){
var izq = 0;
var top = 0;
var id_elemento = $(element).firstChild.id + '_' + i;
var dimensions = Element.getDimensions(element.firstChild);
var width = dimensions.width + 30 + 'px';
var height = dimensions.height;
nodoNuevo = Builder.node($(element).firstChild.nodeName, {id:id_elemento});
if($(element).firstChild.id == 'editTexto')
nodoNuevo.innerHTML = $('editTexto').innerHTML;
izq = findPosX(element) - 400 + 'px';
sup = findPosY(element) + 'px';
nodoContenedor = Builder.node('div',{id:'div_'+id_elemento});
Element.setStyle(nodoContenedor, {position: 'absolute',
left: izq, top: sup,
border:'1px solid #091C5A',
width:width,
height:height
});
nodoContenedor.setAttribute('class', 'elem_form');
nodoContenedor.appendChild(nodoNuevo);
$('formulario').appendChild(nodoContenedor);
nodoJs = Builder.node('script', {type:'text/_javascript_'});
nodoJs.innerHTML = "new Draggable('div_"+id_elemento+"', {revert:false})"; //<< the IE says the problem is HERE
$('divjs').appendChild(nodoJs);
i++;
},
hoverclass:'formulario-activo'
});
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
the IE says the problem is in that line when i put an text in the nodoJs with innerHTML
regards
--
//
// Ing. Francisco J. Calderón S.
// [EMAIL PROTECTED]
// Usuario de GNU/Linux nº 349529
// Maracay, Venezuela
//
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs