Archive of UserLand's first discussion group, started October 5, 1998.
Re: Getting the URL of the Front IE Window w/ VBScript
Author: Jim Roepcke Posted: 12/21/1998; 1:01:11 PM Topic: Getting the URL of the Front IE Window w/ VBScript Msg #: 1593 (In response to 1592) Prev/Next: 1592 / 1594
Brent said:"Each thread gets its own instance -- or else it wouldn't be multi-threaded. Each instance of the Script Control can only execute one script at a time."
Good point, I hadn't thought of that. So you couldn't only have one ScriptControl, period, or you wouldn't be multi-threaded.
In http://discuss.userland.com/msgReader$1591 I recommend being able to create multiple namespaces. The default callScript verb could do what it does now, create a new namespace, run the script and then tear down the namespace. This way, the default would be that VBScripts were executed multi-threaded.
However, a developer could choose to share a namespace between multiple threads if that was adventageous.
Brent said:
"Sharing objects sounds nice, but I think in practice you'd get subtle, hard-to-track-down bugs due to collision and interference."
I'd suggest you leave implementation issues up to the developer, and not decide the developer couldn't handle them. Personally, I could.
Also, it's great to be able to store a value back into Frontier, but you can only store primitive types and arrays -- not objects.
Re: ASP stuff... you'd have to be able to have a persistent namespace so that you'd be able to implement the ASP Application Object, which exists for each ASP application, and isn't torn down after each page is executed.
I'm not sure if you're suggesting ASP-like tagging syntax for UserTalk or ASP application compatibility inside Frontier. If you're suggesting the latter, you'd need to implement the Application, Request, and Server objects, among others. This would be quite a formidable challenge.
There are responses to this message:
- Re: Getting the URL of the Front IE Window w/ VBScript, Brent Simmons, 12/21/1998; 1:24:57 PM
This page was archived on 6/13/2001; 4:46:53 PM.
© Copyright 1998-2001 UserLand Software, Inc.