-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt to use function to call processing rather than upload immediately after choosing file(s) #36
Comments
Try calling .change() on the file input or initializing the ajax upload ~ J (via phone)
|
I tried to initialize the ajax upload in the $(document).ready(function), but I think that perhaps because the form resides within a dialog (modal) window, possibly the DOM changes, so the initializing has to occur all over again when the dialog window is showing. I was able to find a work-around by specifying the submit button used to process the form (calls the data processing proxy function) with: |
If this is still an issue, could you post the code your using and I'll take
|
you can use the item 'submit_button':$("#iconsu"),// bind a button click event |
First of all, thanks for this function; it's excellent!
I've been trying to implement this as part of another function, so I'm not using it as part of the jquery document ready:
$(document).ready(function(){
$('input[type="file"]').ajaxfileupload({
'action': 'uploadfile.cfm'
});
I'm attempting to call it from another function that is called by a button on my form:
<input type="button" name="btnAction" id="btnAction" value="UPDATE RECORD" onClick="recordAddUpdate(this.form);" >
within the function recordAddUpdate(theForm) to call the ajaxfileupload I have:
...
$('#uploadImage').ajaxfileupload({
'action': 'bsl-editor/bslupload.cfm',
'submit_button': $('#btnAction')
});
...
This works, but only after the "UPDATE RECORD" button is pressed twice
I see in your javascript that the first time the function processes, nothing occurs because it's processing the "ajaxUploader-setup" as true and initializing.
How can I have it both set up (initialize) and process with only a single call to the function?
Thanks!!
The text was updated successfully, but these errors were encountered: