[jQuery] How to drag link from another window and using the javascript in the main window to intercept the link and add customized handler?

2009-03-16 Thread Jay W
How to drag link from another window and using the javascript in the main window to intercept the link and add customized handler? The goal is to have an event handler in the main window, then whenever a new link from different browser window is dragged into the main window, the dropped link will

[jQuery] event is fired every other time after using jQuery's sortable plugin

2007-12-05 Thread Jay W
I have the following code in a page. everything related to sorting is working well. Each item has a textarea and this textarea has onkeyup event handler. This event handler will only fire every other time. Does anyone know why this is happening? Thanks. $('table.pane').each(function(){ if

[jQuery] Re: Sortable on dynamic content - how to?

2007-12-05 Thread Jay W
You can also use $("ul.items").sortableRefresh() to make all items sortable after dynamically creating an item from javascript. On Nov 12, 5:34 pm, asle <[EMAIL PROTECTED]> wrote: > Thanks, your first suggestion works and is shorter than writing the > sortable code again. > But this does not work

[jQuery] Re: Get the element that's appended directly without using second step?

2007-08-22 Thread Jay W
> var rv = null; > // if contentDocument exists, W3C compliant (Mozilla) > if (parent.document.getElementById(aID).contentDocument){ >rv = parent.document.getElementById(aID).contentDocument; > } else { >// IE >rv = parent.window.frames[aID].document; > }

[jQuery] Re: Get the element that's appended directly without using second step?

2007-08-20 Thread Jay W
indow.document.body); > > Is that what you're looking for? > > --Karl > _ > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Aug 20, 2007, at 11:47 AM, Jay W wrote: > > > > > > > With the help from a few jQuer

[jQuery] Get the element that's appended directly without using second step?

2007-08-20 Thread Jay W
With the help from a few jQuery'ers, the only way to dynamically create and append element using jQuery for multiframe application is $(window.document.body).append(""); This jQuery statement returns window.document.body object. There will be quite a few elements created this way in a same docu

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-14 Thread Jay W
Awesome! :) This is exactly what I needed. It works perfectly in IE and Safari. 5-Stars to your post. Thank you so MUCH! On Aug 13, 11:43 am, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > The basic problem here is that IE has security restrictions about moving > elements between frames. You can't

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-13 Thread Jay W
nd and 3rd method still works in Safari but not in IE. I am not sure whether I implemented the first method as you described correctly or not. Thanks again. On Aug 12, 11:20 pm, "Matt Stith" <[EMAIL PROTECTED]> wrote: > Hmm.. try: > > $("").appendTo($(docume

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-12 Thread Jay W
eating an element is useless too, so > might as well remove the 2nd argument to $ > > On 8/12/07, Jay W <[EMAIL PROTECTED]> wrote: > > > > > Well, Matt, it is only working in Safari, (maybe firefox), not in IE. > > it will get "Invalid Argument" error me

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-12 Thread Jay W
Well, Matt, it is only working in Safari, (maybe firefox), not in IE. it will get "Invalid Argument" error message. Is createElement in IE limited only to that document? On Aug 12, 10:41 pm, Jay W <[EMAIL PROTECTED]> wrote: > Awesome, I just test it and it worked!

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-12 Thread Jay W
need to specify the context when creating new elements, and > appendTo takes 1 argument, try like this: > > $('text').appendTo(window.document); > > untested, but that should work > > On 8/12/07, Jay W <[EMAIL PROTECTED]> wrote: > > > > > Thanks

[jQuery] Re: how to use $(html) to create element in another frame?

2007-08-12 Thread Jay W
Thanks. I tried it using $('new div text here', window.document).appendTo('body'), nothing happened; If I try $ ('new div text here', window.document).appendTo('body', window.document), an "Invalid Argument" error is thrown. Any suggestion? Thanks On Aug 12, 11:43 am, "Matt Stith" <[EMAIL PROTE