Im making upload image from mobile to website. When user click on upload button i will disable "save" button until image is uploaded. But when user cancel upload after click on upload button, i dont know how to detect that event to enable "save" button. I found this solution How to detect when cancel is clicked on file input?
But It's only work on desktop. On mobile, cancel action is total different.
Another way you can do that, instead of disabling the save button, is to hide the save button when user clicks on upload. When user clicks on cancel button, you can display save button again.
Related
I have project that require save something to database after click print button on browser print dialog (window.print).
I have try onafterprint based on How to detect window.print() finish
but when i click cancel or close it still save to database.
any idea how to save to database only on click print button ?
i am developing a website, in our website we have a Video player, and a Download button. When user click to it, it will download the video to user machine.
Usually this can be done if user right click and choose Save Video as. Then a native browser dialog open, where user can choose destination and file name, then click save. After that in the bottom of the browser there will be a widget to show progress, and user can click to open after it finishes downloading
Now my question is it possible if we create a similiar functional widget but in the website. So basically after user clicking Download. This modal will appear in the bottom left of the page
Then after downloading is finished, it will change to
So to sum up the requirement for this
1/ Trigger download automatically by JS without right click and choose Save video as
2/ Showing a custom progress of downloading
3/ When downloading is finished, there is a custom button, where user can click to Open
4/ [Optional] Hide the native progress/click to open widget of the browser
So these requirement i still not sure which one is possible and which one is not, so hopefully if someone can give me a direction, thanks
I am new to Wordpress and stuck to one problem, I have many buttons and if user click on that particular button then form popup and also the pdf link transfer and on submit button click which present on popup form that pdf link get trigger.
I have some pages with file browser input.
Everything works fine, but to prevent the user to click the Add Files button many times or to click in some another link in the page I want to make only the file browser window clickable (Gmail have this feature when you want to attach some file in the email for example).
I don't want to use
e.preventDefault()
Because when the user choose the file or cancel the file browser I need to enable the button again.
So basically I just want to "block" clicks outside of File Browser Window.
Someone have some idea how to do it ?
I'm building a page where a user can upload multiple files through uploadify. I'm trying to do it so when the user has selected which files to upload, he can click a button to hide the upload queue and go about doing other things, and later he can click a button to bring up the uploads panel again and see the progress.
However it seems that if the upload button is hidden, then uploadify cancels any ongoing uploads.
What can be done about this?
You can change the height of the container div to 0 rather than hiding it. It works.