[jQuery] PopupWindow Plug-in Not working on AJAX output
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