Hallo there!
I am trying to load the ItemsCommentsForm on a popup window. In the item.php i have placed this code:
<a href="#test" style="cursor:pointer" title="Show popup" rel="{size: {x: 250, y: 300}, ajaxOptions: {method: "get"}}" class="modal">
Show popup
</a>
<div style="display:none">
<div id="test">
<div class="itemCommentsForm">
<?php echo $this->loadTemplate('comments_form'); ?>
</div>
</div>
</div>
it indeed loads the template in a popup window.But when i hit the submit button, i am redirecting to a blank page with the message:
{"message":"Comment added! Refreshing page...","refresh":1}
i think my mistake is in the "item_comments_form.php" in the line:
<form action="<?php echo JURI::root(true); ?>/index.php" method="post" id="comment-form" class="form-validate">
maybe should i change something in the action?because it`s something wrong with the refresh..