using jquery-ui-togglebox.js on a site to give a user an option to
have multiple accordions open.  I added onclick event on the div to
load source into iframe.  However, I need to only load the source into
iframe when the togglebox is active.  Does anyone know how I can
determine if togglebox is active?

togglebox div:
<div id="toggleboxes" onclick="loadIFrame('iframe-${iframe}','$
{mstrObject.firstChild.objectUrl}');">

my js:
function loadIFrame(iframeId, reportUrl){

                                 var isActive2 =  
$(".toggleboxes1").toggleboxes( "option",
"active");
                                 alert('isActive2:' + isActive2);

                                var iframe = document.getElementById(iframeId);
                                iframe.src=reportUrl;
                        }

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.

Reply via email to