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

  • SEARCH
  • Home
  • 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 3934430
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:42:53+00:00 2026-05-19T23:42:53+00:00

I was trying to integrate jQuery to use it for some effects in my

  • 0

I was trying to integrate jQuery to use it for some effects in my site and I started to search for the solution of integrating in the best way. It simply came to my mind to write a helper which would get the selector of proper element and output the javascript code.
Then I ran into the new JsHelper in cake 1.3 but I’m really having problems understanding the concept of JsHelper. I mean for sure each JavaScript block that I’m gonna write is more than one call to jQuery methods and many of them are also not transfered to JsHelper. So for what reason may I use the JsHelper? it would be much easier to write the javascript specified for my action inside a helper and use it simply as any other helper. The only thing which comes to my mind as a good capability is to use the caching and buffering options provided in JsHelper nothing more. Did I understood the JsHelper well or I have missed some points?

  • 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-05-19T23:42:54+00:00Added an answer on May 19, 2026 at 11:42 pm

    FWIW, I never use any of the javascript helpers except to write the include, i.e.

    <?php echo $javascript->link('aJavascriptFile') ?>

    I’d be pulling my hair out trying to find out why some jQuery plugin wasn’t working if it was all wrapped up in helpers.

    You don’t have to use helpers – they’re there to help. Sometimes people go a bit crazy and start creating helpers for stuff that really doesn’t justify the weight of extra code.

    Just code it the ‘old way’ and keep your sanity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to integrate the Jquery UI select menu, in my wordpress site.
I am trying to use Jquery to iterate through an array of textboxes where
I am trying to use JQuery to iterate through a number of <li> objects
I'm trying to use the jQuery $.inArray function to iterate through an array and
I'm trying to integrate a public message board service into an existing web site.
I'm trying to use jQuery Button to build a button bar for each item
I am trying to integrate JQuery tabs with my WordPress blog, to replace old
I'm trying to integrate jquery-timepickr on my website, but no matter what version I
I am trying to integrate jquery image slider. But I need to slide the
Okay, so I'm trying to integrate the jQuery UI plugin selectable (grid), and I

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.