> there is no response object in Javascript... So this leads me to belive
that
> the code is asp.. Please try to add some specifics to the question. Also
try
> to re-write the code using single quotes and double quotes. the
readability
> difference is increadible.
I am trying to make an inline javascript onchange event in ASP : The
syntax error is in the OnChange event itself. When I take it out, the job
runs fine.
if strSKUList(1,intLoop) <> "" then
Response.write doTab(7) & "<TD WIDTH=25% COLOR=BLACK align=left>"
Response.write "<p align=left><INPUT TYPE=TEXT NAME=" & intLoop & "-
SAFETYSTOCK SIZE=6 VALUE=" & strSKUList(1,intLoop) & _
" OnBlur=""CheckSafetyStock(" & intLoop & ");"" OnChange=""if (" &
intLoop & "-SAFETYSTOCK != " & intLoop & "-HSAFETYSTOCK && " & intLoop & "-
SAFETYSTOCK == '') " & intLoop & "-HSAFETYSTOCK =-1"">"
response.write "<INPUT TYPE=HIDDEN NAME=" & intLoop & "-HSAFETYSTOCK
VALUE=" & strSKUList(1,intLoop) & ">"
else
Response.write doTab(7) & "<TD 25% STYLE=""COLOR: BLACK;""><INPUT
TYPE=TEXT NAME=" & intLoop & "-SAFETYSTOCK SIZE=6 VALUE=''" & _
" OnBlur=""CheckSafetyStock(" & intLoop & ");"">"
end if