I was able to get this to work with further experimentation.  I switched to 
jQuery-UI as you hinted and now it is working. I put an example of what I 
did on github so it may help others.  https://github.com/greaneym/d3jsweb2py

Thank you, Niphlod,

Margaret

On Tuesday, June 11, 2013 10:13:36 AM UTC-5, Niphlod wrote:
>
> usually with tabs you have to re-initiate your "something" as soon as the 
> tab is shown because the element is hidden when the onload event is fired 
> when loading the page.
> This happens, e.g., with google maps loaded in query ui tabs, so probably 
> d3 has the same exact issue.
>
> Il giorno martedì 11 giugno 2013 16:55:54 UTC+2, Ramos ha scritto:
>>
>> I had problems also with fullcalendar inside twitter bootstrap tabs
>> The fullcalendar only works in the first tab. Moving it to next tabs 
>> bring problems....
>>
>>
>> 2013/6/11 greaneym <grea...@gmail.com>
>>
>>> I am learning D3 to use it in an app for visualization but having 
>>> problems with multiple graphs loading when I only want one to show per menu 
>>> selection.
>>>
>>> Using the bootstrap welcome app, I am able to load d3 examples using a 
>>> tabbable nav menu, however, once loaded they do not go away between 
>>> clicking tabs.
>>>
>>> Is the javascript functionality (below) to unload a default in web2py or 
>>> do I have to put
>>> some code in to force an unload inbetween selections of the tab menu?
>>>
>>> <body onunload="SomeJavaScriptCode">
>>> window.onunload=function(){SomeJavaScriptCode};
>>>
>>> I've also tried the following,
>>>
>>> 1. use a controller function that uses redirect to a url as in Massimo's 
>>> Processing JS example, but that effect then loses the ability to use the 
>>> tab menu.
>>>
>>>
>>> 2. instead of LOAD ing paths, I made the D3 views into files.js and 
>>> LOADed those but the behavior is still the same. The graphs load but don't 
>>> disappear between tab selections, or some of them do not.
>>> (
>>> http://stackoverflow.com/questions/14389974/how-do-i-get-different-tabs-to-load-separate-javascript-files
>>> )
>>>
>>> There are likely many ways to do this, but I haven't been successful yet 
>>> at finding an answer.
>>>
>>> Thanks for any help.
>>>
>>>  -- 
>>>  
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to web2py+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to