By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,652 Members | 1,484 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,652 IT Pros & Developers. It's quick & easy.

Calling VB6 function from javascript in ASP

P: n/a
Hi,

I need to instantiate a VB6 function and call it from javascript in
ASP.

<script language='javascript'>
function onScheduleTask() {
var ocuScheduler
ocuScheduler = new ActiveXObject("CCUtility.CU_ScheduledTaskQueue")

ocuScheduler.AddScheduledTask(SCHEDTASKTYPE_POLLED QUEUED)
}

</script>

looking at the code above :
->("CCUtility.CU_ScheduledTaskQueue") is a VB6 function running under
COM+
->ocuScheduler.AddScheduledTask(SCHEDTASKTYPE_POLLE DQUEUED)- here I'm
trying to call that function passing a parameter.

I get an error message when I try to execute the code : "Automation
server can't create object"

Please help.
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sipho wrote:
Hi,

I need to instantiate a VB6 function and call it from javascript in
ASP.

<script language='javascript'>
function onScheduleTask() {
var ocuScheduler
ocuScheduler = new ActiveXObject("CCUtility.CU_ScheduledTaskQueue")

ocuScheduler.AddScheduledTask(SCHEDTASKTYPE_POLLED QUEUED)
}

</script>

looking at the code above :
->("CCUtility.CU_ScheduledTaskQueue") is a VB6 function running under
COM+
->ocuScheduler.AddScheduledTask(SCHEDTASKTYPE_POLLE DQUEUED)- here I'm
trying to call that function passing a parameter.

I get an error message when I try to execute the code : "Automation
server can't create object"

Please help.

If this is an ASP function, you want Server.CreateObject() instead of
new ActiveXObject().
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.