This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Trying to get displayTag show/hide row to work. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Trying to get displayTag show/hide row to work." Watch "Trying to get displayTag show/hide row to work." New topic
Author

Trying to get displayTag show/hide row to work.

stephen r davidson
Ranch Hand

Joined: Jun 23, 2013
Posts: 58
I found this code that looked promising for what I am trying to do -- that is, show and hide rows using displaytag.



The link doesn't activate, thus the JQuery plugin is not invoked. Now sure what I should code for the link in order to make this work. I pared down the code so that is as simple as I could get it. My subscriptions session variable has the row data. Any suggestions? I can manually change the style to display:visible and am able to see subscriptionList.id .
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63195
    
  69

Why are the link and script tags in the wrong place?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
stephen r davidson
Ranch Hand

Joined: Jun 23, 2013
Posts: 58
ok, I moved the scripts into the head section. But I am not sure why you are saying the link is in the wrong location. When I run the following:



THe output shows the link image in column1, which is what I am wanting to happen. Again, I borrowed this code and am trying to make it work. Where do you suggest placing the link? Wish I could link an image here so you could see what I am talking about.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63195
    
  69

The link elements should be in the head element.
stephen r davidson
Ranch Hand

Joined: Jun 23, 2013
Posts: 58
Ah..
These
<link rel="stylesheet" href="css/displaytag.css" type="text/css"></link>
<link rel="stylesheet" href="css/screen.css" type="text/css"></link>
<link rel="stylesheet" href="css/site.css" type="text/css"></link>

I thought you meant the link element, as in the <a> etc...

:-
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19719
    
  10

Right, those. Since they are HTML elements they should be inside the HTML document (and specifically, inside its HEAD element).
stephen r davidson
Ranch Hand

Joined: Jun 23, 2013
Posts: 58
Ok.
So I got this sample from a guy who had also posted the source -- three years ago. Dead link now. But it doesn't give an active link now. Hmm. Do I have to change the link so that it invokes the script?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63195
    
  69

I'm, not sure what the problem is as I've never used the tags, but invalid HTML is the first thing that should be fixed. If the HTML is invalid, there's no telling what can happen.
 
Have you checked out Aspose?
 
subject: Trying to get displayTag show/hide row to work.
 
It's not a secret anymore!