Skip to content Skip to sidebar Skip to footer

Javascript Form Won't Submit

I have been using the uploader as provided by http://www.hoppinger.com/blog/2010/05/28/file-upload-progress-bar-with-phpapc-and-javascript/ and have since applied it to one of my f

Solution 1:

It turned out that the javascript wasn't adding the APC_UPLOAD_PROGRESS tag to the form so I added the following jQuery after the initilisation:

<scripttype="text/javascript">jQuery(document).ready(function(){

        var id = jQuery("form").attr('id');

        jQuery("form").submit(function(){

            jQuery(this).append("<input type=\"hidden\" name=\"APC_UPLOAD_PROGRESS\" value=\""+id+"\" />");

        });

    });

</script>

And now it's all good.

Post a Comment for "Javascript Form Won't Submit"