Good News,

I was able to solve the problem using another plug-in -- Live Query
(http://brandonaaron.net/docs/livequery/#getting-started).

Here is my modified pop-up window code:

var profiles = {
    windowCenter:{
        height:550,
        width:750,
        toolbar:1,
        scrollbars:1,
        status:1,
        resizable:1,
        center:1
    }
};

$('.popupwindow').livequery(function(){
    $(this).popupwindow(profiles);
});

Matthew

On Sep 7, 9:45 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I have a quick question --
> I'm using the plug-in "PopupWindow" (http://rip747.wordpress.com/
> 2007/03/02/the-return-of-popupwindow-jquery-plugin/) to open new
> windows and it works great.
>
> However, I can't seem to get it to work on AJAX output.
>
> I have some data coming from my database which have links (some are
> marked with the PopupWindow formatting -- see example in the next
> paragraph) but will not open in a new window.
>
> I'm guessing it doesn't work because the AJAX occurs after the
> document has been written (DOM) and the attributes (rel="windowCenter"
> class="popupwindow") of the link aren't read in to memory because they
> don't exist at the time the DOM is built and thus the plug-in doesn't
> see these links and won't open them in a new window.
>
> Does that sound like the problem?  Does anyone have any ideas how to
> fix it?
>
> Thanks in Advance,
> Matthew

Reply via email to