JavaScript and function.call and function.apply for async execution

Posted by: Rick Strahls WebLog, on 10 Aug 2006 | View original | Bookmarked: 0 time(s)

A while back I posted about a JavaScript issue that I’ve run into quite commonly with callbacks and in working around DOM elements that don’t want to update properly until UI control returns to them. In those scenarios it’s essential to delay execution of a function call. You can then use window.setTimeout() to delay the execution easily enough;   Where this gets tricky is if you need to pass parameters and the question is how do you pass parameters to these calls. I’ve...

Advertisement
Category: JavaScript | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 4086 | Hits: 729

Similar Posts

  • Take Two: A jQuery WCF/ASMX ServiceProxy Client more
  • A Lightweight Event Framework in JavaScript more
  • Calling UDFs from Entity Framework - Not what you might have expected more
  • AJAX Logging with Exponential Backoff more
  • Accessing Html Document Content in other Frames more
  • Really Simple Testing for JavaScript more
  • Twilight: A Silverlight Twitter Badge more
  • Escalating an AudioVideoCall to a conference in UCMA 2.0 more
  • setInterval is (moderately) evil more
  • How to set up a web project using the AjaxEngine Part 1b more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD