Class AuLoadScript


  • public class AuLoadScript
    extends AuResponse
    Loads a JavaScript file to client and execute it.
    Since:
    8.0.0
    Author:
    jumperchen
    • Constructor Detail

      • AuLoadScript

        public AuLoadScript​(java.lang.String url,
                            java.lang.String callback,
                            boolean once)
        Loads a JavaScript file to client and execute it.
        Parameters:
        url - the URL of the JavasScript file, it will be encoded with Encodes.encodeURL(jakarta.servlet.ServletContext, jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, String).
        callback - a callback script to execute when the JavaScript file has loaded.
        once - true means the url will be cached and executed only once.