Tech News World, Contacts Samsung Galaxy, Windows 8, Nokia Lumia, Quad Core Smart Phones, HTC smartphone, Google Nexus, MacBook, PayPal

Saturday, February 1, 2014

Displaying a Bootstrap Modal in Rails with an AJAX call

Displaying a Bootstrap Modal in Rails with an AJAX call - Although I work in the office and a lot of work that makes me tired but still I make a blog Tech News World and still will update it for you because this is part of my hobby who likes the world of technology, especially about the gadget, now we will discuss first about Displaying a Bootstrap Modal in Rails with an AJAX call because it is the topic that you are now looking for, please refer to the information I provide in the guarantee for you,

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

You can also see our article on:


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:



so much information about Displaying a Bootstrap Modal in Rails with an AJAX call

hopefully information Displaying a Bootstrap Modal in Rails with an AJAX call can provide useful knowledge for you in getting information about the latest gadgets,

just finished your reading article about Displaying a Bootstrap Modal in Rails with an AJAX call if you feel this article useful for you please bookmark or share using link http://aziin5teens.blogspot.com/2014/02/displaying-bootstrap-modal-in-rails.html for more people know

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

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

0 comments:

Post a Comment