View Full Version : Whether Laszlo supports Activex components
shesh91
03-23-2004, 01:31 AM
Dear All,
I configured my Tomcat with Microsoft IIS. Now for server side coding I am using ASP rather than JSP.
I am able to run the Laszlo file along with ASP after the configuration.
I have one Activex component in my ASP file.
How can I intergrate ASP with Laszlo for this purpose.
With Regards
Sesh
antun
03-23-2004, 09:51 AM
You can integrate it by making your ASP page accept GET/POST parameters and have it interact with the ActiveX component, and return XML data to the Laszlo app over HTTP.
-Antun
shesh91
03-24-2004, 04:57 AM
Dear Antun,
I have this code in my ASP.. which is nothing but a code which used to have a common dialog box Activex control
/** Commondialog.asp **/
<SCRIPT>
alert(location.pathname.substr(1))
</SCRIPT>
<OBJECT ID="CommonDialog1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB">
<PARAM NAME="CancelError" VALUE="1">
<PARAM NAME="DialogTitle" VALUE="Select Data File">
<PARAM NAME="Filter" VALUE="Simp Files (*.*)|*.*|All
Files (*.*)|*.*">
</OBJECT>
<input type=button onclick=LoadFile(location.pathname.substr(1))>
<SCRIPT LANGUAGE="VBScript">
Sub LoadFile(GameDir)
On Error Resume Next
CommonDialog1.InitDir=GameDir
CommonDialog1.ShowOpen
msgbox(Err.Number)
If Err.Number=32755 Then
Err.Clear
On Error Goto 0 'Restore Default Error Handler
Exit Sub
End If
On Error Goto 0
MsgBox "You chose "+CommonDialog1.FileName
End Sub
</SCRIPT>
-------------------------------------------------------
Whether its possible for me to call this in my Laszlo code. If so whats the syntax for that..
In general I want to call Activex controls like this in my Laszlo coding.
With Regards
Sesh
antun
03-24-2004, 09:02 AM
I'm not too familiar with ActiveX controls, but I'll try to help. I know that you can execute JavaScript in the browser from a URL, e.g.
// Ignore the space in javascript below, the forum
// software adds it in for security.
//
javascript:alert('hello world')
(instead of http://www...).
Can you do something like this with VBScript/ActiveX? If so, you could do so using the LzBrowser.loadURL() method. I would normally caution that different browsers place different restrictions on what piece of JavaScript you can call via the URL, however since you're talking about ActiveX controls, you aren't worried about cross-browser compatability.
-Antun
shesh91
03-28-2004, 09:01 PM
Dear Antun,
I am not able to get you in this point.
My requirement is, I am having a ASP file which itself has some Activex component in that.
I just want to embed the ASP file with Laszlo so that component will be visible to the user.
But as per the Laszlo's documentation, ASP or JSP should produce only XML file which Laszlo will parse and show the results.
So I think its not possible to just call an ASP or JSP file from Laszlo which produces result other than XML.
With Regards
Sesh
antun
03-29-2004, 08:47 AM
I just want to embed the ASP file with Laszlo so that component will be visible to the user.
In that case you could use the ASP page as a wrapper for the Laszlo app.
I just want to embed the ASP file with Laszlo so that component will be visible to the user.
That's correct - Laszlo apps can make data requests to any server side script provided that it returns XML over HTTP. But like I said above, you can put the Laszlo app inside of any page. That page can be an ASP page.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.