JSONP for cross-site Callbacks

Posted by: Rick Strahls WebLog, on 04 Jul 2007 | View original | 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
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: Ajax | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2868 | Hits: 124

Similar Posts

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