• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Multiple tables on one page

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I finally made "add rows to a table" and "delete current row of the table" JavaScript work.

However, I have a number of tables within one single web page and "the" JavaScript feature must apply to every one of those tables.

I found that the JavaScript (see below) works only for the "last" table in that page. For example; say, I have Tables A (with its "id") and B (with its "id"). If I put the JavaScript for Table A only, everything works as expected. Thereafter, I modify the JavaScript wherever different name applies to Table B and add the script to my file. Everything works as expected for Table B but things stop working for Table A (there is no response at all when I click on the ADD button for Table A).

Please help for I can not figure out the problem. Thank you.


[ April 05, 2007: Message edited by: JiaPei Jen ]
[ April 05, 2007: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi JiaPei,

can you show us some of your html-code?

Herman
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let me answer my own question.

The cause of my problem was that I had too many

The correct way to do is:


Thank you very much for your attention to my problem.
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic