Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: JQuery isn't loading

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default JQuery isn't loading

    Hi, I'm kinda new to Javascript, I am taking a small class of it weekly but I am advancing my knowledge out of class.

    I've actually been taught about JQuery and I've google'd this a dozen and used many attempts at fixing this, but none have come to prevail.

    This is my html code.

    HTML Code:
    <!doctype html>
    <meta charset=UTF-8>
    	<head>
    		<link rel="stylesheet" type="text/css" href="resources/interface.css" />
    		<script src="ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    		<script type="text/javascript" src="resources\main.js"></script>
    			<title>
    			Game Name
    			</title>
    	</head>
    	
    		<body style="background-color:#707070 ">
    		
    
    			<div id="container">
    				<div id="main-game">
    				<button onClick="oreClick(1)">Start Mining</button>
    				<p id="in-line">Ore Collected: </p>
    					<span id="ore"></span>
    					<div id="miner-menu">
    					<!--WOMAN HERE-->
    					<p id="center">Woman</p>
    					<img id="womanimage" src="resources\images\woman.gif">
    					<p id="center">Woman Miners: </p> <span id="women"></span><br/>
    					<p id="center">Cost: </p> <span id="womanCost"></span>
    					<button id="woman" onClick="buyWoman()">Buy Woman</button>
    					<!--MAN HERE--> 
    					<p id="center">Man</p>
    					<img id="manimage" src="resources\images\man.png">
    					<p id="center">Man Miners: </p> <span id="man"></span><br/>
    					<p id="center">Cost: </p> <span id="manCost"></span>
    					<button id="man" onClick="buyMan()">Buy Man</button>
    					</div>
    				</div>
    			</div>
    		</body>
    </html>
    EDIT: Forgot to mention the error is the fact that JQuery isn't loading, I've tried running alerts and it hasn't happened.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,069
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: JQuery isn't loading

    Try a javascript forum. Java != javascript
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    Vegeta508 (February 25th, 2014)

  4. #3
    Junior Member
    Join Date
    Feb 2014
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: JQuery isn't loading

    Quote Originally Posted by Norm View Post
    Try a javascript forum. Java != javascript
    I forgot this...

    My tutor also mentioned this.

Similar Threads

  1. Jquery issue
    By lakshmi123 in forum Other Programming Languages
    Replies: 2
    Last Post: January 22nd, 2014, 08:46 AM
  2. jquery jqgrid
    By pavansilpa in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 28th, 2013, 05:56 AM
  3. Javascript/JQuery question
    By Charlie in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 5th, 2010, 09:39 AM