openSUSE Forums > Programming/Scripting » jquery question on slideUp fadeIn and show

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-Sep-2009, 16:36
yu210148's Avatar
Explorer Penguin
 
Join Date: Jan 2009
Location: Toronto, Ontario
Posts: 154
yu210148 hasn't been rated much yet
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.
Reply With Quote
  #2 (permalink)  
Old 14-Sep-2009, 09:03
yu210148's Avatar
Explorer Penguin
 
Join Date: Jan 2009
Location: Toronto, Ontario
Posts: 154
yu210148 hasn't been rated much yet
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.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2