Keyword

Comment form does not clear after submit

  • Stefan Frerichs
  • Stefan Frerichs's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago #60734 by Stefan Frerichs
Comment form does not clear after submit was created by Stefan Frerichs
Good evening,

I've been using K2 for a few months now.

This week I upgraded Joomla to the newest version of 1.5.x (1.5.25).

Everything works great, except for one thing:
When I submit a comment, everything works great; the page refreshes and I'll see the comment. The only thing is, that the comment and the user details will stay in the commenting boxes.

Normally, this would be reset to the default values.

This is the working site: www.stefanfrerichs.nl/koos
This is the site where it goes wrong: www.gowithit.nl/koosupgrade

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

  • Stefan Frerichs
  • Stefan Frerichs's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago #60735 by Stefan Frerichs
Replied by Stefan Frerichs on topic Re: Comment form does not clear after submit
Still haven't found a solution to this.

Is there any way to add a code like this to the refreshing script?

this.form.submit(); document.getElementById('commentText').value='<?php echo JText::_('K2_ENTER_YOUR_MESSAGE_HERE'); ?>'; document.getElementById('userName').value='<?php echo JText::_('K2_ENTER_YOUR_NAME'); ?>'; document.getElementById('commentEmail').value='<?php echo JText::_('K2_ENTER_YOUR_EMAIL_ADDRESS'); ?>'; document.getElementById('commentURL').value='<?php echo JText::_('K2_ENTER_YOUR_SITE_URL'); ?>';"

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


Powered by Kunena Forum