Not possible to activate the scripts on the Web server

Hello

I would like to create a page .html for Web with a bit of scripting ESP included - Services because now I understand just this:

<% for (i=0; i<3; i++) {
  ...some text...
 } %>

According to this document NOR, I first need to enable scripting:

To use the script with a Web service, you must enable the feature on the Web of LabVIEW server. In LabVIEW, select the script on the Web Server: Configuration page in the dialog box Options to enable the use of scripts on the Web server.

I activated the Web server and it works OK. But there is nothing called "Scripting" in the configuration page - and the script is executed (the code is just printed in the form of simple text).

Anyone know how to activate the ESP script?

Version: LV 2012.

Best regards, Jan

Hi Jan,

In fact, you use the ESP file instead of a static HTML file.  For example, if we had the static html file:

Hello world

This file can be located at something like /MyWebService/HelloWorld.html.

If I then do something like have a page to say "Hello, Jan" or "Hello, Mark" I could use ESP.  In this case, your code might look like:

<>

var xname = form ['name'];

%>

Hello, @@xname

The URL of such a web method is perhaps something like jan/MyWebService/Hellovar/Jan where Jan string literal passed to the terminal of a web method that can resemble

In this example, the string "Jan" is passed to the terminal of the value of the VI.  What implementation of the Web method in the spec to build his signature might look like in /Hellovar /: value.

So, back to your original question.  You embed not ESP breast and the HTML document.  Instead, you embed HTML inside a document of ESP and the rendering of the document in HTML format when accessing the URL of the Web method.  While the paper you mentioned earlier has an example project in that you can use as a reference

Tags: NI Products

Similar Questions

Maybe you are looking for

  • Code Windows Update WindowsUpdate_80072EFE error 80070643, 80204402 C and others

    original title: technical problems independent of me - please help. My laptop came with Windows Vista installed. Lately, I see such error messages that - resource not found file!  When I open the control panel. What is more, some folders appear diffe

  • Passport for blackBerry BLACKBERRY PROTECTION PLAN

    Hi, I tried to buy a protection plan for my new passport, but I can't, theres just no way I can put in my zip code cause its keep saying that the postal code isn't valind for the State. I live in Puerto Rico, my zip code is 00693 and I can't even put

  • I can't boot on my Cisco ASA 5505

    Hello; I am facing a problem with my cisco ASA 5505 firewall. When I connect my cable to console the firewall to start setting firewall load and stop until the copyright. ICN can't access to the firewall to view the configuration. I start also with R

  • How can I config my xml doc to allow google ajax feed loader

    How can I configure my config.xml file to allow my app makeup and get back the google ajax request feed. My code below does not work:

  • How to make a backup of Windows 8?

    I have upgraded from Windows 7 to Windows 8.  Win 7 was easy to make a backup to an external hard drive.  Now that I have to win 8, I can't find how to do a backup on my external hard drive.  Solution please?  Thanks in advance. E-mail address is rem