<%@ page language="java" contentType="text/html;charset=UTF-8"%> <%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>

This is a test of the ScriptBlock tag. The script block generated will be placed after the framework generated javaScript. This is necessary because the JavaScript here calls methods generated by the framework.

Text:

   

Post Value:
Method:

// JavaScript from the page. This should be placed after the // framework generated JavaScript var p = document.getElementById("javaOut"); var s = document.getElementById("scopeOneSpan"); var val = "Document Access
"; val = val + "JavaScript lookup real name is null: " + (document["bean"] == null) + "
"; val = val + "Form by name is null: " + (document[lookupNameByTagId("form",s)] == null) + "
"; val = val + "
ScopeId value
"; val = val + "ScopeId: " + getScopeId(s) + "
"; val = val + "
NetUI Access Methods
"; val = val + "TextBox 1 by id is null: " + (document.getElementById(lookupIdByTagId("t1",s)) == null) + "
"; val = val + "TextBox 1 by name is null: " + (document["bean"][lookupNameByTagId("t1",s)] == null) + "
"; p.innerHTML = val;