Hi all. I see the obvious "simplemodal-close" class, which by default
will close the modal object.
However, the problem I am having is that the modal div's html is being
populated by an ajax call for a remote page. The response'd HTML
contains the "simplemodal-close" class, however its not being parsed
because it is being loaded after the modal object's creation.

So to recap:
simplemodal-close works fine for items parsed at creation, however
when loading html from a remote source using an ajax call; it fails
because it doesn't parse the response'd html.
Any ideas on how to attach the event OR to call the close method
directly?
I have tried things like $('#modalDiv').modal().close().... however to
no avail.

Thanks in advance...
Tim

Reply via email to