VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: liatoss on September 14, 2011, 22:28:49 PM

Title: A jQuery bug in the administrator/components/com_virtuemart/helpers/config.php
Post by: liatoss on September 14, 2011, 22:28:49 PM
Just faced with the problem that working functionality stop working as soon as add VM component/module on the page. After investigation, I reilize that VM loads jQuery from googleapis.com but it appears in the page as follows: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script> As you can see, there is no http prefix for the url, so I assumed that because of that it doesn't work aтв I fixed the bug in the files as it mentioned in the subject, lines 469, 470.                                                                                                                                                                                                                                                                                                                 Hope it can help somebody too.
Title: Re: A jQuery bug in the administrator/components/com_virtuemart/helpers/config.php
Post by: Studio 42 on September 15, 2011, 11:51:01 AM
Hi,
Quote from: liatoss on September 14, 2011, 22:28:49 PM
Just faced with the problem that working functionality stop working as soon as add VM component/module on the page. After investigation, I reilize that VM loads jQuery from googleapis.com but it appears in the page as follows: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script> As you can see, there is no http prefix for the url, so I assumed that because of that it doesn't work aтв I fixed the bug in the files as it mentioned in the subject, lines 469, 470.                                                                                                                                                                                                                                                                                                                 Hope it can help somebody too.
this is not  a mistake, and have to work
See http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/ for eg.

Patrick