• Post Reply Bookmark Topic Watch Topic
  • New Topic

Value undefined  RSS feed

 
Sharon Wong
Ranch Hand
Posts: 37
IBM DB2 Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Team

i use ajax to prompt out data i need.


The below is coding for jsp when display_addNewProduct is working.

This is from servlet coding:


When i click button 'Save', it will run function isMrktPrdtExist. Once it mrktCdProdInd = N, it need work with function display_addNewProduct. It will prompt out the screen for display_addNewProduct, But the value of mrktcd and prodcd write undefined. How to define the value of mrktcd and prodcd ?

Link at mrktCd (<a href="javascript:display_addNewProduct(foFrgTrd.mrktCd, foFrgTrd.prodCd)" >Add New Product</a>) is no problem.

Thank you very much.

Best Regards
Sharon
 
Stevens Miller
Bartender
Posts: 1444
30
C++ Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sharon, that's kind of a long program for people to read and help you debug. Can you eliminate some of it and still demonstrate the problem? Often, dividing a program down into smaller parts, so you can isolate the bug, reveals what the problem was in the first place.
 
Sharon Wong
Ranch Hand
Posts: 37
IBM DB2 Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Issue solved.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!