Frank W. Zammetti wrote:

On Tue, April 19, 2005 10:47 am, Erik Weber said:


I, with respect for the author, disagree with this entirely.

I am people, and this is not what I expect or desire at all. As a user,
I expect and desire 1) A fast download 2) my bookmarks to work/easy to
remember URLs 3) an organized and well-thought-out left rail 4) a go
home link at the top 5) a two-field registration 6) an encrypted log on
7) content I can read in a text-only browser. None of these require any
browser scripting at all.



You describe a good web SITE, and I couldn't agree with your criteria more! However, what you don't describe well is a web APPLICATION.

Web APPLICATIONS are where the scripting is, generally, needed, and where
the UI tends to be more complex.




Well, you are right, but that's also my point. I think it's comical that here we are in 2005, and Web application developers are just now able to provide users with a way to launch an asynchronous task via a GUI control. And it's still hackish as far as I can tell (embedding "engines" in hidden frames? -- come on . . .). Wouldn't you rather use a real API to a real windowing/graphics library, not to mention a real threading API?


final int threadPriority = MEDIUM_THREAD_PRIORITY;
final int iterationYieldFrequency = 100;
final int callbackFrequency = 25;
final ProgressListener listener = getGUIUpdater();
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
SwingWorker worker = new CustomSwingWorker("long time job", threadPriority) {
public Object construct() {
JobManager manager = new JobManager();
int statusCode = manager.launchLongJob("foo job", iterationYieldFrequency, callbackFrequency, listener);
return new Integer(statusCode);
}
public void finished() {
updateGUI(statusCode.intValue());
}
};
worker.start();
}
};


I guess I'm in the wrong forum.

:)

Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to