RE: Pass Context Info to Bootstrap Modal

2013-11-01 Thread Asma Merchant
Hi Thiago, Thanks for all your help! I'd like to post a complete solution so if anyone else gets stuck in the future then he doesn't have to struggle since there are not enough tapestry examples: //tml

RE: Pass Context Info to Bootstrap Modal

2013-10-31 Thread Asma Merchant
I think I am getting close. But what should I put in the blanks? I don't want to create a separate .js file and instantiate class. Is there any short cut? //Java public void afterRender() { String urI = componentResources.createEventLink("changePulseMode").toAbsoluteURI();

RE: Pass Context Info to Bootstrap Modal

2013-10-31 Thread Asma Merchant
I think I am getting close. But what should I put in the blanks? I don't want to create a separate .js file and instantiate class. Is there any short cut? //Java public void afterRender() { String urI = componentResources.createEventLink("changePulseMode").toAbsoluteURI();

RE: Pass Context Info to Bootstrap Modal

2013-10-31 Thread Asma Merchant
Hi Thiago, I appreciate your consistent help! So here's the first piece of code based on your recommendation of adding id to link's href attribute(Please see comments for errors): jQuery(document).ready( function(){ Query(document).on("click", ".pulseMode", function

RE: Pass Context Info to Bootstrap Modal

2013-10-30 Thread Asma Merchant
I am a newbie in Tapestry. I tried to search on web on how to pass parameters from javascript to tapestry but couldn't find much information. Here's my Javascript code: jQuery(document).ready( function(){ jQuery(document).on("click", ".pulseMode", function () { var radioId = jQuer

RE: Pass Context Info to Bootstrap Modal

2013-10-30 Thread Asma Merchant
:55:20 -0200, Asma Merchant <[hidden email]> wrote: > Hi Thiago, Hi! > Thanks for your response. >>> "t:context="literal:whatever you want" > > I still don't understand how to grab the id of radio button that was > clicked. Let me be more c

RE: Pass Context Info to Bootstrap Modal

2013-10-29 Thread Asma Merchant
Hi Thiago, Thanks for your response. >>"t:context="literal:whatever you want" I still don't understand how to grab the id of radio button that was clicked. Let me be more clear: There's a set of 11 radio buttons each with a different id. All radio buttons call same confirm message. If

Pass Context Info to Bootstrap Modal

2013-10-29 Thread Asma Merchant
Hi, I have a set of radio buttons. On clicking a radio button a confirm message is shown. If user selects yes then event is fired, otherwise nothing happens. I have made an event that is to be called on confirm modal. What I can't figure out is how to pass the radio button id or data-id to this ev