About 1,360,000 results
Open links in new tab
  1. jscript - Is there a "createObject" in javascript? - Stack Overflow

    Oct 16, 2013 · In VBScript there is a function called CreateObject, which can be run on a client through a webpage. I've used it before like this: Set icaObj = CreateObject("Citrix.ICAClient") CitrixVersion = icaObj.ClientVersion To find out which version of the application was installed on the client machine. Is there something comparable in JavaScript?

  2. what is the equivalent JavaScript function for VBScript …

    Dec 18, 2012 · What is the JavaScript equivalent function for CreateObject("Scripting.Dictionary")? I have to convert following two statements from VBScript to JavaScript, anyone can help me to find a solution. Set oInvoicesToCreate = CreateObject("Scripting.Dictionary") If Not oInvoicesToCreate.Exists(cInvoiceID) Then oInvoicesToCreate(CStr(cInvoiceID ...

  3. JavaScript inheritance: Object.create vs new - Stack Overflow

    Oct 24, 2012 · In Javascript, the difference between 'Object.create' and 'new' 2. Object.create instead of Constructors ...

  4. What is the difference between CreateObject and …

    The WScript CreateObject method interprets the second parameter as a subroutine prefix to be used in handling events from the object. The two GetObject functions are similarly related. (Adapted from TechNet , section "Comparing VBScript CreateObject and GetObject Functions with …

  5. Why use `URL.createObjectURL (blob)` instead of `image.src`?

    Apr 19, 2020 · Q1. In the context of asynchronous JavaScript and the need to ‘fetch’ data from the client-side, why can’t we just edit our image elements by its attribute src? Q2. Why is the Blob conversion process necessary to go through? Q3. What is the blob role? e.g. Retrieving image file from JSON. (BTW, I extracted it from MDN webpage, mind the ...

  6. How to "properly" create a custom object in JavaScript?

    Oct 20, 2009 · (Probably the author is also confused. JavaScript's object model is very different to most programming languages, and in many places straight-up badly designed.) Let's start with the prototype way. This is the most JavaScript-native you can get: there is a minimum of overhead code and instanceof will work with instances of this kind of object.

  7. javascript - Using "Object.create" instead of "new" - Stack Overflow

    Apr 26, 2010 · Object.create() is a Javascript function which takes 2 arguments and returns a new object. The first argument is an object which will be the prototype of the newly created object; The second argument is an object which will be the properties of the newly created object; Example:

  8. javascript - How to use URL.createObjectURL? - Stack Overflow

    Mar 6, 2017 · My aim is to have a form that submits a URL to an endpoint that returns a base64 encoding of a PDF that is shown on screen without a window.open popup. Example output I want: https://s.natalian.or...

  9. How to create Document objects with JavaScript - Stack Overflow

    Nov 22, 2011 · Assuming you are trying to create a fully parsed Document object from a string of markup and a content-type you also happen to know (maybe because you got the html from an xmlhttprequest, and thus got the content-type in its Content-Type http header; probably usually text/html) – it should be this easy:

  10. How to use FileSystemObject to read file in JavaScript

    Sep 9, 2014 · Using JSON in conjunction with data pulled from the FileSystemObject provides a great way to allow JavaScript interaction (JSON .parse and .stringify come immediately to mind). With this, data could be stored locally, perhaps as an alternative to HTML5 local storage (ref this SO thread , which goes more in-depth with this concept, and another ...

Refresh