--- CLIFFORD ILKAY <[EMAIL PROTECTED]> wrote: > > I am used to an event driven style of programming... > How do you handle this type of situation in WebWare?
In a situation such as this, I use DHTML (document.createElement) to instantiate a new SCRIPT element whose SRC is pointed to a GET-parameterized Webware servlet. The servlet responds as appopriate to the GET parameters with some generated JavaScript code (content-type text/javascript), which the browser runs as soon as it's loaded. This code typically updates the user interface in some way via DHTML. It works splendidly, at least for my purposes. --- function createScriptWithSource(src) { var scriptEl = document.createElement('script'); scriptEl.setAttribute('language', 'javascript'); scriptEl.src = src; var head = document.getElementsByTagName('head').item(0); head.appendChild(scriptEl); } --- function autodetectUSStateAbbrevFromLongName(el, addrPrefix) { var src = 'client_lookup_state.py?' + 'state=' + escape(el.value) + '&target_state=' + addrPrefix + '_address_state' ; createScriptWithSource(src); } --- __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss