tmss_it_dept
asked on
Javascript syntax within response.write statement
Hello all. I have a bit of AJAX in which I am trying to add an OnClick() javascript call with 2 elements. I have it working with one, but when I try to add a second, either nothing happens, or I error out.
Below is the good code:
I need to add another static element of 'AssignedTo' to send to the function, and I tried the following with no success:
Any help would be appreciated.
Thanks,
Mike
Below is the good code:
response.write("<input NAME='txtHours' TYPE='text' readonly='readonly' OnClick='GetNames(" & rsFiltered("dbReqNo") & ")' ID='txtHours' SIZE='20' />")
I need to add another static element of 'AssignedTo' to send to the function, and I tried the following with no success:
response.write("<input NAME='txtHours' TYPE='text' readonly='readonly' OnClick='GetNames(" & rsFiltered("dbReqNo") & ", "AssignedTo")' ID='txtHours' SIZE='20' />")
Any help would be appreciated.
Thanks,
Mike
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Very timely and accurate...
sometimes it just helps to have another set of eyes look at things :)
Remeember, any time you want to do a Response.Write doubleQuotes, just double them up and it'll work every time!
Remeember, any time you want to do a Response.Write doubleQuotes, just double them up and it'll work every time!
ASKER
Mike