Get Firebug. Not meaning to sound flippant, but debugging with alerts
is painful and living in the past. Firebug will allow you to see
inside the object by doing console.log($tabs). To save you some
frustration, if you try and log a string plus the object to the
Firebug console you'll get [object Object] again.

Then I'd suggest breaking down your selectors: make sure you can
access the target iframe's content from the parent (cross browser if
that's important to you), then make sure you can see the parent window
from the source iframe. Once you've acheived those goals, you can just
concatenate the selectors.

http://getfirebug.com/

On Feb 18, 7:23 am, "m.ugues" <m.ug...@gmail.com> wrote:
> I got this problem
>
> var $tabs = parent.$('#operativitaframe').contents().find
> ('#tabsContainer').tabs();
> alert($tabs);
>
> This prints [object Object];
> how can I know if this is the tabs object instead of something else?
>
> If i cycle on it and print all his content I got this
> length, 0, prevObject, init, jquery, size, get, pushStack, setArray,
> each, index, attr, css, text, wrapAll, wrapInner, wrap, append,
> prepend, before, after, end, find, clone, filter, not, add, is,
> hasClass, val, html, replaceWith, eq, slice, map, andSelf, data,
> removeData, domManip, extend, parent, parents, next, prev, nextAll,
> prevAll, siblings, children, contents, appendTo, prependTo,
> insertBefore, insertAfter, replaceAll, removeAttr, addClass,
> removeClass, toggleClass, remove, empty, height, width, bind, one,
> unbind, trigger, triggerHandler, toggle, hover, ready, blur, focus,
> load, resize, scroll, unload, click, dblclick, mousedown, mouseup,
> mousemove, mouseover, mouseout, change, select, submit, keydown,
> keypress, keyup, error, _load, serialize, serializeArray, ajaxStart,
> ajaxStop, ajaxComplete, ajaxError, ajaxSuccess, ajaxSend, show, hide,
> _toggle, slideDown, slideUp, slideToggle, fadeIn, fadeOut, fadeTo,
> animate, queue, stop, dequeue, offset, position, offsetParent,
> scrollLeft, scrollTop, innerHeight, outerHeight, innerWidth,
> outerWidth, tabs, triggerTab, disableTab, enableTab, activeTab,
> bgiframe, bgIframe, dialog, droppable, draggable, resizable,
>
> var selected = $tabs.data('selected.tabs');
> alert(selected);
>
> This prints out "undefined"
>
> var number = $tabs.tabs('length');
> alert(number);
>
> This prints out  [object Object]
> If I cycle on it I got the same output as above...
>
> I'm going crazy with this problem to access a tab in an iframe from
> another iframe.

Reply via email to