URGENT:scripting in xsi

Hi there,

I was wondering if anyone out there knew how to do the following in XSI/Visual Basic/HTML code:

How do you return a value from a VB function?
How do you query an html form (like a text field) through VB?
How do you declare a global variable in VB?

Please let me know

Returning a function value

Function WhackHoSlutBitch( args)
Dim temp
temp = args & "space filling instructions"
WhackHoSlutBitch = temp
End Function

Query Submitted HTML forms. You can't do that in XSI. you can use Prompts in XSI to get values from the user directly via an input box.

Declaring global variables. Just use "Dim varName" on the top level of code and everything will refer to that variable.

-Vijay

With the XSI Netview, you can actually write scripts inside html pages, and mix XSI commands with browser commands.

The trick is do create the XSI object inside your html script:

set XSIapp = createObject("XSI.Application")
set xsi = XSIapp.application

prefix all the xsi commands with xsi. like xsi.logmessage we should have some examples on www.softimage.com/xsinet shortly.

-Olivier Ozoux

we have tried your trick with the XSI Object inside our html script and it works pretty fine as long as the file
is stored locally.
as soon as we place the html script on a webserver the automation server cannot create the XSI object.
we assume that it has something to do with the security properties of the netview-browser. is there a way to adjust them? does anybody know how we can create our XSI object from a webserver?
thanx,
chris and michi