Note that there are some explanatory texts on larger screens.

plurals
  1. POJoomla 2.5 not loading JS scripts through article?
    primarykey
    data
    text
    <p>In Joomla 2.5 I have installed DirectPHP, which I have used extensively in Joomla 1.6 to embed PHP in Joomla articles. It works very well. I usually just for one include in the article, like this:</p> <pre><code>&lt;?php include "my_cool_script.php"; ?&gt; </code></pre> <p>Then I make my code in <code>my_cool_script.php</code>. One thing I often do is include more JS or CSS scripts in the page, right through the article, but putting the following lines in <code>my_cool_script.php</code>:</p> <pre><code>&lt;link rel="stylesheet" type="text/css" media="screen" href="/scripts/css/dark-hive/jquery-ui-1.8.21.custom.css" /&gt; &lt;link rel="stylesheet" type="text/css" media="screen" href="/scripts/css/ui.jqgrid.css" /&gt; &lt;script src="/scripts/js/jquery-1.7.2.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/scripts/js/jquery-ui-1.8.21.custom.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/scripts/js/i18n/grid.locale-en.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/scripts/js/jquery.jqGrid.src.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>This has always worked in the past, with Joomla 1.6. Now in the Joomla 2.5 install. The rest of the PHP and HTML is loading in the article, and there aren't any errors on the page as far as loading the scripts. I look at the HTML code and I can see the above lines written to the page, but I cannot access any of the jQuery functions, like the script was not loaded. I get an error when I try to use any jQuery syntax. I know this script was working, because I just moved it from another site, running joomla 1.5 to the new one, 2.5.</p> <p>Does anyone know anything about why the scripts aren't loading?</p> <p><strong>EDIT</strong></p> <p>Well i guess the script was loading, but it didn't like that used the <code>$</code> symbol. I changed them all to <code>jQuery</code> and it works.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload