-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't generate chart inside ajax tabs #4
Comments
Hi, DO you set the JSON parameter in JavaSCript like in your previous issue ? I think the problem come from this initialization. It is done when the page is rendering (when the container of your future chart is not yet in the DOM). So when you change the tab, highcharts send an error (Communication with the server failed: Highcharts error #13: www.highcharts.com/errors/13 IT is the same ?), because it do not have the JSON parameter. You can maybe create your own HighCharts component, and add a JavaScript file (with your configuration), and execute it before the highcharts script, by using the INitializationPriority.EARLY attribute of the addInitalizerCall method. |
Hi Manu, I'm not sure I follow what your saying. Yes, the code in my previous post is the code I'm using in this task. I'm building my json object in @AfterRender which the script does make it's way to the dom. javascript.addInitializerCall(InitializationPriority.EARLY, "basicComponent", obj); I wasn't seeing any highchart errors, but I will look for that this evening. Not quite sure what you mean by building my own HighCharts component? Are you referring to me building my own as opposed to me using yours? |
In fact, the solution is setting the JSONObject in JavaSCript before the 2012/7/18 George Christman <
Emmanuel DEMEY Twitter : @EmmanuelDemey |
Hi, I am having the same issue. So how could this be fixed? I have my chart inside a zone which is updated when a user has selected the things to view on the graph, so at that time the IF statement enclosing the graph is now true, and decides to show the graph, however I am having that error in AFTER RENDER failure reading parameter options. Thanks in advance. |
Hi, Sorry for the delay, I had a lot of work on other projects. Here a sample with an actionLink, refreshinga zone with a chart : <t:ActionLink t:zone="zone">Zone/t:ActionLink
/t:zone
@InjectComponent private Zone zone; You have to be careful of the jQuery selector, when a zone is refreshed, function basicComponent(spec){ 2013/1/6 fcolopezlagunas [email protected]
Emmanuel DEMEY Twitter : @EmmanuelDemey |
Hi Manu, I've placed my chart in a component that is loaded within the Tapestry-jQuery tab component, "Ajax Configuration". I can't seem to get it to generate my chart when loading the component with the tab, I need to actually refresh the page to get the basicComponent function to fire. Is there a way to get this to fire when the ajax tab loads rather than forcing a page refresh?
The text was updated successfully, but these errors were encountered: