I have a requirement of not using radio buttons to track a 'Yes' or 'No' option in a dialog box. Instead use something like a prompt which will have Yes, No and Cancel as prompts. (No explicit Submit button unlike in the above case). Is there anyway to do this using extjs 3.3/3.4?
I have been reading the documentation but do not see any support for prompts. Any help or ideas on this will be greatly appreciated.
Thanks
there is Ext.Msg library to use.
http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.MessageBox
Related
I am currently working on project and i have requirement to use java script input dialog to take input from user
see example
now i want to remove this check box which says that prevent this page from creating additional dailogs
how i can remove this message from alert box
You cant remove because it's introduced by browser.
To solve you problem try to employ http://bootboxjs.com/, whit this library you ca do the same by writing:
bootbox.prompt("Enter password please", function(result) {
// do something whit result
});
You can't remove this as it's a browser security feature. You should probably look at other ways of presenting your dialog - use a modal window instead for example.
So what you want to do it's IMPOSSIBLE. Since it's a browser functionality.
Anyway I advice you to use a Model-Box.
You will:
- Prevent that from happen
- Beautify your website.
You may want to check this: http://www.fallr.net/ I've used it's pretty cool and easy. Tou have the PROMPT-LIKE example wich returns you something written by the user. You can also have a CALLBACK to some AJAX function for example.
So you can't remove it make that clear for you at least for now.
Dont use alert system boxes they are ugly.. really..
Hope it helped!
i fount the answer
We have two different things going on here...
I'm suggesting adding a preference to about:config (or user.js in your
profile folder).
Copy the preference name dom.successive_dialog_time_limit Open
about:config Right-click in the preferences area and choose New >
Integer Paste the preference name and click OK Then enter 0 and click
OK
for more details chek this link
Prevent this page from creating addtional dialogs
Is it possible to custom style the javascript's "Confirm Function" dialog box, instead of using the the default look and feel that is provided by the browser? If not is there an alternative solution to this?
if you want to custom look for confirm box , you need to use jalert javascript for that.
check link below hope it will help you.
http://labs.abeautifulsite.net/archived/jquery-alerts/demo/
you can not style javascript "confirm function" dialog box because its default option if you want to do the same then you have to create your own dialog box with the help of Javascript/jQuery and CSS
E.g. http://demos.9lessons.info/alert_delete.html
Just wondering if there was an easy way to change the 'yes', 'cancel' titles on the confirm box window in javascript? Just seems a bit limiting if not!
The Yes, No, Cancel is a browser's basic feature, which cannot be modified. But you can make alternates like: Yes or No confirm box using jQuery
Now I use return confirm(Message); when need confirmation in a form. that cause displaye a form with two button OK and Cancel. Is there any way to change the buttons text in displayed form? I need to change buttons to another language? what is your suggestion?
Since you tagged jquery, jQuery UI Modal Confirm is definitely worth a look
Working fiddle: http://jsfiddle.net/naveen/GR2UT/
You can't change the button text on a native confirm box. You can program your own modal dialog, which would give you control to what's in the buttons. In this jsfiddle you'll find a plain javascript example. Or use JQuery, like naveen suggested.
I am familiar with the basic JavaScript confirm function. I want to take one step further: instead of having a message box pop up with the options of "OK" and "Cancel", I would like to add three options and change the dialog so that the three choices read "Confirm", "Deny", and "cancel". A "Confirm" or "Deny" choice would each call a different function. Any suggestions on how to do this?
I am not using JQuery or any other library, and i really don't want to use any if I can help it, as it's just this one function. Any help would be appreciated.
You will want to look into making a custom dialog from a div, and assign click events to the buttons. You can't modify the browser's standard dialogs without using VBScript which is IE only.
The fact that you don't want to use JQuery is quite silly. It's 31k and the best thing to ever happen to JavaScript.
If you want to avoid JQueryUI, you can create a dialog yourself very easily. Here's a tutorial to get you started: http://www.queness.com/post/1696/create-a-beautiful-looking-custom-dialog-box-with-jquery-and-css3
AFAIK, you cannot change the button prompt strings with just using pure JS. It has to be 'OK' and 'Cancel'.