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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:22:23+00:00 2026-06-12T14:22:23+00:00

I have almost finished a website, but I’m struggling with combining two different javascript

  • 0

I have almost finished a website, but I’m struggling with combining two different javascript files… If I exclude A, B works. If I exclude B, A works. So there seems no go-between.

I’m trying to combine a JQuery-form validation and a JCarousel. As you can see, I have to exclude the validation script in orde to get the Carousel working…

Isn’t there a way to combine both these script? I already tried the $j-trick from JQuery documentation, but with no luck.

I have included the files in this order:

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

<script type="text/javascript" src="includes/js/jquery-1.6.min.sliding.js"></script>
<script type="text/javascript" src="includes/js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="includes/js/hover.js"></script>
<script type="text/javascript" src="includes/js/jquery.jcarousel.js"></script>

<!-- js links -->
<script type="text/javascript" src="includes/js/coda.js"></script>
<script type="text/javascript" src="includes/js/placeholder.js"></script>
<script language="javascript" src="includes/js/popup/modal.popup.js"></script>

<script type="text/javascript" src="includes/notify/js/jquery.noty.js"></script>

<!-- THIS MUST BE COMMENTED OTHERWISE THE CONTACT SLIDER DOENS'T WORK!!

    MUST FIX!!!

    <script type="text/javascript" src="includes/js/form/jquery.validationEngine-nl.js" charset="utf-8"></script>
    <script type="text/javascript" src="includes/js/form/jquery.validationEngine.js" charset="utf-8"></script>

    <script src="includes/lightbox/lightbox.js"></script>

-->

<script src="includes/lightbox/lightbox.js"></script>

<!-- JQuery UI -->
<script type="text/javascript" src="includes/js/jquery-ui/development-bundle/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="includes/js/jquery-ui/development-bundle/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="includes/js/jquery-ui/development-bundle/ui/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="includes/js/jquery-ui/development-bundle/ui/jquery.ui.timepicker.js"></script>
  • 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-12T14:22:24+00:00Added an answer on June 12, 2026 at 2:22 pm

    I can see the problem but not what is causing it. I imagine you’re outputting some javascript via PHP but it is coming out above the <html> tag.

    If you goto view-source:http://www.YOURDOMAIN.be/new/index.php?page=&action=shout

    The html looks like this:

    <script>
                    $(document).ready(function(){noty({"text":"Uw shout is succesvol toegevoegd.",
                    "layout":"top","type":"success","animateOpen":{"height":"toggle"},
                    "animateClose":{"height":"toggle"},"speed":500,"timeout":5000,
                    "closeButton":true,"closeOnSelfClick":true,"closeOnSelfOver":false,"modal":false});});</script><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    

        <meta http-equiv="Content-Type" content="text/html; charset=ISO 8859-1" />
    
        <!-- favicon -->
        <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    
        <!-- css links -->
        <link rel="stylesheet" type="text/css" href="styles/styles.css" />
        <link rel="stylesheet" type="text/css" href="styles/skin.css" />
    
        <link rel="stylesheet" type="text/css" href="includes/js/form/css/validationEngine.jquery.css" />
        <link rel="stylesheet" type="text/css" href="includes/lightbox/lightbox.css" />
        <link rel="stylesheet" type="text/css" href="includes/notify/css/jquery.noty.css"/>
        <link rel="stylesheet" type="text/css" href="includes/notify/css/noty_theme_default.css"/>
        <link rel="stylesheet" type="text/css" href="includes/js/jquery-ui/development-bundle/themes/base/jquery.ui.all.css">
        <link rel="stylesheet" type="text/css" href="includes/js/jquery-ui/development-bundle/demos/demos.css">
        <link rel="stylesheet" type="text/css" href="includes/js/jquery-ui/development-bundle/jquery-ui-timepicker.css">
    
        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    
    
        <script type="text/javascript" src="includes/js/jquery.easing.1.3.js"></script>
        <script type="text/javascript" src="includes/js/hover.js"></script>
        <script type="text/javascript" src="includes/js/jquery.jcarousel.js"></script>
    
        <!-- js links -->
    
        <script type="text/javascript" src="includes/js/coda.js"></script>
        <script type="text/javascript" src="includes/js/placeholder.js"></script>
        <script language="javascript" src="includes/js/popup/modal.popup.js"></script>
    
        <script type="text/javascript" src="includes/notify/js/jquery.noty.js"></script>
        <script type="text/javascript" src="includes/js/form/jquery.validationEngine-nl.js" charset="utf-8"></script>
        <script type="text/javascript" src="includes/js/form/jquery.validationEngine.js" charset="utf-8"></script>
    
        <script src="includes/lightbox/lightbox.js"></script>
    
        <!-- JQuery UI -->
        <script type="text/javascript" src="includes/js/jquery-ui/development-bundle/ui/jquery.ui.core.js"></script>
        <script type="text/javascript" src="includes/js/jquery-ui/development-bundle/ui/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="includes/js/jquery-ui/development-bundle/ui/jquery.ui.datepicker.js"></script>
        <script type="text/javascript" src="includes/js/jquery-ui/development-bundle/ui/jquery.ui.timepicker.js"></script>
        <script type="text/javascript">
            function mycarousel_initCallback(carousel) {
                // Disable autoscrolling if the user clicks the prev or next button.
                carousel.buttonNext.bind('click', function() {
                    carousel.startAuto(0);
                });
    
                carousel.buttonPrev.bind('click', function() {
                    carousel.startAuto(0);
                });
    
                // Pause autoscrolling if the user moves with the cursor over the clip.
                carousel.clip.hover(function() {
                    carousel.stopAuto();
                }, function() {
                    carousel.startAuto();
                });
            };
    
            jQuery(document).ready(function() {
                jQuery('#mycarousel').jcarousel({
                    auto: 2,
                    wrap: 'last',
                    initCallback: mycarousel_initCallback
                });
            });
        </script>
    
        <script>
            $(function(){
                $('.leader_picture').contenthover({
                    overlay_background:'#000',
                    overlay_opacity:0.8
                });
            });
        </script>
    
        <script language="javascript">
            $(document).ready(function() {
    
                //Change these values to style your modal popup
                var align = 'center';                                   //Valid values; left, right, center
                var top = 100;                                          //Use an integer (in pixels)
                var width = 500;                                        //Use an integer (in pixels)
                var padding = 10;                                       //Use an integer (in pixels)
                var backgroundColor = '#FFFFFF';                        //Use any hex code
                var source = 'includes/php/popup.php';                  //Refer to any page on your server, external pages are not valid 
                var borderColor = '#333333';                            //Use any hex code
                var borderWeight = 4;                                   //Use an integer (in pixels)
                var borderRadius = 5;                                   //Use an integer (in pixels)
                var fadeOutTime = 300;                                  //Use any integer, 0 = no fade
                var disableColor = '#666666';                           //Use any hex code
                var disableOpacity = 40;                                //Valid range 0-100
                var loadingImage = 'lib/release-0.0.1/loading.gif';     //Use relative path from this page
    
                //This method initialises the modal popup
                $(".modal").click(function() {
                    modalPopup(align, top, width, padding, disableColor, disableOpacity, backgroundColor, borderColor, borderWeight, borderRadius, fadeOutTime, source, loadingImage);
                });
    
                //This method hides the popup when the escape key is pressed
                $(document).keyup(function(e) {
                    if (e.keyCode == 27) {
                        closePopup(fadeOutTime);
                    }
                });     
            });
        </script>
    </head>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm almost finished with my program, but I have one problem that I can't
I have almost created a website that works in all major browsers flawlessly. Yesterday,
I have almost finished my portfolio page , but on one of my pages
I almost finished an application and I want to thave two different releases. The
I'm a little stuck. I have almost finished this code but after trying to
I have some sort of evaluating application in the making, it's almost finished but
my flash-game is almost finished but there is a (big?) problem: At its current
I am trying to make my own user control and have almost finished it,
I have almost 800 MB and over 31,000 files in hundreds of subfolders at
G'day guys, currently have almost finished writing a rails application that allows a CSV

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.