<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to solve $ is not defined in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391529#M9633</link>
    <description>&lt;P&gt;&lt;LI-USER uid="17395444"&gt;&lt;/LI-USER&gt;&amp;nbsp;You need to make sure the jquery is defined before this line of code is executed.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 06:47:30 GMT</pubDate>
    <dc:creator>Asutosh_Jena_</dc:creator>
    <dc:date>2020-12-21T06:47:30Z</dc:date>
    <item>
      <title>How to solve $ is not defined</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391527#M9632</link>
      <description>&lt;P&gt;I have a js function using $ in it.&lt;/P&gt;&lt;P&gt;My function uses $get(). and works fine when this function is called from HTL but if I add the function in document.load&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$(&lt;SPAN class=""&gt;document&lt;/SPAN&gt;).load(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;function&lt;/SPAN&gt; () &lt;/SPAN&gt;{
    alert(&lt;SPAN class=""&gt;"alert"&lt;/SPAN&gt;);
});&lt;/PRE&gt;&lt;P&gt;then I get $ is not defined in console.&lt;/P&gt;&lt;P&gt;Only the function which is called&amp;nbsp; in HTL(Sightly) works.&lt;/P&gt;&lt;P&gt;I'm using AEM 6.3.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 06:48:42 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391527#M9632</guid>
      <dc:creator>Vinit_Pillai</dc:creator>
      <dc:date>2020-12-21T06:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve $ is not defined</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391529#M9633</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17395444"&gt;&lt;/LI-USER&gt;&amp;nbsp;You need to make sure the jquery is defined before this line of code is executed.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 06:47:30 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391529#M9633</guid>
      <dc:creator>Asutosh_Jena_</dc:creator>
      <dc:date>2020-12-21T06:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve $ is not defined</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391530#M9634</link>
      <description>Sorry If I don't underdstand this I'm new. Can you please elaborate on how can I make sure it is defined?</description>
      <pubDate>Mon, 21 Dec 2020 06:50:22 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391530#M9634</guid>
      <dc:creator>Vinit_Pillai</dc:creator>
      <dc:date>2020-12-21T06:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve $ is not defined</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391531#M9635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17395444"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the page where you are getting error, right click on the page and click view source and in source search(Ctrl+F) for jquery. Make sure that jquery loads in head section of your page.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;document.&amp;nbsp;&lt;/STRONG&gt;is Javascript and will work without error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(document). $&amp;nbsp;&lt;/STRONG&gt;is jquery framework, we should load it before using it on page.&lt;/P&gt;&lt;P&gt;-AG&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 07:06:11 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391531#M9635</guid>
      <dc:creator>Anudeep_Garnepudi</dc:creator>
      <dc:date>2020-12-21T07:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve $ is not defined</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391532#M9636</link>
      <description>Please make sure to include the jquery plugin on the head section and your JS code should be loaded in the footer section.</description>
      <pubDate>Mon, 21 Dec 2020 07:11:58 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391532#M9636</guid>
      <dc:creator>Asutosh_Jena_</dc:creator>
      <dc:date>2020-12-21T07:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve $ is not defined</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391571#M9637</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17395444"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First thing,&amp;nbsp;&lt;SPAN&gt;Jquery should always load before the execution of your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Second thing,&amp;nbsp;&lt;/SPAN&gt;It happens mainly because of your &lt;EM&gt;&lt;STRONG&gt;clientlib&lt;/STRONG&gt; &lt;/EM&gt;category /dependencies order.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 13:07:25 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/391571#M9637</guid>
      <dc:creator>Suraj_Kamdi</dc:creator>
      <dc:date>2020-12-21T13:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve $ is not defined</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/442369#M126354</link>
      <description>&lt;P&gt;If you are using any script file and getting "Uncaught ReferenceError: x is not defined " which means ‘x’ is either a variable or a method which you are trying to use before declaring it using var keyword. This means that there is a non-existent variable referenced somewhere. This variable needs to be declared, or you need to make sure it is available in your current script or scope otherwise , it will endup throwing this ‘x’ is &lt;A href="http://net-informations.com/jq/iq/defined.htm" target="_self"&gt;not defined&lt;/A&gt; error . This usually indicates that your library is not loaded and JavaScript does not recognize the ‘x’.&lt;/P&gt;&lt;P&gt;To solve this error: Load your library at the beginning of all your scripts.&lt;/P&gt;&lt;P&gt;There can be multiple other reasons for this issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Conflict with Other Libraries&lt;/LI&gt;&lt;LI&gt;Path to your library included is not correct&lt;/LI&gt;&lt;LI&gt;Llibrary file is corrupted&lt;/LI&gt;&lt;LI&gt;Working offline (when you use CDN)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 04:57:50 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-solve-is-not-defined/m-p/442369#M126354</guid>
      <dc:creator>markaldo</dc:creator>
      <dc:date>2022-02-28T04:57:50Z</dc:date>
    </item>
  </channel>
</rss>

