• 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
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Onclick problem in JavaScript

 
Ranch Hand
Posts: 144
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a jsp page with a table, the table is loaded ok, I have four collumns in my table, in the  collumn one of my jsp I have a onclick to call javascript to load the information of collumn one to my input and then read data of my mysql table. The problem is that when I click in collumn one this don't work but after click in collumn two and click in collumn one, the data content of collumn one is loade to my input field.
This is my JavaScript code:

This is my table code:

Thanks in advance.
 
Master Rancher
Posts: 4371
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what you've posted it's the cells in column 2 that have the onClick associated with them, not column 1.
 
Cezar Apulchro
Ranch Hand
Posts: 144
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a great idiot, I copy and past of other application that I have and I don't change all of fields of this jsp.
Thanks and sorry.
 
please buy this thing and then I get a fat cut of the action:
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!