User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Nov 2004
Posts: 12
Reputation: beckerc is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
beckerc beckerc is offline Offline
Newbie Poster

object undefined instead of string literal

  #1  
Dec 15th, 2004
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:

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 ....
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Posts: 12
Reputation: beckerc is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
beckerc beckerc is offline Offline
Newbie Poster

Re: object undefined instead of string literal

  #2  
Dec 16th, 2004
this is one of those 'need a second set of eyes.... my funtion name is paytype my functioncall is paytyp ...so the do not match, so once i corrected that and put in the single quotes around my variable, everything works fine.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 7:35 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC