Topic
2 replies Latest Post - ‏2013-07-26T05:56:02Z by DilipGupta
DilipGupta
DilipGupta
17 Posts
ACCEPTED ANSWER

Pinned topic Jquery issue on theme customization

‏2013-07-16T14:43:02Z |

While working with theme customization, I have added some JQuery code on theme_en.html file which always returning me an error of 'jquery is undefined'

code for reference is,

<script>
jQuery(document).ready(function() {
alert("welcome");
jQuery(".contextMenu").click(function(event){
event.stopPropagation();
});

</script>

The same code is working fine with other themes where no imports for jquery.js file. 

Just trying to understand in case I am missing any configuration for query in themes customization.

Please help

  • DilipGupta
    DilipGupta
    17 Posts
    ACCEPTED ANSWER

    Re: Jquery issue on theme customization

    ‏2013-07-22T06:13:46Z  in response to DilipGupta

    Any idea on this... plz help

    • DilipGupta
      DilipGupta
      17 Posts
      ACCEPTED ANSWER

      Re: Jquery issue on theme customization

      ‏2013-07-26T05:56:02Z  in response to DilipGupta

      I am able to solve this issue.. 

      Just a brief description of this for those who are facing same kind of issues. 

      Portal theme_en.html work as a portal page. As per theme life cycle, theme html renders first thereafter portlet renders. In case we use jquery js in any of two places. It will load on complete page and there will not any issue related to this.