I have an application which stores and displays data from the database...
On the page displaying records i have put a button which when clicked it asks for confirmation(bootstrap modal) and then delete data in the database
I am using bootbox to display the alert box for confirming user action,it is doing just fine and displaying the bootbox but with an overlay and the bootbox buttons are not clickable
Can anyone assist me on how to do this...I am stuck for almost 3hrs now
Related
I have a View/Edit button in my angular application which shows the details of user in a modal when clicked In modal it has Save and delete buttons. When they click on delete button the user will be deleted. Before they delete, I want to show a delete confirmation.
So, I'm showing the delete confirmation modal inside the first modal.
Now, I want to dismiss the two modals when they click on final delete button. I tried using
data-dismiss= "modal" so that the modal closes automatically, but this is closing only the second modal which is above the first modal. How would I close both modals at a time?
And also I feel that this is not a good idea to have 2 modals like this. Is there any alternative to this?
Thanks!
Please let me know if any code or more information is needed
does anyone have any advice on how I may go about regenerating a Ninja form after successful submission or by a button click event?
To explain, I am using a ninja form in a popup/modal. The modal is displayed and form appears when a user clicks on 'enquiry' button.
Each time a user clicks to open the modal popup containing the form I would like the form to be reset/regenerated instead of showing the success message from a previous submission.
I have tried using CSS to hide the success message and show the form whenever someone clicks the enquiry button. Whilst this displays the form fine, the submit button doesn't seem to work in the same fashion - it still sends mail but it doesn't show the 'processing' message.
Anyone got any advice on a solution I could use?
Thanks in advance!
You should be able to edit a setting in the form editor that handles that:
Advanced > Display Settings > Clear successfully completed form
I am using selectize.js in a project. I'm using laravel 4.2. When user posts a form and then clicks back button, the form's input values that user write are displaying on the screen. But selectboxes created by using selectize are empty.
How can I display selected values of selectboxes created by using selectize when user clicks back page button on a web browser?
Can anybody help with this issue?
I have a simple ASP.NET page with a Grid view (pulling data form SQL-DB), a textbox and a save button.
To add info; the user Inputs info into Textbox and press Save Button. When the user clicks on save button, s/he is presented with a JavaScript pop up saying “Saved”
Everything is working perfectly fine; the only problem I am having is; after this JavaScript pop up the Grid view just zooms.
How can I fix it?
Response.Write("<script>alert('Saved')</script>");
Zooms
The contact in the Grid view expends in size However goes back to normal after a Page refresh.
Try this one, instead of Response.Write()
ClientScript.RegisterStartupScript(this.GetType(), "scriptSave", "alert('Saved');", true);
I got a question. I'm using the jQuery modal dialog plugin to let user input some data that will be saved in a database. My dialog can actually have two states which users can choose from by selecting a radio button inside the dialog box. The problem I'm having is that I lose some of the styles on my dialog box when the user selects a radio button. Also, how do I make it so that when the user saves the input data on the dialog box, after the dialog has closed, I want to load the new data live on the current page (with without the user having to refresh the page to see the changes).
Any idea?
As suggested by the other guys, you should give us some code for your first question.
For your second question, The jQuery Modal Dialog plugin picks up a div from the DOM and converts it to the modal dialog. So all the controls which are available inside the modal dialog can be access with normal jQuery.
Also, you can assign a function to be executed when the OK or Cancel buttons are clicked inside the modal dialog. Have a look here:http://jqueryui.com/demos/dialog/#option-buttons
So what you can do is, when the "OK" button is clicked, your function will pickup all the values which are inside the controls on the modal dialog and assign them to the controls on the current page.
Hope this helps.