Question 1:
How do I suppress Cancel button click event of Save As dialog box to make sure that my users click save button only?
Question 2:
How do I prevent users from creating New folder while Save As dialog box is open?
Question 3:
How do I prevent users from changing the current folders path while Save As dialog box is open?
Your help is much appreciated in advance
Kindest Regards
Lucky Khoza
You will need to use Windows Hooks and trap the messages sent to the dialog box and take appropriate action. EasyHook can help you in developing the hook.
The following article can also help you
Related
I am using React Router's Prompt to show a prompt if the user is navigating from the page without saving their changes. I want to give the user an option to save or discard the changes they have made in the form.
I can show the prompt but cannot handle the user's click. I cannot save anything if the user clicks on the ok button. I checked the doc and didn't find any way of doing it.
Please help me to solve this issue. Thanks in advance.
When my app has an open dialog e.g. dlg.show(); and the screen turns off by timeout the active and displayed dialog is disappeared after turning on the screen again. I'd like to have the dialog still preset.
Is there a good/recommended way to fix/workaround this behavior?
For a solution, I could imagine one of the following approaches, but could not find further information:
Disabling screen timeout globally for the app.
Disabling screen timeout for dialog specifically.
Using another dialog type (modal, modeless or interaction) that keeps staying.
Maybe there are other ways to fix this?
Use a variable that you store the state of in Preferences. Perhaps a Boolean so when the dialog shows it is true, and if someone exits the app you save it in preferences (you can use exit form action or add something to the lifecycle methods). When the app restarts, get the state from Preferences and display the dialog again if the variable is true.
You could use and integer or string if there are multiple possible dialogs that you might need to show.
I'm developing an application with sencha touch and phonegap, and I have been created a component extending TextField class. It works this way:
The user taps the field
The application open a modal with a calendar inside it
The user taps the number representing the day he wants to choose
The modal closes and set his value on the textfield.
I wanna know if is there a way to when the user taps the TextField, the keyboard don't appear.
Thanks.
PS: Sorry my bad english, I wish you could understand ^^
I have been solved my problem just adding readOnly: true on my textfield.
Thanks for everyone who tried to solve it.
Mobile devices with software keyboards often change the keyboard when filling in a web form to allow the user to submit with one click and avoid jabbing at the 'submit' button of the form.
How can one access this functionality from a phonegap/cordova/other HTML5 app?
I struggled with this for a while, so gonna share the answer here.
This blog post by Matt Nunes showed me that the type="submit" input should be the first button in the form.
Once you know this, you might be satisfied, but I wanted to hide the button - why have it when you want the user to use their keyboard? For an outline of how to do this, check out this related question - Is it too much to ask to have an invisible button on jQuery Mobile?
Effectively, when the user taps the 'go' button on their soft keyboard, it shows up to the browser as a click on the submit button. Therefore,
(1) Override the default event
(2) Profit.
Hopefully this helps someone.
I have the standard upload file form from the ExtJS documentations, I create form.Panel with with xtype:filefield and an open and Submit button. And as it is by default when I click Open the browser window is opened and I can choose a file, and then Submit it for saving. But now I\m asked to bypass this and leave only a button with name Open directly on the toolbar and clicking it to open directly the browser window. I don't know even if this is possible and how to do it.
thanks
Leron
Am I understanding this correctly? You need to have a just single button on the page - user clicks button, gets file open dialog and when he presses 'OK' on that dialog form is submitted?
Take a look at the second sample 'Button only'
http://dev.sencha.com/deploy/ext-4.0.0/examples/form/file-upload.html
You are going to want to listen to the filefield.change event, and submit your form when that fires. Example:
http://jsfiddle.net/62gmq/3/