task

title

[previously]

  1. [PROBLEM]
  2. ] db is on sospep.com, qry files are on 
  3. ] site is on subdomain - hike.sospep.com
  4. ] getJSON doesnt work - cross origin access 
  5. ] SOLUTION - implemented CORS on server
    1. ] across domains, subdomains or even different ports on same domain 
  6. ] USE jsonp - 
    1. ] BM - EX https://learn.jquery.com/ajax/working-with-jsonp/ 
    2. ] EX - like yql, wraps json in script, with callback, 
    3. ] CONS - breaks down when using post to put data
  7. ] USE cors 
    1. ] BM - WHAT - http://www.html5rocks.com/en/tutorials/file/xhr2/
    2. ] BM - HOW/TO EX - http://encosia.com/using-cors-to-access-asp-net-services-across-domains/
    3. ] BM - Pros/Cons  - http://stackoverflow.com/questions/12296910/so-jsonp-or-cors
    4. ] BM - 
    5. ] doesnt work in IE prior to v10, some support in  9/8, content type = text only 
    6. ] http://stackoverflow.com/questions/7735955/cross-subdomain-ajax-request-denied-even-when-document-domain-is-set-correctly
  8. ] WORKAROUND
    1. ] copy qry files from domain 1 to this domain
  9. ] REF
    1. ] http://usejquery.com/blog/jquery-cross-domain-ajax-guide
    2. ] What is jsonp - http://stackoverflow.com/questions/2067472/what-is-jsonp-all-about?rq=1
    3. ] http://en.wikipedia.org/wiki/JSONP

[currently]

  1. ] change server config to allow requests ( 2 lines in web.config, specify url or use wildcard for any )
  2. ]  

[next]

  1. ]
Details Photos Edit more

Details

ID: 3507

NAME: prj-032-destinations-00n

DESCRIPTION: PRB - xdomain request, cors VS jsonp OR , USING cors (see caveats in BM art )

START DATE TIME: 2014-02-22 17:56:18

EST DURATION: 01:00:00

END DATE TIME: 2014-02-22 18:56:18

STATUS: To-Do

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities