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), then

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 niph...@gmail.com 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

[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 script type=text/javascript jQuery('#mp_257').click(function(){ jQuery('#test').html('Test') //alert(Test) }) /script to script

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 niph...@gmail.com 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 script type=text/javascript

[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 div div id=test/div {{=A('Link to comp', component=URL('research', 'mycomponent.load'),

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 div