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

Posted by: Rick Strahls WebLog, on 10 Aug 2006 | View original

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
The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.

Similar Posts

  • Functional Programming via Anonymous Delegates and Script# more
  • Taking a look at Nikhil's Script# more
  • Handling the context menu with a custom Atlas Behavior more
  • Debugging AJAX Apps, Part 3 - IE memory leaks more
  • Use web services with multiple parameters in the AJAX Engine more
  • ASP.NET 2.0 Master Pages - But how do I run JavaScript onLoad more
  • Making callbacks (and Atlas) synchronous, or how to shoot yourself in the foot more
  • Why no synchronous call support in Atlas more
  • Just spent way too much time fixing VB code coloring on MSDN2 more
  • IJavaScriptObject in the new version more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | 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