From 261b5f6303d5ef8f9337f5d0a0f66f4a03ad5950 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Wed, 7 Nov 2012 03:34:31 -0500 Subject: [PATCH] more semantics --- package.json | 2 +- public/app.css | 3 +-- views/index.ejs | 21 ++++++++++++--------- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 9b0fc43..47efc02 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "jsonp", "homepage": "http://jsonp.jit.su", "description": "A simple JSONP proxy", - "version": "0.0.0-28", + "version": "0.0.0-29", "repository": { "type": "git", "url": "https://github.com/afeld/jsonp.git" diff --git a/public/app.css b/public/app.css index aafb2f0..658c4f9 100644 --- a/public/app.css +++ b/public/app.css @@ -47,7 +47,6 @@ code { .urlEntry input { padding: 0.5em; } -#footer { - padding: 1em; +footer { text-align: center; } diff --git a/views/index.ejs b/views/index.ejs index 095d387..88e4034 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -81,18 +81,21 @@
-

- Unfortunately, detection of response errors with JSONP is difficult, at best. jQuery's JSONP implementation won't call an error callback unless an explicit timeout is specified - see here for more info and options. -

-

- CORS, however, is just normal AJAX! There is also a security advantage, in that it's not possible for a malicious service (including this one) to run arbirtrary JavaScript on your page. -

+
+

CORS vs. JSONP

+

+ Unfortunately, detection of response errors with JSONP is difficult, at best. jQuery's JSONP implementation won't call an error callback unless an explicit timeout is specified (which the plugin takes care of) - see here for more info and options. +

+

+ CORS, however, is just normal AJAX! There is also a security advantage, in that it's not possible for a malicious service (including this one) to run arbirtrary JavaScript on your page. +

-
+
+
- +