CreateObject IN JAVA SCRIPT


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: CreateObject IN JAVA SCRIPT

  1. #1
    DBui Guest

    CreateObject IN JAVA SCRIPT

    What is the syntax of the following vbscript sentence in JavaScript.

    dim someObj
    set someObj = CreateObject("Shell.Application")

    Thanks



  2. #2
    poke poke Guest

    Re: CreateObject IN JAVA SCRIPT


    var someObj
    someObj = new ActiveXObject("Shell.Application");

    Enjoy
    Poke!


    "DBui" <dbui@cs.ucr.edu> wrote:
    >What is the syntax of the following vbscript sentence in JavaScript.
    >
    >dim someObj
    >set someObj = CreateObject("Shell.Application")
    >
    >Thanks
    >
    >



  3. #3
    Join Date
    Jan 2007
    Posts
    11

    hi

    do we need to add any class libraries in this file because i tried the same thing but it gives me error.
    Generated servlet error:
    [javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\__default-web-module-server\org\apache\jsp\matjava_jsp.java:64: cannot find symbol
    [javac] symbol : class ActiveXObject
    [javac] location: class org.apache.jsp.matjava_jsp
    [javac] MatLab = new ActiveXObject("Matlab.Application");
    [javac] ^
    [javac] 1 error
    Please help

  4. #4
    Join Date
    Dec 2006
    Location
    Kerala,India
    Posts
    51
    It seems like, the java script code you have written in JSP is treated as Java code. This code should not be inside "<% %>" tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center