Sure, I can share my code, but it's a lot of prototyping. Not very well formated and optimized code. It's just a attempt to see, if it possible to create Single Page Web apps in SMS. Do you have a place where I can share my code?
I use Forms to create the layout of my content. For the jQuery controls I just use TW3DIVHtmlElement, TW3Button, TW3Edit components, place it on the form, and use jquery to initialize that div element. E.g.:
function jQuery(aTagObj: TW3TagObj): Variant;
function jQueryExternal(v: Variant): Variant; external '$';
props := new JObject;
props['icons'] := new JObject;
props['icons']['primary'] := 'ui-icon-locked';
props['icons']['secondary'] := 'ui-icon-gear';
Then I create and load the content Form and use it in the main Form. For the runtime layout I use TLayout.
That is the big advantage using SMS, I can design my Form in a seperate window, and don't need to put all the code in the HTML file at once.