Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2013
    Posts
    157
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question Javascript for my dropdowns has stopped my JQueryUI

    Hi, on my page here I have a problem after I have added the lines:

    Code:
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery.cycle.all.js"></script>
    <script type="text/javascript" src="/js/rotation.js"></script>
    this has stopped my JqueryUI tabs at the bottom of teh page from working?!

    Please can someone help?

    here is the HTML

    Code:
    <?php
    	require($_SERVER['DOCUMENT_ROOT'] . "/.config/common.php");
    $_GET['language'] = 'English';
    ?>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Cactus Language Courses :: Learn Spanish, Learn French, Learn Italian</title>
    <meta name="description" content="Cactus Language offers language courses in over 30 languages, 60 countries and 500 destinations. Learn Spanish, learn French, and learn Italian." />
    <meta name="keywords" content="Language,Courses,Spanish,French,German,Italian,abroad, learn spanish, learn French, learn English" />
    <meta property="fb:page_id" content="13657467855" />
    
    <link href="styles_v2_1_john.css" rel="stylesheet" type="text/css" />
    <link href="css/domtabB_john.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/universal/cookieLaw/cookie.css" type="text/css" />
    <link rel="stylesheet" href="/universal/resources/styles.css?date=2012619" type="text/css">
    <!-- Css for Accordion -->
    <link rel="stylesheet" href="css/jquery-ui-1.10.3.custom.css" type='text/css' />
    <!-- end Css for Accordion -->
    
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js" ></script>
    <script type="text/javascript" src="/js/domtab.js"></script>
    <script type="text/javascript" src="js/validForm.js"></script>
    
    
    
    <!--SLIDESHOW-->
    <link href="http://www.cactuslanguage.com/en/css/style_slideshow.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://malsup.github.com/chili-1.7.pack.js"></script>
    <script type="text/javascript" src="js/cyclePlugin/jquery.cycle.all.latest.js"></script>
    <script type="text/javascript" src="http://malsup.github.com/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="js/cyclePlugin/rotation.js"></script>
    <!--SLIDESHOW ENDS-->
    <!-- Accordion -->
    <script src="js/jquery-ui-1.10.3.custom.js"></script>
    <!-- end Accordion -->
    <script>
        $(function() {
            $( "#accordion" ).accordion({
                heightStyle: "content" // Allow no auto height
            });
        });
        
        $(function() {
            $( "#accordionFAQ" ).accordion({
                heightStyle: "content"
            });
        });
    </script>
    
    
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery.cycle.all.js"></script>
    <script type="text/javascript" src="/js/rotation.js"></script>
    </head>
    
    <body onload="MM_preloadImages('/images_v2/go2.gif')">   
        
    <?php include $_SERVER['DOCUMENT_ROOT'] . '/universal/bar1.php'; ?>
    <div id="home-frame"><!-- frame start -->
    
        <div id="logo-new">
        	<div style="float:left"><a href="http://www.cactuslanguage.com/en/"><img src="/en/images_v2/cactus-worldwide-logo.gif" width="213" height="113" alt="Cactus Language Courses UK" /></a>
            </div>
    
        	<div style="float:right" class="logo-new">
    			<h1>Language Courses Abroad</h1>
            </div>
        </div>
        <div style="clear:both;"></div>
    
        <div id="main-top"><!-- main-top start -->
    		<div id="nav-box"><!-- search-box start -->
    
    			<?php include("include_v2/main-nav.php"); ?>
    
    		</div>
        </div><!-- main-top end -->
        <div style="clear:both;"></div>
        <div id="main-mid"><!-- main-mid start -->
            <div style="margin-bottom:4px;">
                <!-- slideshow -->
                <div id="pagerCycle">
                    <div id="nav"></div>
                </div>
                <div id="slideshowCycle" class="slideshow">
                    <a href="http://www.cactuslanguage.com/en/juniors/" title="Summer language camps for juniors"><img src="http://www.cactuslanguage.com/en/images_v2/banners/forjuniors.jpg" alt="junior students" /></a>
                    <a href="http://www.languagecoursesuk.co.uk/courses/ten-week-courses.php" title="Evening language courses in the UK"><img src="http://www.cactuslanguage.com/en/images_v2/banners/eveningcourses-inuk.jpg" alt="Evening Courses in the UK" /></a>
                    <a href="http://www.cactuslanguage.com/en/languages/italian/italy/venice.php" title="Learn Italian in  Venice"><img src="http://www.cactuslanguage.com/en/images_v2/banners/italian-venice.jpg" alt="Dazzling Venice Italy" /></a>
                    <a href="http://www.cactuslanguage.com/en/languages/spanish/argentina/buenos_aires.php" title="Spanish courses in Buenos Aires"><img src="http://www.cactuslanguage.com/en/images_v2/banners/spanishcourses-buenos.jpg" alt="Buenos Aires" /></a>
                    <a href="http://www.cactuslanguage.com/en/languages/chinese/china/beijing.php" title="Mandarin Chinese in Beijing"><img src="http://www.cactuslanguage.com/en/images_v2/banners/chinese-beijing.jpg" alt="beijing" /></a>
                </div>
                <!-- slideshow -->
        </div><!-- main-mid end -->
        <div id="searchblock">
    		<?php include($_GLOBAL['language_root'] . "/include/course_search-home.php"); ?>
          
    	</div>
    	<div id="main-left"><!-- main-left start -->
    		
    		 <?php include("include_v2/callUs.php") ?>
    		 <h2 class="contact">Contact Us</h2>
    			<?php if($_GET['msg1'] == ''){ ?>
            <?php include("include_v2/contact-sidebar.php") ?>
            <?php } else {
    			echo '<p class="msg1">'.$_REQUEST['msg1'].'</p>';
    		}?>
                <?php include("include_v2/cactus-extrasB.php") ?>
                
            </div><!-- main-left end -->
    
            <div id="main-right"><!-- main-right start -->
                
                <h2>Language Courses &amp; Holidays Worldwide</h2>
                <p>Learning a language in the country where it's spoken is a fun, effective and confidence-boosting experience. Cactus offers language courses in over 120 locations worldwide for <a href="http://www.cactuslanguage.com/en/juniors/">adults</a>, <a href="http://www.cactuslanguage.com/en/adults/">juniors</a> and professionals. Our team of language learning experts are on hand to assist with accommodation, airport transfers, course enrolment, visa applications and all the support and advice you need before, during and after your trip.</p>
     
    <p>Cactus has over 15 years' experience providing study abroad courses in over 25 different languages. Whether you want to learn <a href="http://www.cactuslanguage.com/en/languages/english.php">English</a>, <a href="http://www.cactuslanguage.com/en/languages/spanish.php">Spanish</a>, <a href="http://www.cactuslanguage.com/en/languages/french.php">French</a>, <a href="http://www.cactuslanguage.com/en/languages/german.php">German</a> or <a href="http://www.cactuslanguage.com/en/languages/chinese_mandarin.php">Mandarin</a>, you can book with us knowing you will receive not only the highest standards of customer service, but also a price match guarantee that will leave you more money to spend when you're there!</p>
                <h3>Why book your language course with Cactus?</h3>
                <ul class="contentbullets">
                	<li>First-class selection of courses in 25 languages and 120 locations</li>
                	<li>Prices equal to or less than booking directly with school</li>
                	<li>Friendly, multi-lingual team</li>
                	<li>Academic experts</li>
                	<li>Ongoing support and advice</li>
                	<li>Assistance with accommodation, visas & extras</li>
                	<li>Regular offers and discounts</li>
                </ul> 
                <ul class="bluebox">
    	            <li><a href="/en/languages.php">Languages<br /> <span>Courses in 25 languages</span></a></li>
    	            <li><a href="/en/adults/">Adults<br /> <span>Year-round language courses for all interests</span></a></li>
    	            <li><a href="/en/juniors/">Juniors<br /> <span>Summer language camps for Under 18s</span></a></li>
    	            <!-- <li><a href="#">Professionals<br /> <span>&nbsp;</span></a></li> -->
    	        </ul> 
            </div>
            <!-- main-right end -->
            <div style="clear:both;"></div>
            <div style="margin-bottom:4px;">
            
            <?php if($_GET['msg1'] != "") {?>    
            <h2>Featured</h2>
            <div id="pagerCycle">
                <div id="nav"></div>
            </div>
            <div id="slideshowCycle" class="slideshow">     
                <?php
                $randomImage = array(
                    0 => "<a href='http://www.cactuslanguage.com/en/languages/spanish.php' title='Learn Spanish'><img src='http://www.cactuslanguage.com/en/images/offer-images/Banners/Spanish.jpg' alt='Spanish' /></a>", 
                    1 => "<a href='http://www.cactuslanguage.com/en/languages/english.php' title='Learn English'><img src='http://www.cactuslanguage.com/en/images/offer-images/Banners/English.jpg' alt='English' /></a>",
                    2 => "<a href='http://www.cactuslanguage.com/en/languages/french.php' title='Learn French'><img src='http://www.cactuslanguage.com/en/images/offer-images/Banners/French.jpg' alt='French' /></a>",
                    3 => "<a href='http://www.cactuslanguage.com/en/languages/italian.php' title='Learn Italian'><img src='http://www.cactuslanguage.com/en/images/offer-images/Banners/Italian.jpg' alt='Italian' /></a>"
                );
                
                $randNb = rand(0, 3);
                 echo $randomImage[$randNb];
                ?>
            </div>
            <?php } ?>
            </div>
                <?php include("include_v2/tabsB.php"); ?>
            <br />
            <br />
    
        </div><!-- main-mid end -->
    
    <div id="main-bot"><!-- main-bot start -->
    
    <?php 
    $language = 'english';
    include("include/footer-new.php"); ?>
    </div><!-- main-bot end -->
    
    </div><!-- frame end -->
    
    </body>
    </html>

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,876
    Thanks
    6
    Thanked 1,035 Times in 1,008 Posts
    Boy, how long have you been a member on this forum? And you still haven’t learned to post your questions in the correct section. And for about the same amount of time you have been using and asking questions about jQuery; I’m surprised that you still make those bloody beginner mistakes.

    Read the sticky.


  •  

    LinkBacks (?)


    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •