Current location: Hot Scripts Forums » General Web Coding » JavaScript » JavaScript concurrency issue


JavaScript concurrency issue

Reply
  #1 (permalink)  
Old 12-09-03, 02:12 PM
dugfresh dugfresh is offline
New Member
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow JavaScript concurrency issue

I have a form where each entry is a user login request, having several fields. The user can add, copy and delete "rows" from this form. To help the user keep track of what they are doing, each login request entry is alternatively colored (light gray for odd rows, dark gray for even rows) coded and labeled "new user 1... new user 2...etc." So I defined JScript functions AddRow, CopyRow, DeleteRow, updateColors, updateRowIDs, and updateCounter. I seem to be having timing issues. The updateCounter function is fired on onKeyup and onKeyDown for the textarea field for each user request. It keeps track of how many characters remaining there are in the field. There seems to be a conflict on this object, because of different functions are trying to repaint the object as well as update the text counter. The error I get is 'counter is null or not an object.' I get this error sporatitcally which leads me to believe it's a timing issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 12:58 PM
Javascript not centered properly in a div Arowana HTML/XHTML/XML 3 11-15-03 07:54 AM
php and javascript together? gamextremer2003 PHP 5 11-06-03 03:18 PM
Forcing a JavaScript to abort HiMyNameIs JavaScript 3 09-18-03 11:23 AM
Should JavaScript be a subcat of Java? evo4ever Everything Java 9 08-21-03 10:59 PM


All times are GMT -5. The time now is 01:51 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.