{
}
public void startExamplePanel()
{
ItsNatDocument itsNatDoc = getItsNatDocument();
itsNatDoc.setUserValue("parent_user_object",this);
Document doc = itsNatDoc.getDocument();
this.container = (HTMLElement)doc.getElementById("containerId");
// Initially container is an <object>
this.url = container.getAttribute("data");
ItsNatHttpSession session = (ItsNatHttpSession)itsNatDoc.getClientDocumentOwner().getItsNatSession();
if (session.getUserAgent().indexOf("MSIE") != -1)
{
// URL must be absolute when used with Savarese Ssrc
this.url = getRequestURLOfDocument() + this.url + "#p=n,c=n"; // For communication parent/child (p=parent, c=child, n=no, y=yes pending update)
// In Internet Explorer the <object> element is weird.
// If the element is already in tree and we need to change
// the URL and use auto-binding in ItsNat, the problems are bigger.
// The best technique is to remove the element, set up, and reinsert.
Element containerFoo = doc.createElement("object");
container.getParentNode().replaceChild(containerFoo,container);
container.setAttribute("data",url);
// Needed in Internet Explorer only:
container.setAttribute("src",url);
Element paramSrc = ItsNatTreeWalker.getFirstChildElement(container);
paramSrc.setAttribute("value",url); // <param name="src" value="?...">
// Reinserting again:
containerFoo.getParentNode().replaceChild(container,containerFoo);
}
this.circleSelected = (HTMLElement)doc.getElementById("circleSelectedId");
this.inputRadio = (HTMLInputElement)doc.getElementById("radioId");
itsNatDoc.addEventListener((EventTarget)inputRadio,"change",this,false,new NodePropertyTransport("value"));
this.updateButton = (HTMLInputElement)doc.getElementById("updateId");
((EventTarget)updateButton).addEventListener("click",this,false);
itsNatDoc.addUserEventListener(null,"update",this);
this.selectContainer = (HTMLSelectElement)doc.getElementById("selectContId");
itsNatDoc.addEventListener((EventTarget)selectContainer,"change",this,false,new NodePropertyTransport("selectedIndex"));
}