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.082 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started