javascript - How to pass data to and from a bpopup jquery window -


i new using jquery , javascript website programming might simple question. implemented bpopup windows webpages , work great far. questions how send data , bpopup window @ though. below code calling javascript.

function editpopupbutton(){     $('edit').bpopup({modalcolor: 'grey'}); } 

this view javascript shows

<div id="edit" style="display: none;">   <span class="button b-close"><span>x</span></span>       #renders view here using ruby on rails code  </div> 

and finally, here element calls javascript make happen.

<button> onclick="editpopupbutton()"> edit </button> 

so since new of this, not sure how provide data sent popup window/the view being rendered. first guess put in call javascript editpopupbutton(); function parameter, once in method, don't understand how make available view data. if makes major difference in how done, making website in ruby on rails.

any , explanation highly appreciated.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -