Ajax

Ajax

am 16.07.2007 16:17:43 von John Peach

Can anyone please advise why this wont work ? The fisrt page of code reads
data from a database and populates combobox, depending on the selection made
the second combobox can be poputated, but the second procedure
(select_via_ajax_include.asp ) does not return the variables in the function
call ajaxcombo(sql, selectobjID, loadarea), can anyone advise ?

<%
Dim range
Dim range_numRows

set cn=Server.CreateObject("ADODB.Connection")
cn.Open "Provider=SQLOLEDB.1;Password=glencoe;Persist Security
Info=True;User ID=qadmin;Initial Catalog=UserInfo;Data Source=TLGUKSP17"
Set range=Server.CreateObject("ADODB.Recordset")
range.ActiveConnection=cn
range.Source="SELECT Range FROM [Variance Matrix] GROUP BY Range ORDER BY
Range"
range.CursorType=0
range.CursorLocation=2
range.LockType=1
range.Open()

range_numRows=0

%>

"http://www/w3/org/TR/html4/loose.dtd">



Variance Selector





















































<%range.close
set range=nothing%>

*************** select_via_ajax_include.asp *************
<%
set cn=Server.CreateObject("ADODB.Connection")
cn.Open "Provider=SQLOLEDB.1;Password=glencoe;Persist Security
Info=True;User ID=qadmin;Initial Catalog=UserInfo;Data Source=TLGUKSP17"

Dim Product
dim ProductnumRows
Dim Rnge
Dim newrange

Rnge=request.querystring("range")
newrange=request.querystring("newrange")

set Product=Server.CreateObject("ADODB.Recordset")

Product.Open "exec " & replace(request.querystring("sql"),"%20"," ") , cn
Product_numRows=0

%>

<%
product.close
set product=nothing
%>

Regards

John

Re: Ajax

am 16.07.2007 19:26:08 von Bob Milutinovic

"John Peach" wrote in message
news:469b7e3a$0$24747$da0feed9@news.zen.co.uk...

> cn.Open "Provider=SQLOLEDB.1;Password=glencoe;Persist Security

Right now would be a good time to change your database password.

--
Bob Milutinovic
Cognicom - "Australia's Web Presence Specialists"
http://www.cognicom.net.au/
telephone (0417) 45-77-66
facsimile (02) 9824-2240

Re: Ajax

am 17.07.2007 18:10:00 von MightyMouse

Mr. Peach, your sooo fired.

"Bob Milutinovic" wrote:

> "John Peach" wrote in message
> news:469b7e3a$0$24747$da0feed9@news.zen.co.uk...
>
> > cn.Open "Provider=SQLOLEDB.1;Password=glencoe;Persist Security
>
> Right now would be a good time to change your database password.
>
> --
> Bob Milutinovic
> Cognicom - "Australia's Web Presence Specialists"
> http://www.cognicom.net.au/
> telephone (0417) 45-77-66
> facsimile (02) 9824-2240
>
>
>