If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > sql query in javascript function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-03, 11:37
BaRRon BaRRon is offline
Registered User
 
Join Date: Aug 2003
Posts: 18
sql query in javascript function

Hi everybody,

I wrote this code:

<script language="JavaScript">

function changeliste_reacteur() {

<% Dim sqlselect_test, rssqlselect_test, res, req

sqlselect_test = " SELECT [id] FROM [BIZMANAG].[dbo].[CLIENT_FINAL] WHERE raffineur = 'TFE' "

Set rssqlselect_test = dbconn.Execute(sqlselect_test)

res= rssqlselect_test("id") %>

document.testc.testi.outerHTML="<% = res %>"

}
--></script>


I would like to know how can I replace the value "TFE" in the query by a variable given by a listbox. I know I have to use Request.form() but it don't take it as a variable due to a bad syntax I think.

Thank U

BaRRon
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On