aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Bouncy content Panes Not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Bouncy content Panes Not working" Watch "Bouncy content Panes Not working" New topic
Author

Bouncy content Panes Not working

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055





I am using this code to hide the div tag but its not hiding ? By the way what does > sign imply in this scenario


http://www.lifesbizzare.blogspot.com || OCJP:81%
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4460
    
    8

http://api.jquery.com/child-selector/

That will look for a <div> that is a child of the element with id "bio". Is that what you wanted? (And why did you use that selector if you don't know what it means?)
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

Matthew Brown wrote:http://api.jquery.com/child-selector/

That will look for a <div> that is a child of the element with id "bio". Is that what you wanted? (And why did you use that selector if you don't know what it means?)



Hi Matthew,

Thanks a lot for your response, that clears a lot..I am reading multiple Jquery books to upgrade myself and I just came around this example, the above example is mentioned but the description about it is not clear but when I tried to implement it its not working
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4460
    
    8

Well, you'd need to show us the structure of the HTML for us to tell exactly why it isn't working.
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055


Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4460
    
    8

Well, as I said, your selector is looking for a <div> that is a child of the element with id "bio" Which doesn't match your HTML. You want to hide the div with id "bio"? Just use the selector "#bio".
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

Hi Matthew,

I didnt get it? I have defined an ID as bio for div tag ?
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4460
    
    8

Vishal Hegde wrote:I didnt get it? I have defined an ID as bio for div tag ?

Yes, and you've got a selector written to find a <div> inside that one. From the last post: "your selector is looking for a <div> that is a child of the element with id "bio""
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

Dear Matthew,

Child of which element??

I am still not getting why is the above HTML i posted wrong?
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4460
    
    8

the element with id "bio", just like my last two posts said.

"#bio" will match this:


"#bio > div" will match this:

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bouncy content Panes Not working