•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 401,981 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,586 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 4936 | Replies: 1
![]() |
•
•
Join Date: Nov 2004
Posts: 12
Reputation:
Rep Power: 4
Solved Threads: 0
I wrote a piece of code that allows me to pass a numeric primary key for update when looping through a recordset. This works fine, however, I am doing the same routine for one level deeper into the database structure and the primary key is concantenated and the component I need to pass is a single leter. The code that works so well with the number, now dies and gives the 'object undefined' error...I just want it to pass a string literal...
Any help is apprecited. here is the code for the function:
here is the function call : this is in a jasp file.
again, this works fine when i am passing a number... but I now need to pass an alpha char as the key ....
Any help is apprecited. here is the code for the function:
jsProdPayType = "";
jsProdNm = "";
function setProdPayTyp(num){
jsProdPayType = num;
}here is the function call : this is in a jasp file.
<td><input type="radio" name ="select_record" onclick="javascript:setProdPayType(<%=rs_row.elementAt(3)%>);" > </td>
again, this works fine when i am passing a number... but I now need to pass an alpha char as the key ....
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- char * = "string" and strcpy = SegFault? (C++)
- String splitter (C)
- Long String (C++)
- Java's String Tokenizer (Java)
- making a string .. name of an object (Java)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Capturing data from txt file using JavaScript/HTML
- Next Thread: Mouse over buttons on .js file? Urgent-help


Linear Mode