Forums

Modal Iframe doesn't open in frontend view - Joomla 2.5

danielitob 19 Nov, 2013
Dear all, i have a problem.
I used the modal iframe in other site correctly but now it doesn't work .
I create a form "padre" with a custom element:
<?php
JHTML::_('behavior.modal');
?>
<html>
<body>
<a class="modal" href="index.php?option=com_chronoforms&chronoform=figlio&tmpl=component" rel="{handler: 'iframe', size: {x: 600, y: 600}}"><?php echo 'padre';?></a>
</body>
</html>


and in OnLoad event : Show html

Then i create a second form "figlio"and i put in OnLoad event : Show html .

If i click on frontend view of the first form (padre) ,when i click on the link, the modal iframe doesn't open as popup, but as a normal page.

If i click on test form of the first form (padre) , when i click on the link, the modal iframe open as popup.

Why it works so? The problem is that i have to active any plugin?

I hope someone help me.
Thanks in advance
Daniele
danielitob 19 Nov, 2013
Dear all,
i have tried to restore these two forms on an another site and the modal popup in frontend view works correctly. So, the problem is in my site' s template? Because in test form, where the template was not been loaded, the modal popup opens correctly.
It can be a problem with mootols o js ?
Because i have a problem also with my slider, which it doesn't load the image.
Can anyone help me?
Best regards
Daniele
GreyHead 19 Nov, 2013
Hi Daniele,

Sounds like you need to check the page for JavaScript errors. Please post a link to the form so I can take a quick look.

Bob
danielitob 26 Nov, 2013
Dear GreyHead,dear all,
can someone help me?
thanks in advance
regards
daniele
GreyHead 27 Nov, 2013
Answer
Hi daniele,

The page without the template works OK. There are some JavaScript errors on the page with the template that need to be fixed.

Uncaught TypeError: Cannot call method 'set' of null layout.js line 13



Bob
This topic is locked and no more replies can be posted.