Hola ! Tengo un problema al querer enviar un formulario con el plugin
ajaxForm , porque lo que quiero hacer es enviar una imagen que cargo en un <input type="file"> al parecer este plugin lo que hace es cargar un IFRAME en la pagina. En Firefox y Chrome funciona correctamente, el problema es en IE8, IE9 e IE10
El error que me dice la consola de internet explorer es el siguiente:
SCRIPT5: Access is denied. jquery.js, line 3 character 3769 Este es el codigo
Código Javascript
:
Ver originalvar options = {
type : 'post',
target: '#responsesElements',
dataType: 'json',
success: function(data) {
mostrarInfo(data);
}
};
// Este envia el formulario
jQuery("#submit11").click(function() {
alert("aa2");
jQuery('#ContentFormPicture form').ajaxForm(options);
});
function mostrarInfo(data) {
alert("aa3");
var path_img = data.user_image;
jQuery.ajax({
async: true,
url: "ajax_img",
type: "post",
success: function (data) {
var img = '<img src="'+ data + '" />';
alert(img);
jQuery("#responsesElements #contImg").html(img);
jQuery("#responsesElements").fadeIn('slow');
}
});