• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Trying to get displayTag show/hide row to work.

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Marshal
Posts: 67286
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are the link and script tags in the wrong place?
 
stephen r davidson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 67286
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The link elements should be in the head element.
 
stephen r davidson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...

:-
 
Sheriff
Posts: 24654
58
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 67286
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Hot dog! An advertiser loves us THIS much:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!