Results 1 to 5 of 5

Thread: jQuery effect

  1. #1
    lilleza87 is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default jQuery effect

    Hi! I'm not sure this is the right place to ask, but I hope it's ok. I have meda a function using javascript in my html file to validate a simple form. Looks like this:
    function verify(form) {
    var letExp = /^[0-9]+$/;
    if (contact.name.value == "" ||
    contact.name.value.match(letExp) ||
    contact.message.value == ""||
    contact.mail.value == "" ||
    contact.mail.value.indexOf("@") == -1 ||
    contact.mail.value.indexOf(".") == -1){
    alert("Make sure all fields are filled out correctly.");
    return false;
    }
    else{
    alert("Thanks for your message!");
    return true;
    }
    }
    What I want to do is use a jQuery effect, like fadeIn for example, on the last alert message. I've tried doing this a few different ways, but nothing seems to work. I can't find anything that works or that I understand on google either. I was wondering if anyone could help me out. Maybe give me an example or something.
    Thanks

  2. #2
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    6

    Wink

    I am not much into jQuery stuff, but these are couple of links I found that may prove useful.

    Fade In Effect

    KeyCSS Fade In

    Hope that helps,

    Goldest
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    Also, this is a java forum not a javascript forum (they are very different). You might get more help on another forum related to javascript specifically. Good luck!

  4. #4
    lilleza87 is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default

    Yeah I had a feeling this was not the right forum, but you're so helpful here I was hoping someone knew what I was talking about.

    And thank you so much for the links, they made it much clearer :)

  5. #5
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

Similar Threads

  1. Pulse effect on text
    By Lingerz in forum AWT / Swing
    Replies: 2
    Last Post: 10-29-2010, 01:59 AM
  2. fading effect
    By silversurfer2in in forum AWT / Swing
    Replies: 4
    Last Post: 06-11-2010, 04:23 PM
  3. Smoke Effect help
    By jammyjamsticy in forum AWT / Swing
    Replies: 1
    Last Post: 04-20-2009, 01:34 PM
  4. Text effect: rotation and transparent
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-21-2008, 09:49 PM
  5. shadow effect in swt-sash
    By Jack in forum SWT / JFace
    Replies: 2
    Last Post: 07-02-2007, 06:04 AM

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
  •