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

Posted by: Rick Strahls WebLog, on 10 Aug 2006 | View original | NEW 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: 3385 | Hits: 432

Similar Posts

  • Accessing Html Document Content in other Frames more
  • Really Simple Testing for JavaScript more
  • Take Two: A jQuery WCF/ASMX ServiceProxy Client more
  • A Lightweight Event Framework in JavaScript more
  • AJAX Logging with Exponential Backoff more
  • Escalating an AudioVideoCall to a conference in UCMA 2.0 more
  • Twilight: A Silverlight Twitter Badge more
  • setInterval is (moderately) evil more
  • AJAX With ASP.NET MVC and ComponentArt CallBack more
  • Accessing Html Document Content in other Frames 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