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
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: JavaScript | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 4195 | Hits: 784

Similar Posts

  • Take Two: A jQuery WCF/ASMX ServiceProxy Client more
  • Demeter Transmogrifiers To The Rescue more
  • AJAX Logging with Exponential Backoff more
  • SharePoint Search-as-You-Type with jQuery more
  • A Lightweight Event Framework in JavaScript more
  • setInterval is (moderately) evil more
  • Escalating an AudioVideoCall to a conference in UCMA 2.0 more
  • Problem from ASP.NET calling Asynchronous operations more
  • Calling the SharePoint Web Services with jQuery more
  • Client Rendering Views with Spark and ASP.NET MVC 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