Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8308355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:47:07+00:00 2026-06-08T18:47:07+00:00

Ok i have been looking for a while now… and i wasnt able to

  • 0

Ok i have been looking for a while now… and i wasnt able to find nothing related to jquery and cakephp when loading content to a div using the helper $this->Js->link… so i decided to post my question here in this awesome site… my first question and its so silly (i guess).

So… mechanics works fine, i mean.. it loads the content into a div called “algo” but now i try to add some effects (fadein) and im not being able to find the correct syntaxys for this! im brand new with cake… just 1 month old using it.

How do i add “fadeIn” effect when showing this damn div? i have tried lots of things but so far nothing makes the div load content with fadein effect whatsoever…

echo $this->Js->link('Categoria 1',  array('controller' => 'Categories', 'action' => 'categorias1'), array('update' => '#algo'));

this perfectly loads a bunch of pictures that i have on category 1 inside the div that im asking… what should i do to add fadeIn effect? i have added some crazy things to see if they work but… nope… no luck

i have even tried this crazy one:

echo $this->Js->link('Categoria 1',  array('controller' => 'Categories', 'action' => 'categorias1'), array('update' => '#algo', array('effect' =>array('fadeIn', array('speed' => 'slow'), true))));

any help will be apreciated! nobody shows examples of divs with cakephp.. or at least i wasnt able to find one that suits my needs!

great site by the way! it helped me a lot all this years!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:47:09+00:00Added an answer on June 8, 2026 at 6:47 pm

    i finally manage myself to accomplish what i was trying to do and i want to share with you guys what i did:

    echo $this->Js->link('categoria 1', array('controller' => 'Categories', 'action' => 'categorias1'),array('update' => '#categorias', 'evalscripts' => true, 'before' => $this->Js->get('#algo,#categorias2')->effect('fadeOut', array('buffer' => false)), 'complete' => $this->Js->get('#categorias')->effect('fadeIn', array('buffer' => false))));                                                                                              
    

    This huge piece of code is doing what i was expecting to, i also have added some editing to my jquery helper in order to pass them more than one div so i can have them all refreshed at the same time.

    if you guys want to hack your helper here is the code:

    cake/libs/view/helpers/jquery_engine.php

    find this line:

    $success .= $this-jQueryObject . '("' . $options['update'] . '").html(data);';
    

    and have it replaced with:

    if(is_array($options['update'])){
                    $success .= 'var temp = ' . $this->jQueryObject . '("     <div/>").html(data);';
                    foreach($options['update'] as $divId){
                        $success .= $this->jQueryObject . '("' . $divId . '").html('     . $this->jQueryObject . '("' . $divId . '", temp).html());';
                    }
                } else {
    
    
                $success .= $this->jQueryObject . '("' . $options['update'] .     '").html(data);'; //linea que ya estaba
    
                }
                //termina agregado
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking for a while now but I can not find an
I have been looking for a while now to find a solution to accomplish
I have been looking for a solution to this problem for a while now
I have been looking for a long time now and can't seem to find
I have been looking for a 5-Star rating control for a while now and
I've been looking for a solution to this for a while now, have found
I've been looking about for a while now and I cant find a proper
i have been looking for this script for a while now. I have some
I have been looking at this forum on this topic for a while now
I've been looking for a while now and have done a number of deployments

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.