Keyword

ItemCommentsForm load as popup

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 2 weeks ago #118501 by George Nasis
ItemCommentsForm load as popup was created by George Nasis
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: &quot;get&quot;}}" 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..

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 1 week ago #118502 by George Nasis
Replied by George Nasis on topic Re: ItemCommentsForm load as popup
No one?????
Is it so difficult????
:/

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum