<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged javascript</title>
<link>https://www.question2answer.org/qa/tag/javascript</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to inject Javascript in the between codes?</title>
<link>https://www.question2answer.org/qa/99063/how-to-inject-javascript-in-the-between-codes</link>
<description>I've been analyzing the code but still can't get the idea of how I could inject some Javascript scripts between the codes. &lt;br /&gt;
&lt;br /&gt;
The thing that caught my eye is this - $qa_content['script_rel'] but have no idea how it works. Is there like a function like this-&amp;gt;output() as I seen on the themes?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/99063/how-to-inject-javascript-in-the-between-codes</guid>
<pubDate>Sat, 15 Jan 2022 11:17:21 +0000</pubDate>
</item>
<item>
<title>is It posiball to make q2a site in javascript without php ?</title>
<link>https://www.question2answer.org/qa/98336/is-it-posiball-to-make-q2a-site-in-javascript-without-php</link>
<description></description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/98336/is-it-posiball-to-make-q2a-site-in-javascript-without-php</guid>
<pubDate>Tue, 14 Dec 2021 20:47:15 +0000</pubDate>
</item>
<item>
<title>Unexpected response from server - please try again or switch off Javascript.</title>
<link>https://www.question2answer.org/qa/93984/unexpected-response-server-please-again-switch-javascript</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I'm getting this error `Unexpected response from server - please try again or switch off Javascript.` when answering a question, after I clicked &amp;quot;Add answer&amp;quot;. The actual response from the server is `HTTP 418 I'm a teapot'.&lt;br /&gt;
&lt;br /&gt;
It's a clean installation of Q2A. I've only added the Markdown editor and a custom theme (derived from &amp;quot;Classic&amp;quot;, I've only changed some CSS). It's hosted on a shared hosting.&lt;br /&gt;
&lt;br /&gt;
Question2Answer version: 1.8.6&lt;br /&gt;
Build date: 2021-04-20&lt;br /&gt;
Q2A database version: 67&lt;br /&gt;
Database size: 1.5 MB&lt;br /&gt;
PHP version: 7.4.15&lt;br /&gt;
MySQL version: 5.7.28-log&lt;br /&gt;
&lt;br /&gt;
This is what is shown in the error log:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
[Sun Jun 13 22:16:51.540416 2021] [:error] [pid 29994:tid 140051224971008] [client ...] [client ...] ModSecurity: Warning. Pattern match &amp;quot;(?:^|[\\\\/])\\\\.\\\\.(?:[\\\\/]|$)&amp;quot; at ARGS:qa_root. [file &amp;quot;/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-930-APPLICATION-ATTACK-LFI.conf&amp;quot;] [line &amp;quot;71&amp;quot;] [id &amp;quot;930110&amp;quot;] [msg &amp;quot;Path Traversal Attack (/../)&amp;quot;] [data &amp;quot;Matched Data: ../ found within ARGS:qa_root: ../&amp;quot;] [severity &amp;quot;CRITICAL&amp;quot;] [ver &amp;quot;OWASP_CRS/3.3.0&amp;quot;] [tag &amp;quot;application-multi&amp;quot;] [tag &amp;quot;language-multi&amp;quot;] [tag &amp;quot;platform-multi&amp;quot;] [tag &amp;quot;attack-lfi&amp;quot;] [tag &amp;quot;paranoia-level/1&amp;quot;] [tag &amp;quot;OWASP_CRS&amp;quot;] [tag &amp;quot;capec/1000/255/153/126&amp;quot;] [hostname &amp;quot;wotas.net&amp;quot;] [uri &amp;quot;/&amp;quot;] [unique_id &amp;quot;...&amp;quot;], referer: &lt;a href=&quot;https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt&quot; rel=&quot;nofollow&quot;&gt;https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
[Sun Jun 13 22:16:51.540835 2021] [:error] [pid 29994:tid 140051224971008] [client ...] [client ...] ModSecurity: Warning. Pattern match &amp;quot;(?:^|[\\\\/])\\\\.\\\\.(?:[\\\\/]|$)&amp;quot; at ARGS:qa_root. [file &amp;quot;/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-930-APPLICATION-ATTACK-LFI.conf&amp;quot;] [line &amp;quot;71&amp;quot;] [id &amp;quot;930110&amp;quot;] [msg &amp;quot;Path Traversal Attack (/../)&amp;quot;] [data &amp;quot;Matched Data: ../ found within ARGS:qa_root: ../&amp;quot;] [severity &amp;quot;CRITICAL&amp;quot;] [ver &amp;quot;OWASP_CRS/3.3.0&amp;quot;] [tag &amp;quot;application-multi&amp;quot;] [tag &amp;quot;language-multi&amp;quot;] [tag &amp;quot;platform-multi&amp;quot;] [tag &amp;quot;attack-lfi&amp;quot;] [tag &amp;quot;paranoia-level/1&amp;quot;] [tag &amp;quot;OWASP_CRS&amp;quot;] [tag &amp;quot;capec/1000/255/153/126&amp;quot;] [hostname &amp;quot;wotas.net&amp;quot;] [uri &amp;quot;/&amp;quot;] [unique_id &amp;quot;...&amp;quot;], referer: &lt;a href=&quot;https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt&quot; rel=&quot;nofollow&quot;&gt;https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
[Sun Jun 13 22:16:51.624707 2021] [:error] [pid 29994:tid 140051224971008] [client ...] [client ...] ModSecurity: Access denied with code 418 (phase 2). Operator GE matched 7 at TX:anomaly_score. [file &amp;quot;/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-949-BLOCKING-EVALUATION.conf&amp;quot;] [line &amp;quot;150&amp;quot;] [id &amp;quot;949110&amp;quot;] [msg &amp;quot;Inbound Anomaly Score Exceeded (Total Score: 10)&amp;quot;] [severity &amp;quot;CRITICAL&amp;quot;] [ver &amp;quot;OWASP_CRS/3.3.0&amp;quot;] [tag &amp;quot;application-multi&amp;quot;] [tag &amp;quot;language-multi&amp;quot;] [tag &amp;quot;platform-multi&amp;quot;] [tag &amp;quot;attack-generic&amp;quot;] [hostname &amp;quot;wotas.net&amp;quot;] [uri &amp;quot;/&amp;quot;] [unique_id &amp;quot;...&amp;quot;], referer: &lt;a href=&quot;https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt&quot; rel=&quot;nofollow&quot;&gt;https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
I'm not sure what is happening... how can I fix this?&lt;br /&gt;
&lt;br /&gt;
I was able to answer the question after disabling javascript, so I think this is a problem with the ajax request. In particular it appears to be an issue with the `qa_root: ../` parameter.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/93984/unexpected-response-server-please-again-switch-javascript</guid>
<pubDate>Mon, 14 Jun 2021 05:39:44 +0000</pubDate>
</item>
<item>
<title>is it possible to add javascript source to $qa_content?</title>
<link>https://www.question2answer.org/qa/83103/is-it-possible-to-add-javascript-source-to-%24qa_content</link>
<description>

&lt;p&gt;I want to make a page and add a javascript source after a&amp;nbsp;div element. my code is like this:&lt;/p&gt;

&lt;pre&gt;public function process_request($request)
	{
		$qa_content = qa_content_prepare();

		$qa_content['title'] = qa_lang_html('example_page/page_title');
		$qa_content['error'] = 'An example error';
		$qa_content['custom'] = '&amp;lt;div&amp;gt;custom html&amp;lt;/div&amp;gt;';

		
		$qa_content['script'] = '&amp;lt;script type=&quot;text/javascript&quot; src=&quot;'.$this-&amp;gt;directory.'myscript.js&quot;&amp;gt;&amp;lt;/script&amp;gt;';

		return $qa_content;&lt;/pre&gt;

&lt;pre&gt;}&lt;/pre&gt;

&lt;pre&gt;
&lt;/pre&gt;

&lt;p&gt;But it doesn't work.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/83103/is-it-possible-to-add-javascript-source-to-%24qa_content</guid>
<pubDate>Sun, 26 Apr 2020 09:25:13 +0000</pubDate>
</item>
<item>
<title>Problem of adding javascript in Q2A</title>
<link>https://www.question2answer.org/qa/79281/problem-of-adding-javascript-in-q2a</link>
<description>Hello everybody!&lt;br /&gt;
&lt;br /&gt;
I have a question to ask your opinion.&lt;br /&gt;
&lt;br /&gt;
I am struggling with this from quite some time but cannot find any soltion. I have a really long blog-type post with lots of paragraphs that I have added as a question in my Question2Answer website.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;I would like to put adsense code after let's say the 3rd paragraph, but there is no way to do it without modifying the php code. I read the Q2A documentation and from what i understood, i need to change the qa_view function. This is the original code for displaying question content in qa-theme.php:&lt;br /&gt;
&lt;br /&gt;
public function q_view_content($q_view)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$content = isset($q_view['content']) ? $q_view['content'] : '';&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;output('&amp;lt;div class=&amp;quot;qa-q-view-content&amp;quot;&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;output_raw($content);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;output('&amp;lt;/div&amp;gt;');&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
However, I have no idea how to add the javascipt code here and to refer it to specific post id. I was thinking about adding wrapper div after a specific paragraph, but i do not know how to accomplish this, since I am very new with php. Any help will be much appreciated.&lt;br /&gt;
&lt;br /&gt;
Thank's a lot!</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/79281/problem-of-adding-javascript-in-q2a</guid>
<pubDate>Fri, 15 Nov 2019 11:56:36 +0000</pubDate>
</item>
<item>
<title>Im trying to make a override plugin but im getting this error when visiting site</title>
<link>https://www.question2answer.org/qa/77832/trying-make-override-plugin-getting-this-error-when-visiting</link>
<description>

&lt;p&gt;&lt;strong style=&quot;color:#000000; font-family:&amp;quot;Times New Roman&amp;quot;; font-size:medium&quot;&gt;Parse error&lt;/strong&gt;&lt;span style=&quot;color:#000000; font-family:&amp;quot;Times New Roman&amp;quot;; font-size:medium&quot;&gt;: syntax error, unexpected 'else' (T_ELSE) in&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;color:#000000; font-family:&amp;quot;Times New Roman&amp;quot;; font-size:medium&quot;&gt;/home/satechh/public_html/qa-base.php&lt;/strong&gt;&lt;span style=&quot;color:#000000; font-family:&amp;quot;Times New Roman&amp;quot;; font-size:medium&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;color:#000000; font-family:&amp;quot;Times New Roman&amp;quot;; font-size:medium&quot;&gt;7&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong style=&quot;color:#000000; font-family:&amp;quot;Times New Roman&amp;quot;; font-size:medium&quot;&gt;Code&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;

&lt;pre class=&quot;highlight&quot; style=&quot;margin-left: 2em; line-height: 1.3; font-size: 14px;&quot;&gt;&lt;code style=&quot;color: inherit; font-size: 13px; tab-size: 4;&quot;&gt;&lt;span style=&quot;color:#507090&quot; class=&quot;cp&quot;&gt;&amp;lt;?php&lt;/span&gt;

&lt;strong style=&quot;color:#008000; font-weight:bold&quot; class=&quot;k&quot;&gt;function&lt;/strong&gt; &lt;strong style=&quot;color:#0060b0; font-weight:bold&quot; class=&quot;nf&quot;&gt;qa_retrieve_url&lt;/strong&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#906030&quot; class=&quot;nv&quot;&gt;$url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;strong style=&quot;color:#008000; font-weight:bold&quot; class=&quot;k&quot;&gt;if&lt;/strong&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#007020&quot; class=&quot;nb&quot;&gt;substr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#906030&quot; class=&quot;nv&quot;&gt;$url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;strong style=&quot;color:#0000d0; font-weight:bold&quot; class=&quot;mi&quot;&gt;0&lt;/strong&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;strong style=&quot;color:#0000d0; font-weight:bold&quot; class=&quot;mi&quot;&gt;8&lt;/strong&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#303030&quot; class=&quot;o&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color:#d04020&quot; class=&quot;s1&quot;&gt;'https://'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span style=&quot;color:#808080&quot; class=&quot;c1&quot;&gt;// specialized code for retrieving secure pages
&lt;/span&gt;    &lt;strong style=&quot;color:#008000; font-weight:bold&quot; class=&quot;k&quot;&gt;else&lt;/strong&gt;
        &lt;strong style=&quot;color:#008000; font-weight:bold&quot; class=&quot;k&quot;&gt;return&lt;/strong&gt; &lt;span class=&quot;nx&quot;&gt;qa_retrieve_url_base&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#906030&quot; class=&quot;nv&quot;&gt;$url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/77832/trying-make-override-plugin-getting-this-error-when-visiting</guid>
<pubDate>Sun, 15 Sep 2019 11:16:46 +0000</pubDate>
</item>
<item>
<title>Dynamically add a URL parameter to any links for a specific domain</title>
<link>https://www.question2answer.org/qa/77827/dynamically-add-url-parameter-any-links-for-specific-domain</link>
<description>

&lt;p&gt;I have an affiliate partnership with a website. Let’s call it&amp;nbsp;&lt;strong&gt;[example.com]&lt;/strong&gt;.&amp;nbsp;I’d like to automatically&amp;nbsp;add an affiliate parameter &lt;strong&gt;[?me=1234]&lt;/strong&gt;&amp;nbsp;to the URL whenever an answer with a link to &lt;strong&gt;[example.com]&lt;/strong&gt; is posted. I assume this can be done with javascript, but I haven’t been able to make scripts like &lt;a rel=&quot;nofollow&quot; href=&quot;https://stackoverflow.com/a/44445055&quot;&gt;this one&lt;/a&gt; work. I get the following error, which leads me to believe I haven’t installed jQuery properly in Q2A:&lt;/p&gt;

&lt;pre&gt;Uncaught ReferenceError: jQuery is not defined&lt;/pre&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/77827/dynamically-add-url-parameter-any-links-for-specific-domain</guid>
<pubDate>Sun, 15 Sep 2019 07:33:47 +0000</pubDate>
</item>
<item>
<title>Uncaught ReferenceError: $ is not defined</title>
<link>https://www.question2answer.org/qa/74306/uncaught-referenceerror-%24-is-not-defined</link>
<description>what does this mean and how to fix it. &lt;a href=&quot;https://satechhelp.co.za/qa-theme/SnowFlat/js/snow-core.js?1.8.3:19&quot; rel=&quot;nofollow&quot;&gt;https://satechhelp.co.za/qa-theme/SnowFlat/js/snow-core.js?1.8.3:19&lt;/a&gt;. Found on Google search console url inspection. &lt;br /&gt;
&lt;br /&gt;
STACK TRACE</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/74306/uncaught-referenceerror-%24-is-not-defined</guid>
<pubDate>Mon, 22 Apr 2019 04:51:13 +0000</pubDate>
</item>
<item>
<title>Is it possible to override a javascript function?</title>
<link>https://www.question2answer.org/qa/66928/is-it-possible-to-override-a-javascript-function</link>
<description>How can I override functions in qa-global.js?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/66928/is-it-possible-to-override-a-javascript-function</guid>
<pubDate>Wed, 05 Sep 2018 05:56:44 +0000</pubDate>
</item>
<item>
<title>Mathjax rendering on adding comments</title>
<link>https://www.question2answer.org/qa/60329/mathjax-rendering-on-adding-comments</link>
<description>

&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;I asked this question about 3 years ago :)&amp;nbsp;&lt;a href=&quot;http://question2answer.org/qa/39275&quot; rel=&quot;nofollow&quot;&gt;http://question2answer.org/qa/39275&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;based on Kai's answer it's enought to add&amp;nbsp;&lt;strong&gt;MathJax.Hub.Queue(['Typeset', MathJax.Hub,&amp;nbsp;&lt;span style=&quot;color:rgb(255, 0, 0)&quot;&gt;e&lt;/span&gt;]);&lt;/strong&gt;&lt;span style=&quot;color:rgb(52, 73, 94); font-family:ubuntu,helvetica,arial,freesans,sans-serif; font-size:16px&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;to&amp;nbsp;&lt;a href=&quot;https://github.com/q2a/question2answer/blob/dev/qa-content/qa-question.js#L76&quot; rel=&quot;nofollow&quot;&gt;https://github.com/q2a/question2answer/blob/dev/qa-content/qa-question.js#L76&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;strong&gt;qa_ajax_post('answer', params,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;there I have added&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var answTxt = lines.slice(3).join(&quot;\n&quot;);&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(answTxt.indexOf('^')!=-1 &amp;amp;&amp;amp; answTxt.indexOf('$$')==-1 &amp;amp;&amp;amp; answTxt.indexOf('\\(')==-1) {&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;e.innerHTML = answTxt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else {&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;e.innerHTML = answTxt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;&amp;nbsp;if(answTxt.indexOf('$$')!=-1 || answTxt.indexOf('\(')!=-1 ) {&lt;/strong&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // insert mathjax-config for linebreak option&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$('head').append('&amp;lt;script type=&quot;text/x-mathjax-config&quot;&amp;gt; MathJax.Hub.Config({ &quot;HTML-CSS&quot;: { scale:100, linebreaks: { automatic: true } }, SVG: { linebreaks: { automatic: true } }, displayAlign: &quot;left&quot; }); &amp;lt;/script&amp;gt;');&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var mjaxURL = '&lt;a rel=&quot;nofollow&quot; href=&quot;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML&amp;amp;locale=de%27;&quot;&gt;http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML&amp;amp;locale=de';&lt;/a&gt;&amp;nbsp;// ,Safe.js&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// as soon mathjax is loaded&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$.getScript(mjaxURL, function() {&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// mathjax loaded, call it on the comment which is e&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;strong&gt;MathJax.Hub.Queue(['Typeset', MathJax.Hub,&amp;nbsp;&lt;span style=&quot;color:rgb(255, 0, 0)&quot;&gt;e&lt;/span&gt;]);&lt;/strong&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;});&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;This works fine but when you click on &quot;comment&quot; or &quot;add comment&quot; all the page will be reloaded and then rendered by mathjax. I want just the comment will be reloaded to show math.&lt;/p&gt;

&lt;p&gt;Is there any way?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/60329/mathjax-rendering-on-adding-comments</guid>
<pubDate>Wed, 18 Oct 2017 13:31:12 +0000</pubDate>
</item>
<item>
<title>Urgent: My q2a site seems infected</title>
<link>https://www.question2answer.org/qa/58904/urgent-my-q2a-site-seems-infected</link>
<description>On click of menu on mobile browser, it opens pop-up and redirects to other site. I am unable to find source of infection to correct it. Please help.&lt;br /&gt;
&lt;br /&gt;
Domain:&lt;br /&gt;
&lt;br /&gt;
theupsconline(dot)com</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/58904/urgent-my-q2a-site-seems-infected</guid>
<pubDate>Fri, 04 Aug 2017 22:04:07 +0000</pubDate>
</item>
<item>
<title>Q2A Theme: location.href javascript function is not working</title>
<link>https://www.question2answer.org/qa/58249/q2a-theme-location-href-javascript-function-is-not-working</link>
<description>

&lt;p&gt;I am trying to implement features for SSO site to make it not so different from the old one.&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;&lt;span style=&quot;color:rgb(0, 128, 255); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;'buttons'&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(128, 128, 128); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;=&amp;gt;&amp;nbsp;array(&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgb(0, 128, 255); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'account'&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(128, 128, 128); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;=&amp;gt;&amp;nbsp;array(&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgb(0, 128, 255); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'tags'&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(128, 128, 128); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(0, 128, 255); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;'onClick=&quot;qa_edit_profile()&quot;'&lt;/span&gt;&lt;span style=&quot;color:rgb(128, 128, 128); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;,&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgb(0, 128, 255); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'label'&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(128, 128, 128); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;=&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(0, 0, 0); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;qa_html&lt;/span&gt;&lt;span style=&quot;color:rgb(128, 128, 128); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:rgb(0, 128, 255); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;&quot;Edit Profile&quot;&lt;/span&gt;&lt;span style=&quot;color:rgb(128, 128, 128); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;)&amp;nbsp;,&lt;/span&gt;
&lt;br&gt;&lt;span style=&quot;color:rgb(128, 128, 128); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; )&amp;nbsp;,
&lt;br&gt;)&amp;nbsp;,&lt;/span&gt;&lt;span style=&quot;color:rgb(255, 148, 0); font-family:lucida console,monaco,monospace; font-size:10.6667px&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;As you can see, the onClick event will call the qa_edit_profile() function which I has written in qa-content\qa-page.js file:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;function qa_edit_profile()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;location.href = &quot;www.yoursite.com&quot;;
&lt;br&gt;}&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;But when I click, it doesn't work. While other function works like alert(),...&lt;/p&gt;

&lt;p&gt;So the question is, is there any solution to make the browser redirect to an URL when click on a button?&lt;/p&gt;</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/58249/q2a-theme-location-href-javascript-function-is-not-working</guid>
<pubDate>Fri, 23 Jun 2017 04:51:35 +0000</pubDate>
</item>
<item>
<title>Unexpected response from server - please try again or switch off Javascript.</title>
<link>https://www.question2answer.org/qa/57878/unexpected-response-server-please-again-switch-javascript</link>
<description>I get the &amp;quot;Unexpected response from server - please try again or switch off Javascript.&amp;quot; when Q&amp;amp;A tries to find similar questions.&lt;br /&gt;
&lt;br /&gt;
I get the error after the question is typed and focus on the body of the question.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/57878/unexpected-response-server-please-again-switch-javascript</guid>
<pubDate>Thu, 25 May 2017 02:15:06 +0000</pubDate>
</item>
<item>
<title>Integrate &quot;Universal Language Selector&quot; Java script</title>
<link>https://www.question2answer.org/qa/57572/integrate-universal-language-selector-java-script</link>
<description>

&lt;p&gt;Is there any way to integrate this great &quot;Universal Language Selector&quot; Java script in CKEditor? (or all text fields in q2a)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector&quot;&gt;https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/57572/integrate-universal-language-selector-java-script</guid>
<pubDate>Wed, 03 May 2017 13:54:46 +0000</pubDate>
</item>
<item>
<title>I'm getting a javascript error when trying to leave an answer</title>
<link>https://www.question2answer.org/qa/52326/im-getting-a-javascript-error-when-trying-to-leave-an-answer</link>
<description>

&lt;p&gt;Everything was running fine and then without changing anything I started getting the following error when trying to answer questions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unexpected response from server - please try again or switch off Javascript.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I went to developer tools to check and see what the error is and got this:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;POST &lt;a href=&quot;http://248am.com/kuwestions/&quot; rel=&quot;nofollow&quot;&gt;http://248am.com/kuwestions/&lt;/a&gt; 403 (Forbidden)
&lt;br&gt;send @ jquery-1.11.3.min.js:5
&lt;br&gt;ajax @ jquery-1.11.3.min.js:5
&lt;br&gt;m.(anonymous function) @ jquery-1.11.3.min.js:5
&lt;br&gt;qa_ajax_post @ qa-page.js?1.7.4:162
&lt;br&gt;qa_submit_answer @ qa-question.js?1.7.4:79
&lt;br&gt;onclick @ best-lebanese-buffet-for-under-15kd-per-person:205&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;I tried googling a solution but haven't been able to find anything about this.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;thanks!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/52326/im-getting-a-javascript-error-when-trying-to-leave-an-answer</guid>
<pubDate>Fri, 24 Jun 2016 14:15:32 +0000</pubDate>
</item>
<item>
<title>qa-script.js as default in each theme folder</title>
<link>https://www.question2answer.org/qa/51466/qa-script-js-as-default-in-each-theme-folder</link>
<description>I am sure it would be a nice-to-have to use a qa-script.js for each theme, the same we do for qa-styles.css&lt;br /&gt;
&lt;br /&gt;
I have some custom jquery code that I normally put in qa-page.js which is of course not good since the update overrides it. So a lot of extra work.&lt;br /&gt;
&lt;br /&gt;
Having a qa-script.js in the theme folder would be the best solution I can think of.&lt;br /&gt;
&lt;br /&gt;
PS: When do we transfer the 'old' javascript code of all js files to jquery? It would be much easier to read, plus the entire system would get even more flexible.</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51466/qa-script-js-as-default-in-each-theme-folder</guid>
<pubDate>Thu, 21 Apr 2016 01:08:55 +0000</pubDate>
</item>
<item>
<title>What is the script tag containing a lot of crazy scripts?</title>
<link>https://www.question2answer.org/qa/50823/what-is-the-script-tag-containing-a-lot-of-crazy-scripts</link>
<description>

&lt;p&gt;I press F12 of the keyboard and it appears the whole source code. I always see a &lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt; tag with many crazy &lt;span style=&quot;font-family:courier new,courier,monospace&quot;&gt;js&lt;/span&gt; codes. I wanted to know what were those js codes.
&lt;br&gt;
&lt;br&gt;Please, help me!!!&lt;/p&gt;</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/50823/what-is-the-script-tag-containing-a-lot-of-crazy-scripts</guid>
<pubDate>Fri, 11 Mar 2016 09:48:36 +0000</pubDate>
</item>
<item>
<title>How can I push the Q2A user role into a javascript variable?</title>
<link>https://www.question2answer.org/qa/49873/how-can-i-push-the-q2a-user-role-into-a-javascript-variable</link>
<description>

&lt;p&gt;I need to create some custom&amp;nbsp;javascript that uses the user role.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I can easily get the user ID from mark-up..&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var q2aUserID&amp;nbsp;= $('.qa-user-link').text();&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;..but is there a&amp;nbsp;way to push the &lt;span style=&quot;text-decoration: underline;&quot;&gt;user role&lt;/span&gt; (expert, editor, moderator, etc)&amp;nbsp;into a JS variable?&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Many thanks&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/49873/how-can-i-push-the-q2a-user-role-into-a-javascript-variable</guid>
<pubDate>Fri, 15 Jan 2016 22:32:13 +0000</pubDate>
</item>
<item>
<title>Why isn't my custom javascript code working in q2a?</title>
<link>https://www.question2answer.org/qa/47345/why-isnt-my-custom-javascript-code-working-in-q2a</link>
<description>I've written a custom js function to check input data in ask page. function checks whether there's question mark at the end of the sentence and so on... when user moves to next input field(by onBlur=&amp;quot;&amp;quot; event)&lt;br /&gt;
&lt;br /&gt;
I've added it to qa-ask.js file first, then to the ask page itself. But in both situations it isn't working. Why it isn't working???&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Code itself is fine. But it's not working when applied to q2a&lt;br /&gt;
&lt;br /&gt;
function validateInput() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;var val = document.getElementById(&amp;quot;title&amp;quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;val.value.trim();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;len = val.value.length - 1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;lastS = val.value.slice(len);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;if (lastS != &amp;quot;?&amp;quot;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;document.getElementById(&amp;quot;error&amp;quot;).innerHTML = &amp;quot;add '?'.&amp;quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;.........&lt;br /&gt;
&lt;br /&gt;
any help is appreciated</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/47345/why-isnt-my-custom-javascript-code-working-in-q2a</guid>
<pubDate>Fri, 14 Aug 2015 07:36:34 +0000</pubDate>
</item>
<item>
<title>Request for v1.8: Join all Javascript into one file</title>
<link>https://www.question2answer.org/qa/45922/request-for-v1-8-join-all-javascript-into-one-file</link>
<description>

&lt;p&gt;For less server requests I would suggest to put all JS files into one main file (which could also be provided as a compressed version).&lt;/p&gt;

&lt;p&gt;See qa-content/....js&lt;/p&gt;

&lt;p&gt;With v.1.7.1 we have:&lt;/p&gt;

&lt;p&gt;qa-admin.js (4 KB)
&lt;br&gt;qa-ask.js (9 KB)
&lt;br&gt;qa-page.js (4 KB)
&lt;br&gt;qa-question.js (6 KB)
&lt;br&gt;qa-user.js (4 KB)&lt;/p&gt;

&lt;p&gt;Just do &lt;strong&gt;one script.js&lt;/strong&gt; file: would only be &lt;strong&gt;27 KB&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is already enough that each plugin must load its own javascript file, all are adding up to many server requests and make the site load slowly: not good for user experience, not good for seo.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;---&lt;/p&gt;

&lt;p&gt;Plus give the option to load Jquery from a CDN, local file qa-content/jquery-1.11.3.min.js&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Using an advanced theme it would be:&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size:9px&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function head_script()
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// insert jquery CDN script
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (isset($this-&amp;gt;content['script'])) {
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;foreach ($this-&amp;gt;content['script'] as $scriptline) {
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // load CDN instead of local jquery file, with js fallback
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(strpos($scriptline, 'jquery') === false) {
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;output_raw($scriptline);
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else {
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$this-&amp;gt;output_raw('&amp;lt;script src=&quot;&lt;a href=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js&quot;&quot; rel=&quot;nofollow&quot;&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js&quot;&lt;/a&gt; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;window.jQuery || document.write(\'&amp;lt;script src=&quot;&lt;a href=&quot;http://www.fallbackdomain.com/jquery.min.js&quot;&amp;gt;&amp;lt;\/script&amp;gt;\')&amp;lt;/script&amp;gt;');&quot; rel=&quot;nofollow&quot;&gt;http://www.fallbackdomain.com/jquery.min.js&quot;&amp;gt;&amp;lt;\/script&amp;gt;\')&amp;lt;/script&amp;gt;');&lt;/a&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// no default call
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;} // end head_script&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/45922/request-for-v1-8-join-all-javascript-into-one-file</guid>
<pubDate>Fri, 19 Jun 2015 07:06:15 +0000</pubDate>
</item>
</channel>
</rss>