Are you referring to client-side javascript or server-side? If you're referring to client-side JS then you will have to make a trip back to the server either by redirecting the page to another page which performs the insert in server-side ASP (preferable), or by popping up a window via javascript which again loads a page to perform the insert server-side.
Dan www.diado.com -----Original Message----- From: marucomartinez [mailto:[EMAIL PROTECTED] Sent: 22 September 2004 14:46 To: [EMAIL PROTECTED] Subject: [ASP] Writing to SQL from a jscript using an ASP page Dear friend: Let me explain what I have. I have an ASP page that displays several ASP forms from where any user can select and view a form. Each form has a print button at the bottom of the form. When the user has loaded the form for viewing it retrieved the data from a SQL database. When the user clicks the print button a call is made to a java script to insert a value to the SQL table so the next time another user retrieve the list of ASP forms the listing displays a check mark next to the form name indicating that the form was previously printed. My question is how can I write the SQL command within the java script? --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
