Guest Hiyall Posted November 18, 2005 Share Posted November 18, 2005 Hi Ya'll,I am trying to call a vbscript from a java server page. I have tried <script language="VBScript" src="catinahat.vbs" /> (Cat in a hat is just my test file which in itself calls thing1.vbs and thing2.vbs) My real files create an Active Directory account, activate email accounts, and append to a log. Anyway, I want to kick off the vbs file as soon as the jsp page loads. Any ideas? Link to comment Share on other sites More sharing options...
aspnetguy Posted November 29, 2005 Share Posted November 29, 2005 I don't know JSP but in ASP.Net in the Page_Load() function you can usethis.RegisterStartupScript(scriptKey, ScriptCode);I am sure there is something similar in JSP. Link to comment Share on other sites More sharing options...
aspnetguy Posted November 29, 2005 Share Posted November 29, 2005 hey try thishttp://www.faqts.com/knowledge_base/view.p...d/18026/fid/426or if you don't need to do any processing befor ethe javascript is run then just include this in hte <head> of your page.<script language="VBScript" src="catinahat.vbs"></script><script>onload=function InitPage(){ call first function from .vbs}</script>Substitue the VBScript equivalent for the javascript provided. Sorry I haven't touched VBScript in a long time and am very rusty. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now