Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

347
Vistas
ASP.NET prevent jquery-ocupload plugin make form.submit()

Old ASP.NET Classic site(NETFramework 4) was working fine with this jQuery Plugin - https://github.com/andreyfedoseev/jquery-ocupload/blob/master/jquery.ocupload.js - page with this uploader worked outside ASP.NET.

But I rebuild this site and PopUp Windows with uploader I have placed inside ASP.NET form tag and place it on ASP.NET page.

After that this Uploader stop working. This Uploader has Submit function.

        submit: function () {
            if (this.onSubmit()) {

                $('input[type=hidden]', form).remove();

                $.each(options.params, function (key, value) {
                    form.append($(
                    '<input ' +
                        'type="hidden" ' +
                        'name="' + key + '" ' +
                        'value="' + value + '" ' +
                    '/>'
                ));
                });

                $('input[name=uploadtime]', form).val(getNTime());
                form.submit();

How to correct modify this submit function (where is correct place to add e.preventDefault()) and maybe need something modifying (additionally to EnableEventValidation="false") in ASP.NET?

On the screen below there is a wrong place, submit still don't working.

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I have understand what happens. Button "Обрати файл" (Select file) is dummy stub, this is not a real button

And real upload button follow mouse. If width of dummy button is wrong click never happens to real upload button.

Screen below demonstrate this scene. I increase <form height and width and add red border to form to better understanding.

enter image description here

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda