473,322 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

why is this failing - call to active x

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
3 2817
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chris Curvey | last post by:
I've looked at this so long that I must be looking right past it. This code: class Page: ########################################################## def write(self, value, row=None, col=None,...
1
by: Ken Fine | last post by:
I have a menu system that has nodes that can be opened or closed. In an effort to make my code more manageable, I programmed a little widget tonight that keeps track of the open/active item and...
1
by: Rob Meade | last post by:
Hi all, I found an article on how to write a Windows service here: http://www.dotnetbips.com/displayarticle.aspx?id=178 It was pretty much what I wanted, I want the service to scan a...
4
by: Steven | last post by:
Hey there, I had to rebuild my PC. When I try to start a vb.net based asp project that had previously run, I get the following error "Error while trying to run project. Unable to start...
6
by: Adam Honek | last post by:
Can anyone spot why the below function is failing? It returns true but when looking inside the INI file there's no new added section. ****CODE**** Public Function WriteINIFileSection(ByVal...
6
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 with Apahce 2.2 on Fedora Core 5 Linux. I'm having trouble figuring out why an ftp_put call is failing. Is there a way I can get an exact reason other than checking...
1
by: shamirkoren | last post by:
I am a newbie to WML, How do I check if the mobile device has an active call, my intension is to send DTMF if there is an active call to our phone number. thanks
16
by: Akhenaten | last post by:
I must be missing something rather obvious. I have the following snippet of code that echo's my result twice when it should be echoing just once (only one element in the array). What am I...
25
by: Chris Thomasson | last post by:
The following code compiles fine with GCC, Comeau, EDG/C++ and VC++ 8/9: #include <cstdio> #include <string> int main() { { std::string names = { "One", "Two", "Three" };
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.