Jpopmessages - no popup for field validation error

  • metmusic
  • metmusic's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago - 5 years 10 months ago #344 by metmusic
metmusic replied the topic: Jpopmessages - no popup for field validation error
Hello,

Unfortunately this dirty code also not works :/ Now my button looks like this :
<button class="button validate" type="submit" onclick="jQuery(this).trigger('click'); jpopmessages();"><?php echo JText::_('COM_JOOMFAQ_FORM_SUBMIT'); ?></button>

Following script is added into <head> </head>block only on this particular page:
<script type="text/javascript">
    (function() {
      var strings = {"JLIB_FORM_FIELD_INVALID":"Niepoprawne pole:&#160"};
      if (typeof Joomla == 'undefined') {
        Joomla = {};
        Joomla.JText = strings;
      }
      else {
        Joomla.JText.load(strings);
      }
    })();
  </script>

also (empty) message container is in the place before showing messages (joomla standard):
<div id="system-message-container">
	</div>
Last Edit: 5 years 10 months ago by metmusic.

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

Fork me on GitHub
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information Ok