Subj : About JS_SuspendRequest To : Jun Kim From : Digital Man Date : Tue Dec 07 2004 01:36 am Re: About JS_SuspendRequest By: Jun Kim to netscape.public.mozilla.jseng on Tue Dec 07 2004 07:47 am > hi. ama-grammer(amatuer programmer, 'cuz I sure am not a PRO) again. :) > > I'm trying to implement alert() function. > But the platform does not provide modal dialog. (in mobile platform) > So I can't simply create a dialog and do "doModal()". > since it's modaless, it returns right after creating and opening a dialog, > so I can't seem to hold the script running. > I need someway to halt the script, and continue later on from where it > stopped. Your alert() function can just poll the message box until it's closed. > I found an API JS_SuspendRequest. > Is this the one that I need? No. > If it is, how can I compile the source with JS_THREADSAFE defined? > I can't get it to complie even in Windows MSVC with it defined. > > I ask too many questions... sorry. :) In order to build with JS_THREADSAFE, you need the NSPR (Netscape Portable Runtime) library and header files. http://www.mozilla.org/projects/nspr/ digital man Snapple "Real Fact" #41: Shrimp can only swim backward. .