Link to home
Start Free TrialLog in
Avatar of tmss_it_dept
tmss_it_deptFlag for United States of America

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:
response.write("<input NAME='txtHours' TYPE='text' readonly='readonly' OnClick='GetNames(" & rsFiltered("dbReqNo") & ")' ID='txtHours' SIZE='20' />")

Open in new window


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' />")

Open in new window


Any help would be appreciated.

Thanks,

Mike
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tmss_it_dept

ASKER

Genius I say...   I swear I tried every combination of quotation marks possible...   :)    Thank you so much for you help.

Mike
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!