Results 1 to 2 of 2

Thread: jquery question on slideUp fadeIn and show

  1. #1
    Join Date
    Jan 2009
    Location
    Toronto, Ontario
    Posts
    188

    Default jquery question on slideUp fadeIn and show

    Hi all,

    jquery noob question here. I've got a php script that runs a few price
    checker kiosks out on the sales floor at work and I've got a <p> element
    that I can get to slide up when a product is scanned and slide back down
    after a 5 second pause with:

    $(function() {
    $("p").slideUp("slow");
    setTimeout(function(){ $("p").slideDown("slow"); }, 5000);
    });

    but when I change the slideUp and slideDown to fadeIn and fadeOut I'm not
    getting the element to fade in or out. Instead the element shows up on the
    screen then after 5 seconds the element appears in the position where it
    ends up after a slideUp.

    Similarly if I change the slideUp and slideDown to 'show' and 'hide' the
    element again shows up in the spot that it starts the slideUp from then
    slides up after 5 seconds.

    Any thoughts on what I'm doing wrong?

    Thanks in advance.

    --
    kev.

  2. #2
    Join Date
    Jan 2009
    Location
    Toronto, Ontario
    Posts
    188

    Default Re: jquery question on slideUp fadeIn and show

    Kevin Lucas wrote:

    > Hi all,
    >
    > jquery noob question here. I've got a php script that runs a few price
    > checker kiosks out on the sales floor at work and I've got a <p> element
    > that I can get to slide up when a product is scanned and slide back down
    > after a 5 second pause with:
    >
    > $(function() {
    > $("p").slideUp("slow");
    > setTimeout(function(){ $("p").slideDown("slow"); }, 5000);
    > });
    >
    > but when I change the slideUp and slideDown to fadeIn and fadeOut I'm not
    > getting the element to fade in or out. Instead the element shows up on
    > the screen then after 5 seconds the element appears in the position where
    > it ends up after a slideUp.
    >
    > Similarly if I change the slideUp and slideDown to 'show' and 'hide' the
    > element again shows up in the spot that it starts the slideUp from then
    > slides up after 5 seconds.
    >
    > Any thoughts on what I'm doing wrong?
    >
    > Thanks in advance.
    >


    Nevermind. It's a moot point anyway as the embedded browser in the price
    checkers doesn't support even the slideUp/slideDowns.

    --
    kev.

Posting Permissions

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