Burt
09-23-2003, 09:48 AM
Hi,
I need some help with the following code.
I use this code to get information from a database:
var strScale = "<%=rstClients("strPhoto_A_scale")%>"
As you can see I use some ASP-code within this construction.
Actually it is working fine, but I want to create a function for this code because I need it several times.
This is what I want:
var strRequest = "strPhoto_A_scale"
var strScale = "<%=rstClients(strRequest)%>"
fncGetDatabaseInfo(strScale)
Well, this doesn't work. I receive an ADO-error (item not found in collection).
Can you help me to construct the right syntax for this function?
Kind regards,
Burt
I need some help with the following code.
I use this code to get information from a database:
var strScale = "<%=rstClients("strPhoto_A_scale")%>"
As you can see I use some ASP-code within this construction.
Actually it is working fine, but I want to create a function for this code because I need it several times.
This is what I want:
var strRequest = "strPhoto_A_scale"
var strScale = "<%=rstClients(strRequest)%>"
fncGetDatabaseInfo(strScale)
Well, this doesn't work. I receive an ADO-error (item not found in collection).
Can you help me to construct the right syntax for this function?
Kind regards,
Burt