[jQuery] Re: yet another frames-related problem

2009-02-02 Thread Cequiel
I think you should use the 'load' event helper.Something like this: var iframe = document.getElementById('iframe_id); $(iframe).load(function() { // here you can manipulate the iframe content var doc = iframe.contentDocument; $('#someDiv', doc).click(function() { // code here

[jQuery] events, lock and unlock

2009-02-02 Thread Cequiel
Hi everybody, I have the next silly problem: $(myobject).bind('myevent', function() { var anotherobject = new MyCustomObject(); $(anotherobject).bind('anotherevent', function() { // code here }); }); and then I write these two lines: $(myobject).trigger('myevent'); $(myobject).trigge