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
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
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
> 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;
> }
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
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
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
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
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
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!
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
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
12 matches
Mail list logo