JSONP for cross-site Callbacks

Posted by: Rick Strahls WebLog, on 04 Jul 2007 | View original | NEW Bookmarked: 0 time(s)

Here's the JSONP code that uses the code I mentioned in my last post. JSONP is an unofficial protocol that allows making cross domain calls by generating script tags in the current document and expecting a result back to calls a specified callback handler. The client JavaScript code to make a JSONP call looks like this:function jsonp(url,callback,query) { if (url.indexOf("?") > -1) url += "&jsonp=" else url += "?jsonp=" url += callback["name"] + "&"; ...

Advertisement
Category: Ajax | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1521 | Hits: 108

Similar Posts

  • Script for Bulk Import of Active Directory Subnets more
  • Script for Bulk Import of Active Directory Site Links more
  • How to Make crossdomain.xml Work with SharePoint more
  • IIS Search Engine Optimization Toolkit more
  • CSRF Attacks and Web Forms more
  • Announcing: IIS Search Engine Optimization Toolkit Beta 1 more
  • Announcing the IIS SEO Toolkit (beta) more
  • Why <i>not</i> link to Wikipedia? more
  • Silverlight Crossdomain Access Workarounds more
  • Search Engine Optimization Tweaks over the long weekend 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