Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-30 Thread Juan E. Maya
yep, i just checked and FLOT uses jQuery so that's the problem for sure. On Thu, Jul 30, 2009 at 10:53 AM, Ciaran Wood wrote: > I think the problem here is that the javascript that FLOT is expecting is > clashing with the prototype javascript library that tapestry imports. When > you use prototype

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-30 Thread Ciaran Wood
I think the problem here is that the javascript that FLOT is expecting is clashing with the prototype javascript library that tapestry imports. When you use prototype, $ evaluates to a function that expects either a DOM element or the id of a DOM element. Does FLOT use jquery prehaps? If so, you mi

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-30 Thread Juan E. Maya
Ignacio that's nothing related with tapestry. U should understand what u r trying to achieve with ur javascript and do it. do u know what does the $ symbol means before a function and why should that be used? The problem is not related tapestry. 2009/7/30 Ignacio González Arboleya : > Now I can s

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-29 Thread Ignacio González Arboleya
Now I can see the problem: I've tried to execute other kind of javascript codes and they work fine. The problem is that FLOT needs the following code to execute: $(function () { var d1 = []; for (var i = 0; i < 14; i += 0.5) d1.push([i, Math.sin(i)]); var d2 = [[0, 3], [4, 8

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-29 Thread Juan E. Maya
so ur adding the javascript :) This piece of code tells tapestry to add the javascript: renderSupport.addScript( " var d1 = [];" + " for (var i = 0; i < 14; i += 0.5)"+ "d1.push([i, Math.sin(i)]);"+ "var d2 = [[0, 3], [4, 8

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-29 Thread Ignacio González Arboleya
This is what I have: class "ShowMediciones.java": _ package com.mundor.internet.interfazweb.web.pages.monitorizacion; import java.text.DateFormat; import java.util.List; import java.util.Locale; import org.apache.tapestry5.RenderSupport; import org.ap

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-29 Thread Juan E. Maya
The line inside the Tapestry.onDOMLoaded function must be the one that is causing the problem. are u sure u aren't adding that line? 2009/7/29 Ignacio González Arboleya : > Hi, > >   I have no erros, it's just that the chart that should be loaded it isn't. > However, if I delete those 2 lines, it

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-29 Thread Ignacio González Arboleya
Hi, I have no erros, it's just that the chart that should be loaded it isn't. However, if I delete those 2 lines, it is load perfectly...

Re: Problem with Tapestry.onDOMLoaded when generating java script

2009-07-29 Thread Juan E. Maya
Hi Ignacio, what kind of problem are u having? do u get an specific error? have u tried to use firebug to debug the javascript and fine the problem? I am pretty confident the problem is with the javascript u have written and not Tapestry's 2009/7/29 Ignacio González Arboleya : > Hi everybody, > >