Why Javascript?

I know there must be some rationale and reasoning behind the decision to choose the Javascript as the language underlying vRO. I don't know there are a few architectural tie-in that I'm sure that it allows all make sense. However, I'm fighting to see or find explanations for this choice, which makes them feel somewhat arbitrary. It is simply based on a matrix of popularity? Is it because the primary application 'partner' of vRO is vRA - a web application? Is the assumption that the primary automation of a virtualization environment are going to be web developers? What is some vestige of some acquired orchestration that VMware software there are a dozen years?

Of all languages that could be used for this, Javascript is one of the last, at the back of the bus with languages like ColdFusion and PHP, I would have taken. It's not because Javascript is not popular or frequently used, but because it's especially (I do not exclusively, but primarily) a front-end/display language (i.e. the MVC view) and even less back-end/automation language. I would understand Python or Perl-languages used by developers and sysadmins (usually for scripts and automation tasks) as well. Java also would have also made sense because 1) how Java applications (Tomcat, etc.) are used throughout the suite vR * and 2) the Orchestrator Client itself is written in Java. But coming from an administrator (which is non-A-Developer(tm)) who has learned enough bash, Python, Perl, Powershell, etc to be able to automate many aspects of our environment and must manage our vRO/vRA installation, Javascript seems to be such a weird choice.

Again, I am sure that there are some architectural element, I don't see that requires Javascript as the obvious choice. I can just see or find an explanation for it.

The first reason is as you said architectural as vRO is built using Java. The vRO plug-ins are Java plug-ins. These plug-ins expose a JavaScript API (objects and methods) script using the Rhino engine.

You can use the PowerShell plug-in, but then he will need to run scripts on a host of Powershell, leading to a solution less integrated, less reliable.

The second reason, that it was a good choice is the simplicity. I could teach Javascript system engineers who never scripted easily - Perl / Python / Powershell are much more enigmatic, hard to read / understand (I used to be a Perl script engine before and that it would take some effort for me to get abck to my old scripts). vRO need very little of the language (just knowing the basic if/else, of statements, lift object properties is already getting you much accomplished). Chances are likely a developer of workflow vRO will interact with a third-party web service REST / JSON (JavaScript Object Notation).

Also, it is not because Javascript is mainly used for the language of web front end that it is not popular for the development of the backbone. JavaScript is a popular scripting language, and its use for the development of the backbone is growing faster.

Many of these applications, that you can use on your phone will likely be a node.js backend.

I discovered that the people asking this question are the one who has already invested a lot in other languages you mentioned. But then if you are able to make one of the 3Ps scripting languages JavaScript is going to be very easy to learn if new for you and most of the time not relevant given that most of the workflow are about to / definition of the properties on the object since a lot of the logic is in the workflow itself.

Christophe.

Tags: VMware

Similar Questions

  • A Web site requires active javascript but I need to activate javascript. Why javascript does not work?

    Frequently, a website opens and asks that javascript must be enabled.

    I have javascript enabled in my internet options.Why do I keep getting this message?
    

    Java or Javascript? They are totally different. Do you have an example of Web site?

  • Why Javascript is still running despite being removed from the document?

    I've been experimenting with options to my last post (Ref., import of data from field) and in so doing discovered that my text field is always on display and updated when appropriate to the date of change of the document despite my having removed the javascript and any text field javascript Actions document, which has been used for this information in the first place. I filled the label property of a text field with a different text, which does not appear.

    I've looked everywhere, I might have placed coding and there is none, I also closed the document (after you save changes) and closed and then re-opened both Acrobat and the field is still showing thel ast date of change and to update this information as appropriate.

    Why? !!

    In Acrobat 9, you can select ("Advanced > Document Processing > edit all JavaScripts" and you will see all the code in the document.) Acrobat 10/11 have the same capacity, but I don't remember the exact Panel element, you need to select. Something in the Panel of JavaScript.

    When you say "property of the label", do you mean the value property? What is the default value of the field all to?

  • Why Javascript does not work properly?

    I'm working on a web page and try this script, but it does not work (although it works fine in IE). The code is given below:

    My function is:

    function validateNumber()
            {
                var x=window.event.keyCode;
                //alert(x);
                if(!(x>=48 && x<=57))
                    {
                        alert("Please type a number between 0 and 9 !!");
                    }
            }

    I use it as:

    <input type="text" name="cust_age" value=0 size="15" onkeypress="return validateNumber()" style="font-size: 16pt" />

    Please let me know how to solve this problem.

    Firefox does not use a global event of the window.
    On Firefox, you will need to pass the event to the function.

    I think it should work (I'm not an expert):

    <input type="text" name="cust_age" value=0 size="15" onkeypress="return validateNumber(event)" style="font-size: 16pt" />
    
    function validateNumber(event)
            {
                var x=window.event? window.event.keyCode : event;
                //alert(x);
                if(!(x>=48 && x<=57))
                    {
                        alert("Please type a number between 0 and 9 !!");
                    }
            }
  • Problems with saveAs form using Javascript

    I created a form using Acrobat X Pro. I have activated additional features so it will save.

    The form has a "Save form" button with the following code of Actions:

    var FileName = ' / H/docs / "+ this.getField("Last_Name").value +" "+ this.getField("First_Name").value +"2012.pdf Evaluation. "

    this.saveAs ({cPath: FileName, bPromptToOverwrite: true});

    The screen is located in a directory on a server (is not stored locally on the PC). The formula works very well, every time. If I click on save button, it allows to save the form with the new name in the path of the affected server. But if I open it from another PC on the network, nothing happens when I click on the save form"" button. But the reader allows me to record using file-> save as-> PDF on the menu?

    What I am doing wrong? Saves the form one way but not the other? Why Javascript does not work?

    Any help will be greatly appreciated.

    I'm surprised that you can get this code works in a button. It is not there because it featured a privileged context, as a function of confidence in a script to the folder level. Here is a tutorial that explains the details: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • Use the same image twice column in a report

    Hello

    I have a question which is, I can use the same column (column A in the example) picture twice in a report? first occurrence (column A) will show the thumbnail of the image and the second occurrence (column A) will display the image download link that opens the picture in a new window. Is this possible?

    Thank you

    Alexander

    -APEX-perf wrote:

    Yes, it is possible. However, if you intend to have two different images, then I would suggest you use javascript to link or download the blob.

    What's happening on Earth? Why JavaScript is necessary to download two different images? Even if he was in any real way, the OP is clear that the link posted of thumbnails and download involves the same image.

    To accomplish this task, you use decode or create a union query.

    No, all that should be necessary is the image column twice in the projection of the reference report query and apply a mask download format to a column and one mask of the image to the other. That the OP apparently did not this probably indicates that they are unnecessarily complicate things.

    For example:

    Select '' link_col

    table

    where allow_view = 'Y '.

    Union of all the

    Select '' link_col

    table

    where allow_view = ' don't

    or

    Select decode (allow_view, 'Y',

    '',

    ("") link_col

    table

    What is downloadImg? It is not a Standard API JavaScript APEX. Therefore, it is highly unlikely that this is of no use to the op.

  • Global Script Protection activation does not work when you add '&amp; '.

    Hi all

    To prevent crosssite scripting attacks I ticked the checkbox 'Enable Global Script Protection' in the admin CF. But it doesn't work, I mean not able to prevent the attacks by scripts.

    I followed steps

    1] I run the below URL.

    https://xyz.ABC.com/index.cfm?cardholder_number= & < script > alert (1) < /script >

    [2] fornt ultimately I got a javascript alert message as injected into the URL.

    But this alert message should not be that I activated the script protection in CF Admin. law?

    Now, I have removed '&' (https://xyz.abc.com/index.cfm?cardholder_number= < script > alert (1) < /script >) since the above URL then I wasn't getting the javascript alert message. Does that mean that protection of script will not work if we add '&' to the URL?

    I searched the neo - security.xml and its looks like below.

    < var name = "CrossSiteScriptPatterns" > < struct type = 'coldfusion.server.ConfigMap' > < var name = '& lt; \s*(object|embed|script|applet|meta)' > < String > & lt; InvalidTag < / string > < / var > < /st ruct > < / var >

    Can someone help me solve this problem.

    Abdul L Koyappayil says:

    But even when a remnant of doubt why alert message is coming when there is '&' in the URL?

    This happens with "&" because it is a symbol special "Javascript" whose purpose is to delimit - i.e. separated - value of the URL query string key-value pairs. For example, in the URL www.myDomain.com/index.cfm?a=1&b=2, the '&' defines the query string in the key-value pairs 2

    a = 1

    b = 2

    Consider the case where the URL is www.myDomain.com/index.cfm?cardholder_number=& then . The & will delimit the query string in

    cardholder_number =

    The presence of '&' implies there are 2 variables. However, there is that a single sign "=", which means there is only a pair of key / value. In addition, cardholder_number is a name for a URL variable, while is not. The browser then sends the query string next to your application

    cardholder_number = EMPTY_STRING &

    However, Coldfusion's scriptprotect feature will intervene and this to neutralize

    cardholder_number = alert (1) EMPTY_STRING &

    that is harmless. These will come into Coldfusion variables URLS

    cardholder_number = EMPTY_STRING

    EMPTY_STRING = EMPTY_STRING

    The special nature of '&' as delimiter is what drives the browser to run the script. Indeed, by default, browsers will run any Javascript you place in the query string. Running, for example

    http://www.myDomain.com/index.cfm?

    But why tell I if they ask me why javascript alert then.

    As you have seen, the

    This isn't the case here.

  • Why I can't javascript and flash to work in firefox 36.0.4?

    When I tried to log in to Adobe.com , I got an error saying that javascript must be enabled. The help topic, my javascript is activated. When I tried to listen to the new npr, he complained that I need the latest version of flash. I installed and it still does not work. Why can't just open firefox and make it work, as it does in Chrome? I do not have time or expertise necessary to reprogram firefox or my computer, could keep you it simple?

    Do you not see the Shockwave Flash plugin in ' Firefox/tools > Modules > Plugins '?

    You will normally see a Lego block icon to the to the left end of the address bar to activate the Flash plugin.

  • Why can't we simply have an option to turn Javascript on the sites again in the settings of Firefox 27? All of a sudden my Gmail attachments will not be opened. Gmail.

    All of a sudden my Gmail attachments have stopped opening, and I got the message: JavaScript must be enabled so that you can use Gmail in standard mode. However, it seems that JavaScript is disabled or not supported by your browser. To use standard view, enable JavaScript by changing your browser options, then try again.

    I found a Mozilla support thread where he explained that Javascript has been disabled for a while OK and next... Then, there was a complicated answer about how you could always turn it back on by typing in a code to config in the address bar. What? Or, you can download an extension to do this for you. Why?

    Please - if you really feel that users can not be trusted, and Javascript must be turned off, at least bring back the ability to turn Javascript on or off, on a basis by site in the options, without having to know the code. It's Gmail.

    Thank you.

    Thank you, guys. OK, thinking about has no sense. So I decided to solve all aspects. I think now that several attachments, sent to me by a client are corrupted to its end. Open attachments from several other people! So sorry to waste your time and very sad I lost many of my friends. I think this thread should be deleted. Thanks again.

  • Why Firefox execute Javascript in the reference of the window / tab context what target = "_blank" is used with a uri: data?

    I put a link to _blank target. With the href attribute set to one with a data uri tag script, and context of the previous window runs the javascript code. This happens with the help of Window.Open ()? This would allow an attacker with XSS to steal data localStorage and apparently has no way for a developer to isolate the execution context of the window. My question is, why a uri: data run script in the previous window (ie the window with the target = "_blank" attribute set) context even if it opens in a new tab? And how a developer supposed to isolate framework Javascript window, since _blank not do?

    JavaScript allows access between windows (for example, using the window.opener property in the window 'child').

    What is the attack, you want to protect you against?

  • My t.mobile javascript passed can not get my hotmail no more why?

    My t.mobile javascript passed can not get my hotmail no more why? never had this before am I blocked. How to make it back

    See questions of T-Mobile T-Mobile support.

  • JavaScript works with an alert, but does not work without it. Why?

    This happened to me before, but I was able to solve my problem. Now I'm not.

    Let me explain: I have a javascript function which I call when I double click on a line on a table:

    [code]

    function CallServ (evt) {}
    source var = evt.getSource ();

    AdfCustomEvent.queue (source, "call",
    {
    },

    (false);

    auxDblClick.call (this, source);
    }

    function auxDblClick (CBC) {}
    split var = src.toString () .split ('=');
    var idButton = split [1];
    var split2 = idButton.split(':');
    okButton = split2 var [0].concat(':');
    for (var i = 1; i & lt; (split2.length - 1); i ++) {}
    okButton = okButton.concat (split2 [i], ' :');)
    }
    okButton = okButton.concat ('dc_cb1');
    var comp = AdfPage.PAGE.findComponent (okButton);
    Alert (COMP);
    AdfActionEvent.queue (comp, comp.getPartialSubmit ());

    }

    [/ code]

    As you can see, my alert line is commented. If it is not commented, the "auxDblClick" feature works very well: it will print the model on the alert, and then it will perform the action of the dc_cb1 button. However, when I commented the alert function, it stops working.

    I have PartialTrigger set to "true" on my dc_cb1 button and the clientComponent is set to 'true '. I've also set to true ClientComponent on the table, but it does not work.

    So, why the function working with alert, but does not work with the alert off the coast? What Miss me?


    P.S: jdev version 11.1.2.4.0

    I found the solution:

    Before the "AdfActionEvent.queue (comp, comp.getPartialSubmit ());" line, I used the update function. Like this:

          var t = document.getElementById (okButton);
       
          t.Focus ();

    Now everything works fine

  • Why can't I reply to comments on reddit? When I hover over the link to the answer, I see javascript:void (0) in the lower left corner.

    Some features of reddit do not work, including the ability to upvote/downvote 'save' and 'response' buttons on the comments. I see the message "javascript:void (0) ' in the lower left corner on the links doesn't work, so I guess it's relevant. Operation links show various long URLs instead.

    I have already uninstalled firefox and reinstalled. I deleted the cache and cookies. I have reset to factory settings. I have updated Java. I've updated Windows. I restarted my computer several times through these processes as well. I used to have the Reddit improvement Suite extension, but it's the first thing I removed, and nothing has solved this problem for me.

    Java and Javascript are not the same thing

    • JavaScript is an object oriented scripting language that allows you to create dynamic HTML pages, allowing you to process the input data and manage data, usually in the browser.
    • Java is a programming language, a set of libraries and platform of virtual machine that allows you to create compiled programs that run on almost all platforms, without the distribution of the source code in its raw form or recompiling.

    You can enter the Mode safe by the following text:

    • Hold the SHIFT key while double-clicking the shortcut from the desktop Firefox (Firefox must be closed)

    Your "V - Ben" extension looks really suspicious. You must disable that. It is more likely adware.

    You can try these free programs to search for malicious software that work with your existing anti-virus software:

    Microsoft Security Essentials is a good permanent antivirus for Windows 7/Vista/XP, if you do not already have one.

  • Why can I not use Clipboard, copy and paste? instead of a picture, I get javascript

    I try to use the clip and paste on a document. I select an image and click on copy. It's not going in the clipart.all I get is the word javascript on the document.

    Are copy you the image you are viewing using a right click > copy the Image?

    You copy a Web site to another program (such as Word or paint), or in another page in Firefox? There may be special numbers, stick it in an online editor.

    Web sites can use scripts to change what happens when you right-click. Sometimes it is used for good, as custom menus, but it can also complicate copies images... If you want to try to disable (all) sites to do this, you can make some changes in the subject: configuration preferences editor. I'll look at the details if you are interested.

  • Why not visit a website? I said before that I connect that javascript is enabled.

    Hello
    The problem I have when you browse a Web site is as I have explained before that I connect I don't have javascript active. What happens exactly? that the browser is enabled and the other sites, I don't have these problems...

    Try disabling hardware acceleration in Firefox.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode safe or make changes.

Maybe you are looking for

  • Impossible to reset the password system on MBP

    I have a Macbook Pro bought in September, which had to go to the repair and the hard drive has been wiped. Now I have it back it does not recognize my password.  I managed to set up another account, but now it will not accept the password for it.  Wh

  • Satellite Pro L300 - wireless network adapter issues

    Hi guys Im having problems with the wireless connection, he sees its network but wont connect.issues with access point or adaptor.i tried everything and still no joy. im hoping some cheering helps Satellite Pro L300 Win 64

  • HP support assistant

    I am running HP Support Assistant on my new laptop Zbook and found that when driver and other updates are recommended and I go through the process of downloading them they do not install.  When I get back the updates, it says I need to download and i

  • Satellite C660 - no card wireless network in Device Manager

    I had a Satellite C660 for months with a preinstalled operating system.I've never had a problem with my wireless until recent days. I checked Device Manager and it seems that the wireless card is missing,I tried reinstalling the drivers but it stops

  • How to remove the called user account?

    Original title: user accounts I recently had to reinstall win 7.  After I did, I realized that I had spelled his name wrong.  I created a new account and transferred his previous info to his new account.  Unfortunately, I got it back and now when I g