Re: [web2py] Re: REF: Component + Javascript

2013-04-18 Thread Teddy Nyambe
Ok let me start simple see where i get. Will share what i get On Thu, Apr 18, 2013 at 9:34 AM, Niphlod wrote: > you can't load a html fragment "at wish". The second LOAD is found, it > triggers the loading: it's not the way to do it. > > Still, until you can't find out why you can't attach an e

Re: [web2py] Re: REF: Component + Javascript

2013-04-18 Thread Niphlod
you can't load a html fragment "at wish". The second LOAD is found, it triggers the loading: it's not the way to do it. Still, until you can't find out why you can't attach an event to your button, all the remains of the discussion is useless: let's start simple (single button in the page), the

Re: [web2py] Re: REF: Component + Javascript

2013-04-17 Thread Teddy Nyambe
The button has a href="#mymodal" calling a modal window. What I want is to pass an ID to the modal window. I have a LOAD() in the modal window. so in essence the situation is i have a grid listing with each row a button, then click a button calls a modal window which has a {{=LOAD('c','a', args='x'

[web2py] Re: REF: Component + Javascript

2013-04-17 Thread Niphlod
are you sure that the button has not yet an event attached that prevents your "custom" one ? On Wednesday, April 17, 2013 12:15:03 PM UTC+2, software.ted wrote: > > I have a component am loading in a > > {{=A('Link to comp', component=URL('research', 'mycomponent.load'), > target='setting-cont

Re: [web2py] Re: REF: Component + Javascript

2013-04-17 Thread Teddy Nyambe
No luck, still quiet no activity. How can i debug jQuery? On Wed, Apr 17, 2013 at 12:20 PM, Niphlod wrote: > you're attaching a jquery event to an element that when the script is > executed is not yet present (it's loading...) > > try to rewrite your > > > jQuery('#mp_257').click(**function(

[web2py] Re: REF: Component + Javascript

2013-04-17 Thread Niphlod
you're attaching a jquery event to an element that when the script is executed is not yet present (it's loading...) try to rewrite your jQuery('#mp_257').click(function(){ jQuery('#test').html('Test') //alert("Test") }) to jQuery(document).on('click', '#mp_257', function(){