JavaScript function call

2009-12-27 Thread gilbert F.
Hello, I just wonder if somebody has met this problem. I need to call a javaScript function within "". {% for v in data %} showDomainTable ('{{v.publisher_id}}', '{{v.country_id}}');

Re: JavaScript function call

2009-12-28 Thread Kevin Renskers
What you are doing is not valid html, you can't put a script tag inside a tr tag. Try something like this: showDomainTable('{{v.publisher_id}}', '{{v.country_id}}'); But even then, inline javascript is something better avoided. I would just create a function that is run as soon as the

Re: JavaScript function call

2009-12-28 Thread Masklinn
On 28 déc. 2009, at 10:26, Kevin Renskers wrote: > But even then, inline javascript is something better avoided. Especially, in this case, because there is no garantee whatsoever that the element has already been created and added to the document's DOM. -- You received this message because yo

Re: JavaScript function call

2009-12-28 Thread gilbert F.
Hi Kevin, Thanks so much for your replies. Following your suggestions I have moved tag out of .