Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Cross-Domain Scripting

Cross-Domain Scripting

Scheduled Pinned Locked Moved Web Development
javascriptalgorithmstoolshelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    il_manti
    wrote on last edited by
    #1

    Guys, We've been wrecking our brains over this and nothing's working! After searching every page on the net and trying all solutions we decided to post here so maybe you can come up with an answer... So, we've got multiple clients each of them having their own domains. We want to give them one line of script which will in turn render a box with details in their website. These details are stored on our own domain. The problem is, when using an iFrame is not flexible enough so we went for an XMLHTTPREQUEST in Javascript to render the result from a URI into a div on their own website. Problem is we're getting permission issues with domains (since the URI of the data that will be included is not the same as the URI of the page no which it will be included). Does anybody have any idea or solution on how this should be solved? Thank you very much for your time...

    In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

    S 1 Reply Last reply
    0
    • I il_manti

      Guys, We've been wrecking our brains over this and nothing's working! After searching every page on the net and trying all solutions we decided to post here so maybe you can come up with an answer... So, we've got multiple clients each of them having their own domains. We want to give them one line of script which will in turn render a box with details in their website. These details are stored on our own domain. The problem is, when using an iFrame is not flexible enough so we went for an XMLHTTPREQUEST in Javascript to render the result from a URI into a div on their own website. Problem is we're getting permission issues with domains (since the URI of the data that will be included is not the same as the URI of the page no which it will be included). Does anybody have any idea or solution on how this should be solved? Thank you very much for your time...

      In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      Try JSONP[^]. Script requests, unlike XMLHttp, can be made across domains.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups