Samsung Galaxy Note, 4G LTE Plans, Transfer Photos Videos from iPhone to Samsung, Network Performance, Mobile Accounts, Furious Gold SPD TooL, Latest Version Full Setup

Info Displaying a Bootstrap Modal in Rails with an AJAX call

Info Displaying a Bootstrap Modal in Rails with an AJAX call - this blog we have built from a few years ago and already very much information about gadgets that we convey and a lot of blog visitors New Blog Techno News who are satisfied with the information, we will always try to update the latest information for you, first about Info Displaying a Bootstrap Modal in Rails with an AJAX call many already we collect data to make this article so you do not miss the news, please see:

Articles : Info Displaying a Bootstrap Modal in Rails with an AJAX call
full Link : Info Displaying a Bootstrap Modal in Rails with an AJAX call

You can also see our article on:


Info Displaying a Bootstrap Modal in Rails with an AJAX call

I am in the process of building a simple Learning Management Solution. I wanted to display a Bootstrap modal pop-up on click of the Add Capsules button. The idea was that on click of this button, an AJAX call should be made to the server, with the current Learning Path ID, so that it can query the DB, and find the potential capsules to be returned for the learning path. I would return an HTML snippet as response, which I wanted to insert into the body of the modal.

See screenshot below of how it looks:

Bootstrap Modal Pop up on click of Add Capsules button (with Ajax response body)












Check out this commit on Github to see the work that was needed: Bootstrap Modal Commit. The comment on the Github explains the details. It was actually quite easy once you know how.

I believe instead of sending an HTML snippet from the backend, a better practice is to send JSON data, and then construct the HTML at the browser via javascript. I guess, I could do that too, but this was really simple to do. I might modify it to return JSON some time in the recent future.

Reference:



articles Info Displaying a Bootstrap Modal in Rails with an AJAX call finished in discussion

hopefully the information we convey about Info Displaying a Bootstrap Modal in Rails with an AJAX call can benefit you in getting new knowledge about technology,

you just finished reading the information Info Displaying a Bootstrap Modal in Rails with an AJAX call we hope this informmation can answer the question you submit to googlle, if you want to bookmark or share please use link https://moymoycikukecik.blogspot.com/2014/02/info-displaying-bootstrap-modal-in.html and do not forget to always visit this blog to get the latest information every day.

Tag :
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : Info Displaying a Bootstrap Modal in Rails with an AJAX call

0 komentar:

Posting Komentar