I have a form that pops up in a modal window in an iframe and when the
form is submitted the modal window doesn't close automatically, which
is what I need. I looked at Andrew Eddie's example (http://
www.theartofjoomla.com/home/6-layouts/16-layout-overrides-popup-login-box.html)
for doing the login form as a modal popup and noticed his example
doesn't set a value of {handler: 'iframe', ... in the link's rel attr,
but instead sets a value of {ajaxOptions: {method: "get"}, ...
So I tried this:
<a class="modal"
href="index.php?
option=com_mycomp&task=training.takeCourseEnquiry&course_id=<?php echo
$row->course_id; ?>&id=0&tmpl=component"
rel="{ajaxOptions: {method: 'get'}, size: {x: 640, y: 480}}">
Enquiry
</a>
When I try this I get the following error reported in Firebug:
uncaught exception: [Exception... "Could not convert JavaScript
argument arg 0 [nsIDOM3Node.compareDocumentPosition]" nsresult:
"0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
http://mydomain/cms/media/system/js/mootools-core.js :: <TOP_LEVEL> ::
line 1" data: no]
http://www.lexius.co.uk/cms/media/system/js/mootools-core.js
Line 1
I googled for "mootools modal" and found links for plugins, but wasn't
sure what Joomla comes with.
Can anyone help?
TIA,
Nick