Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
SpeedScript : Compiling and running embedded SpeedScript Web objects : Compiling embedded SpeedScript Web objects
 

Compiling embedded SpeedScript Web objects

The AppBuilder provides an option to create a new Web object by loading an existing HTML file. If the HTML file contains embedded SpeedScript, AppBuilder then loads it for you to generate a SpeedScript include file or procedure file directly from it. If the HTML file is not an embedded SpeedScript file, but a standard static HTML file, the AppBuilder creates a separate HTML-mapping Web object for the loaded HTML file.
Unlike HTML-mapping Web objects, the AppBuilder always compiles and generates the r-code file for an embedded SpeedScript Web object. This is because all of the HTML for the generated Web page is contained in the Web object. Thus, the embedded SpeedScript file remains the entire source for the Web object it generates. Because you can modify HTML-mapping Web objects separately from the HTML files that they use, the AppBuilder must save the SpeedScript source for HTML-mapping Web objects as a starting point for changes. Thus, you might add an include file generated from embedded SpeedScript source to an existing HTML-mapping Web object.