I am not sure if this is a JQuery conflict, but I am running Joomla 2.5.6 and the ARI Smart Content component.
I have the following code in a Custom HTML module:
Code: |
<script language="javascript" type="text/javascript">
function pop(form) {
alert("About to show fancybox!");
{arijfancybox url="http://www.google.com" title="Google"}
Show google site
{/arijfancybox}
}
</script>
<form id="myform" name="myform" method="post" onsubmit="pop(this);">
<input name="Search" type="submit" value="Submit" />
</form>
|
When I click submit, the JavaScript alert shows up just fine, but then nothing happens and no fancy box appears.
Please advise.