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

why is this failing - call to active x

P: n/a
I have the following which works in a jsp page

var obj = bew ActiveXObject(Tool.parsedatService);
var str = obj.test();
alert(str);

this prints out a string that i return from my activeX dll library .

now I add the following to the jsp and i now get a message which is a jsp
error object doesnt support this property or method..

my jsp has the following

<object id="RisTool" width="0" height="0"
classid="clsid: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
codebase="http://localhost/RistoolX.dll#version1,0,0,1">
</object>

my jscript function
now looks like this

var str = RisTool.test();
alert(str);

what am i missing...i keep getting the error above.

thanks

Feb 7 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
lans redmond wrote:
I have the following which works in a jsp page

var obj = bew ActiveXObject(Tool.parsedatService);
var str = obj.test();
alert(str);
If it works with an alert(), then your code is running on the client
browser, right?
now I add the following to the jsp and i now get a message which is a jsp
error object doesnt support this property or method..


But a jsp error means you're trying to run that code <object> on the
server.

????

Kev

Feb 7 '06 #2

P: n/a
yes.its running on the client. I signed the dll..so it is trusted to be
downloaded into the browser..Im not etting a jsp error..i turned script
debugging on and I get a script error dialog with the message that the
object does not have the proprty or method..and im sorry..not a jsp but a
html page...with a javascript function call
"Kevin Darling" <kd******@basit.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
lans redmond wrote:
I have the following which works in a jsp page

var obj = bew ActiveXObject(Tool.parsedatService);
var str = obj.test();
alert(str);


If it works with an alert(), then your code is running on the client
browser, right?
now I add the following to the jsp and i now get a message which is a jsp
error object doesnt support this property or method..


But a jsp error means you're trying to run that code <object> on the
server.

????

Kev

Feb 7 '06 #3

P: n/a
lans redmond wrote:
yes.its running on the client. I signed the dll..so it is trusted to be
downloaded into the browser..Im not etting a jsp error..i turned script
debugging on and I get a script error dialog with the message that the
object does not have the proprty or method..and im sorry..not a jsp but a
html page...with a javascript function call


Hard to help. Hmm. So the DLL either isn't getting downloaded or
instantiated.

Have you tried registering the DLL on the client just to make sure your
HTML OBJECT works okay first? Once it's working, you can unregister
it and try downloading again.

For example, that codebase version should be "#Version=1,1,1,1" (or
whatever, the = sign was missing).

Also, for debugging, turn on the IE security stuff that says "Prompt"
for downloading, just so you get a little more info as it happens.

Kev

Feb 7 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.