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 7 of 7

Thread: Jquery issue? dont know if I can ask on thsi forum.

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jquery issue? dont know if I can ask on thsi forum.

    So if anyone knows jquery... I need some help. this script should basically delete the sub cell if the mouse is not over the main cell or the sub cell...but it wont work!! HELP!

    $('#layer2_cell1').hide();
    $("#layer2_cell1").mouseenter(function() {
    $("#storage").data('airplanessubcell', '1');
    });
    $("#layer2_cell1").mouseleave(function() {
    $("#storage").data('airplanessubcell', '0');
    });
    $("#layer1_cell1").mouseenter(function() {
    $('#layer2_cell1').show();
    });
    $("#layer1_cell1").mouseleave(function() {
    var subcell = $("#storage").data('airplanessubcell');
    if (!(subcell == '1')) {
    $('#layer2_cell1').hide();
    }
    });


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jquery issue? dont know if I can ask on thsi forum.

    Your code does not look like java.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Jquery issue? dont know if I can ask on thsi forum.

    Quote Originally Posted by Norm View Post
    Your code does not look like java.
    Its jquery.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jquery issue? dont know if I can ask on thsi forum.

    This is a java forum
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Mar 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Jquery issue? dont know if I can ask on thsi forum.

    Well jquery is java...its just jquery haha

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jquery issue? dont know if I can ask on thsi forum.

    Do you know what java is?
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Jquery issue? dont know if I can ask on thsi forum.

    Quote Originally Posted by Allenph View Post
    Well jquery is java...its just jquery haha
    No. JQuery is javascript. And javascript != java. I'd suggest trying your luck on a javascript dedicated forum.

Similar Threads

  1. Dont know how to recorrect
    By Asin in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 2nd, 2011, 12:59 PM
  2. THE MVVM AND MVC CONCEPT USING JAVASCRIPT,JQUERY,KNOCKOUTJS
    By gokulakrishnan in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 9th, 2011, 11:54 PM
  3. I dont understand why this happens....
    By ashenwolf in forum What's Wrong With My Code?
    Replies: 4
    Last Post: May 10th, 2011, 09:31 PM
  4. Javascript/JQuery question
    By Charlie in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 5th, 2010, 09:39 AM
  5. I dont get it....please help
    By DestinyChick1225 in forum What's Wrong With My Code?
    Replies: 12
    Last Post: June 30th, 2010, 03:16 AM