Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2007, 07:54 AM
tal tal is offline
Authorized User
 
Join Date: Apr 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript Critical Section ?

Hi all,
Anyone know how to create a reliable critical section in JS ?

I am triggering many events at once (a must in my application) which should handle parts of the DOM. The lack of critical section causes a race condition, and a corruption of data.:(

I found only this on the subject:
http://www.onjava.com/pub/a/onjava/2...on.html?page=2
but it seems like i still have race conditions


 
Old April 11th, 2008, 04:39 PM
Registered User
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to markbrito
Default

I've implemented a critical section using focus on a div:

                   <div id="divKeyHandlerCriticalSection" class="keyHandlerCriticalSection" onkeypress="return false;" onfocus="handleProgamKeyPress(mainEvent.keyCode,ma inEvent.charCode);"></div>


mark brito
software architect
[email protected]





Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a CDATA section; add nodeset to CDATA section kssudhish XSLT 3 January 3rd, 2008 07:13 AM
critical problem s_a_ravi Classic ASP Basics 1 August 28th, 2005 06:13 PM
Critical Query ps_kaushik Access 1 March 15th, 2005 12:54 PM
Critical Problem in accessing ODBC From XP bveerendrakumar Pro VB Databases 2 June 12th, 2004 12:12 AM
Critical problem in Biztalk server Bala chandra Sekhar Biztalk 1 November 12th, 2003 05:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.