0
Welcome Guest! Login
0 items Join Now

JavaScript file not working

    • GJPugh's Avatar
    • GJPugh
    • Jr. Rocketeer
    • Posts: 25
    • Thanks: 0

    JavaScript file not working

    Posted 9 years 10 months ago
    • I'm struggling to get a javascript file to run in a Joomla site.
      I've added the js file to the templates folder and called it in the code below but the script doesn't seem to be called. Have I missed some thing?


      <script type="text/javascript" src="http://www.picassosparadise.com/templates/rt_cygnet/js/2step_2.js"></script>
      
      <link rel="stylesheet" type="text/css" media="screen, projection" href="http://www.picassosparadise.com/templates/rt_cygnet/css/reg-form2.css"/>
      
      <div style="margin:0px auto;">
      <h2>Sign up for FREE and begin meeting new friends today</h2>
      	<!-- Make sure you update the URL -->
      	<form id="lbform" class="formlayout" action="http://app2.picassosparadise.com" method="post">
      		<fieldset>
      			
      			<div id="mydiv1">
      				<div id="mydiv-container1">
      					<div id="mydiv-content1">
      						<div class="magic">
      							<input type="hidden" value="1" name="sexuality">
      						</div>
      
      						<div class="row cf">
      							<label>I'm a:</label>
      							<select class="gender" name="gender">
      								<option>Please select</option>
      								<option value="1">man looking for a woman</option>
      								<option value="2">woman looking for a man</option>
      							</select>
      						</div>
      	
      						<div class="row cf">
      							<label>First name:</label>
      							<input type="text" class="text blur" name="firstname">
      						</div>
      
      						<div class="row cf">
      							<label>D.O.B.:</label>
      							<select class="day" name="dobday">
      								<option value="">Day</option>
      								<option value="1">01</option>
      								<option value="2">02</option>
      								<option value="3">03</option>
      								<option value="4">04</option>
      								<option value="5">05</option>
      							</select>
      
      							<select class="month" name="dobmonth">
      								<option value="">Month</option>
      								<option value="1">January</option>
      								<option value="2">February</option>
      							</select>
      
      							<select class="year" name="dobyear">
      								<option value="">Year</option>
      								<option value="1993">1995</option>
      								<option value="1993">1994</option>
      								<option value="1993">1993</option>
      								<option value="1992">1992</option>
      								<option value="1991">1991</option>
      							</select>
      						</div>
      		
      						<a href="#" onclick="show('mydiv2')">CONTINUE</a>
      					</div>
      				</div>
      			</div>
                              
      
                              <div id="mydiv2" style="display:none">
      				<div id="mydiv-container2">
      					<div id="mydiv-content2">
      						<div class="row cf">
      							<label for="email">Email:</label>
      							<input type="text" class="text blur" name="email" id="email">
      						</div>
      
      						<div class="row cf">
      							<label for="password">Password:</label>
      							<input type="password" value="" name="password" id="password">
      						</div>
      						<div class="row cf">
      							<button type="submit">JOIN FREE</button>
      						</div>
      						<div class="row cf">
      							<p class="note">By clicking 'Join Free' you are agreeing to our <a title="Terms of use" href="/help/terms.cfm">Terms of Use</a>.</p>
      						</div>
      					</div>
      				</div>
      			</div>
      
          	</fieldset>
      	</form>
      </div>
      
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: JavaScript file not working

    Posted 9 years 10 months ago
    • You membership appears to have expired? Support requires a current subscription.

      But, I can tell you - look in the browser console you are getting several 404's for the things that you are loading. You're also trying to load two more copies of Jquery on top of the one already loaded by joomla. You should only load one copy of jquery (done by joomla).

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.044 seconds