2 thoughts on “Thanks”

  1. Hello Arvind,

    Firstly, thanks for such a great plug-in. Secondly, I would like to have my issue fixed on my website that I am confronting while implementing Ajaxify.

    http://sibisoft.com:8085
    is the URL of my website and developed in liferay CMS.
    I implemented the following basic script in the head of the master file;
    jQuery(document).ready(function () {
    jQuery(‘#content-ajaxify’).ajaxify();
    });
    as this is the CMS so the content/pages are dynamically generated through the following code;

    #if ($selectable)
    $theme.include($content_include)
    #else
    $portletDisplay.recycle()
    $portletDisplay.setTitle($the_title)
    $theme.wrapPortlet(“portlet.vm”, $content_include)
    #end

    It’s working fine but my browser is getting heavy as well as console is getting errors which I am not aware of. After removing ajaxify, everything goes fine.

    Please help me with it so I can be 100% confident using it.

    Thanks in advance.
    Farhan

    1. Hi Farhan,

      thanks for using Ajaxify and posting the enquiry!

      I had a look and can verify, that Ajaxify is being loaded correctly as such. Initial load is performed alright, too…
      You’re using the default values, which is fine.

      Had a look at the console (in Chrome).
      There are indeed quite a few errors, I would suggest addressing the first one, as the subsequent errors might “bubble up” from the first one(s).

      The first error is:

      Liferay.Portlet.list (Cannot set property ‘list’ of undefined)

      …which means that

      Liferay.Portlet

      is undefined.

      You mentioned, that everything works fine, when Ajaxify is disabled.
      So it might be timing problem, or a LifeRay file not being loaded correctly. I can see, that the LifeRay object is being defined in an inline-script in the head. That might be being called each time around, which might irritate LifeRay. Please also check out the functionality(parameter switches) available for handling inline-scripts within Ajaxify.

      Sorry, that I can’t be more specific at the moment…

      Thanks again and
      Regards,
      Arvind

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2005-2016, 4nf.org. All rights reserved.
Latest update: 17. November 2016