Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Javascript syntax within response.write statement

Avatar of tmss_it_dept
tmss_it_deptFlag for United States of America asked on
Programming Languages-OtherJavaScriptASP
4 Comments1 Solution226 ViewsLast Modified:
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' />")

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
Avatar of Big Monty
Big MontyFlag of United States of America imageWeb Ninja at large

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answers