Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can I pass a parameter to an Object Method, from VBScript?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have declared my object (COM+) from the beginnig of the page, like this:
<%@ Language=VBScript %>
<%Option Explicit
Dim Darwin
Set Darwin = Server.CreateObject(&quot;cmpCOMDarwin.cClients&quot;)
%>

I need to pass a parameter from a combolist, so I add this script
<SCRIPT LANGUAGE=&quot;VBScript&quot;>
<!--
Sub Client_OnChange

<%Set RsProducts=Darwin.SearchProducts (form.cmbClient.value,Session(&quot;iduser&quot;))%>
'Where form.cmbCountries.Value is the value of the combolist

End Sub
-->
</SCRIPT>
This is not working, please help me, to fix it.
Thank you!
 
You're mixing client and server side script in a way which isn't going to work. In order to get the client side value back to the server side object, you'll need to refresh the page and then send the value.

Check out this FAQ for more information on client vs. server side scripting:

faq329-603
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top