/    Sign up×
Community /Pin to ProfileBookmark

jQuery – Combining multiple jQuery scripts

How many javascript files do i need to have and how many CSS files do i need to add to get a website that has JQuery Accorion, JQuery Tabs and JQuery Hide/Show? 15 js files? 8 CSS files?

I have the FULL PACKED version of jQuery. And every time I see a new function for jQuery it seems I am back at square one. I see a killer function so I get the code off the tutorial, and test it with my “full” fudge packed version of jQuery and it never works.

So I have the full version of jQuery, and I have jQuery [B]accordion [/B]and jQuery [B]tabs [/B]working. Now I am trying to add two new jQuery features ([B]show/hide[/B] and [B]autocomplete[/B]) and I am finding myself adding extra .js and css files from a tutorial every time, and making no use of the full jQuery package I downloaded.

Any advice? I really like jQuery but I am having problems consolidating them into sets of .js and css files. :injured:

[B]These are the jQuery features I want to use on my site, how many special plugins do I need?[/B]

[QUOTE]

Tabs
[url]http://stilbuero.de/jquery/tabs/[/url]

Accordion
[url]http://www.i-marco.nl/weblog/jquery-accordion-menu/[/url]

Table Sorter
[url]http://tablesorter.com/docs/[/url]

Show/Hide
[url]http://www.mredesign.com/demos/jquery-effects-1/[/url]

Autocomplete
[url]http://www.pengoworks.com/workshop/jquery/autocomplete.htm[/url]

Tooltip
[url]http://www.codylindley.com/blogstuff/js/jtip/[/url]

[/QUOTE]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Jeff_MottOct 17.2008 — Show/hide is part of jQuery itself. You can already use that. Tabs, accordion, autocomplete and sortable are part of the jQuery UI package. You can download them at http://ui.jquery.com/download_builder/. You just check the components you want, click download, and you'll get a single minified JS file.
Copy linkTweet thisAlerts:
@ripcurlksmauthorOct 17.2008 — Thanks Jeff, and I've done that -- but when I try to implement it, using the code from a tutorial, it never works.

So I will download the tutorial files and include several .js files to get it to work. I just find myself constantly adding .js files and I know that I am doing it wrong.
×

Success!

Help @ripcurlksm spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...