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 6640433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:40:18+00:00 2026-05-25T23:40:18+00:00

Ok Guys please forgive my ignorance. I’m new to javascript so all help is

  • 0

Ok Guys please forgive my ignorance. I’m new to javascript so all help is well received. I’ve been trying to implement these solutions but it’s not working. This is what I have on my revised code:

    <script type="text/javascript">
    jQuery.noConflict() // return `$` to it's previous "owner"
    (function($){ // in here you're assured that `$ == jQuery`
    $(document).ready(function(){  
    $('#slider1').tinycarousel()
    $('a.fancybox').fancybox()
    $('textarea, select').uniform()
    $('#slider').nivoSlider ({ pauseTime: 6000, effect: 'sliceDown'})
    })
    })(jQuery)
    </script>

When i do this it makes all of the above stop working.

Also, I still have the other statement

    function $(id) {
    return document.getElementById(id);
}

Which Im not sure if I understand what to do with it since if I take it off the element that goes with it stops working (it’s a dual slider)

Thanks Again


I’m a javascript novice so my apologies :0)

I’m using this javascript on a website:

    <script type="text/javascript">        
    $(document).ready(function(){  
        $('#slider1').tinycarousel();
        $('a.fancybox').fancybox();
        $('textarea, select').uniform();
        $('#slider').nivoSlider ({ pauseTime: 6000, effect: 'sliceDown'});
    });
    </script>

There is another script that contains this at the beginning which is making everything else to stop working. As soon as I delete it everything works again. Is there a way to unite these? or do they need to stay separate?

    function $(id) {
        return document.getElementById(id);
    }

Thanks in advance…

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

    It’s good practice to “shield” your code from this kind of problem by never using the $ function directly, instead create a new scope where you explicitly define $ = jQuery:

    jQuery.noConflict() // return `$` to it's previous "owner"
    (function($){ // in here you're assured that `$ == jQuery`
        $(document).ready(function(){  
            $('#slider1').tinycarousel()
            $('a.fancybox').fancybox()
            $('textarea, select').uniform()
            $('#slider').nivoSlider ({ pauseTime: 6000, effect: 'sliceDown'})
        })
    })(jQuery)
    

    Alternatively, jQuery passes itself to the DOMReady short form:

    jQuery.noConflict()
    
    jQuery(function($){
            $('#slider1').tinycarousel()
            $('a.fancybox').fancybox()
            $('textarea, select').uniform()
            $('#slider').nivoSlider ({ pauseTime: 6000, effect: 'sliceDown'})
    })
    

    Make this a standard practice and you’ll avoid the issue in the future.

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

Sidebar

Related Questions

Can you guys please help me with this jsFiddle?: http://jsfiddle.net/4CNKa/2/ I am trying to
I am new to a lot of these C++ libraries, so please forgive me
Hi Guys could you please help me refactor this so that it is sensibly
Hi Guys can you please help me with this error? What is it? Server
Guys Please help me to solve this floating problem.I tried different methods but anything
Could guys please help me find what causes memory leak ? It drives me
Could you guys please help me find memory leak ? I'm from C++ world
guys please post me an example for threading in MFC....it should show the progress
Guys, I’ve been writing code for 15+ years, but managed to avoid Web Development
guys please let me know, in real world why we need to override equals

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.