Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

JHtml: :jquery not supported. File not found. 11 Apr 2016 12:08 #13904

  • thierry
  • thierry's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 52
  • Thank you received: 2
Good afternoon,

As I still have some issue and investigation on a private network that is working 24 hours a day 365 days to migrate from joomla 2.5.28 to 3.x, I wonder if it is possible for the excellent owner of j-cook.pro to make a patch.
This patch will consit to remove jquery from the actual component created by COOK to be able to install on a Joomla 2.5.

If we remove this jquery from component, I think it will maybe work.

Questions
1 - do you think it will be the only challenge to fit actual component to Joomla 2.5.28 ?
2 - can you easily make this patch with PHP lines fitted at a good place ?

Thank you very much.

Regards

Please Log in or Create an account to join the conversation.

JHtml: :jquery not supported. File not found. 11 Apr 2016 12:28 #13905

  • thierry
  • thierry's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 52
  • Thank you received: 2
I found this :

Locate the line that the code being used to import jQuery and make sure it shows the following:
JHtml::_('jquery.framework');
where can I find this line ?
Which imports it in noConflict mode, but is also for Joomla 3.x only
Else you can replace it with the following, which will detect if a jQuery library is already being loaded and if not, it will import it.
if(!JFactory::getApplication()->get('jquery'))
{
    JFactory::getApplication()->set('jquery',true);
    $doc = JFactory::getDocument();
    $doc->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js');
}

This; do you think it will solved the issue ?

Regards
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

JHtml: :jquery not supported. File not found. 18 Apr 2016 09:38 #13917

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Thank you for the fix.

Actually, that's easy to integrate.
K++
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

JHtml: :jquery not supported. File not found. 25 Apr 2016 11:35 #13925

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed. Now you can run on 2.5 again.

I did different than you. It uses the JDom compatibility layer for loading the scripts.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.363 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started