[jQuery] embedded elements and document.ready

2009-03-18 Thread redcom

Hello

I have a question:

Is there a way to know if a custom plugin is ready to work with?

I have a inhouse build of a video player , don't have the load event
or any other type of event.

i use in html:  embed id='VideoWin1' class='videoWin'
type='application/mozilla-npwindow-plugin' width='150' height='150' /

 and in a .js file i added $(document).ready( functions);

this functions contain some logic but sometime when i load the file
the video is embed element is not display or can not work with it
since was not fully loaded.


How can i execute a function after the embed element was loaded or the
document is fully workable?




[jQuery] unbind all events from jquery 1.3.2

2009-03-16 Thread redcom

Hello
I have a custom application build on top of gecko 1.9 and using
spidermonkey and some c++ calls js-c++-js


When i reload one application page i get some events triggered after
the page has been loaded.
The GC is destroying my objects and html elements some how, but the
events remain attached.

Is there a possibility to unbind all events at once?

I tried: $(window).unload(function () {
$(document).unbind(); or $(body).unbind(); or $(document,
window).unbind();

});

but the events are still somewhere in a cache system.

Can or is there a flag that i can set and prevent jquery to use cache?

The jquery is 1.3.2


[jQuery] Re: unbind all events from jquery 1.3.2

2009-03-16 Thread redcom

isn't this ie specific?

On Mar 16, 8:50 pm, MorningZ morni...@gmail.com wrote:
 *maybe*

 $(*).unbind();

 all your code is looking at the document itself and then the body
 tag itself

 On Mar 16, 2:44 pm, redcom red...@gmail.com wrote:

  Hello
  I have a custom application build on top of gecko 1.9 and using
  spidermonkey and some c++ calls js-c++-js

  When i reload one application page i get some events triggered after
  the page has been loaded.
  The GC is destroying my objects and html elements some how, but the
  events remain attached.

  Is there a possibility to unbind all events at once?

  I tried: $(window).unload(function () {
  $(document).unbind(); or $(body).unbind(); or $(document,
  window).unbind();

  });

  but the events are still somewhere in a cache system.

  Can or is there a flag that i can set and prevent jquery to use cache?

  The jquery is 1.3.2


[jQuery] help needed with new node replace

2008-09-22 Thread redcom

If anyone knows a jQuery way to replace a node and return the new node
object that would be great (replaceWith returns the old object)