News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

jquery.noConflict.js and .ui.autocomplete being called without relative links

Started by hazer26, July 07, 2012, 23:35:09 PM

Previous topic - Next topic

hazer26

The following lines of code can be found in the header information of every Virtuemart page using Firebug.

<script type="text/javascript" src="http://websitename.net/components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js">
<script type="text/javascript" src="http://websitename.net/components/com_virtuemart/assets/js/jquery.noConflict.js">

When using SSL, these scripts are called without a relative link as they appear to be hard coded with http:// - this causes that anoying IE message "Do you want to view only the web page content that was delivered securely"

Does anyone know what files call those scripts? I'd like to modify them to use relative links.

Thanks!
Hayes

Joomla 2.5.4
Virtuemart 2.0.6

hazer26

Nevermind I found it.  In this file:

/administrator/components/com_virtuemart/helpers/config.php

Change these lines from base to use root:

from:
      $document->addScript(JURI::base().'components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js');
      $document->addScript(JURI::base().'components/com_virtuemart/assets/js/jquery.noConflict.js');

to:

      $document->addScript(JURI::root(true).'components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js');
      $document->addScript(JURI::root(true).'components/com_virtuemart/assets/js/jquery.noConflict.js');

This solved the SSL IE issue where I was receiving a message about non secure content.

thanks,
Hayes