Author Topic: A jQuery bug in the administrator/components/com_virtuemart/helpers/config.php  (Read 3352 times)

liatoss

  • Beginner
  • *
  • Posts: 3
    • Liatoss Sarl website
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.
Thank you, Vlad (from Liatoss Sarl at www dot liatoss dot com).

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3957
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Hi,
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