Calling the Client-Side updateView Function

The updateView method in SQLXML accepts three parameters: actn (ADD, CHANGE, or DELETE), id (the unique identifier of the record), and a Request object. The method uses Response.Write to create a client-side JavaScript function that calls the updateView function in the JavaScript (*.js) for the calling form.

oResponse.Write "<" & "script language=""JavaScript"">" & vbCrLf & _
                  "parent.window.updateView(""" & actn & """," & id & ");" & vbCrLf & _
                  "</" & "script>"

Note  Contrast this code with the code in RDS Returns Data As-Is that uses STUFF (a Transact-SQL function) to create client-side script.