Loading ...
Sorry, an error occurred while loading the content.

Re: [json] Re: problem to sending variable.

Expand Messages
  • mertsakarya@hotmail.com
    Other Domain is an issue, if you are working on internet. There is also a solution of creating a IFRAME. But I believe most of the members of this group
    Message 1 of 5 , Nov 30, 2006
    • 0 Attachment
      "Other Domain" is an issue, if you are working on internet.

      There is also a solution of creating a IFRAME. But I believe most of the members of this group doesn't favor this solution. Having a page that makes requests to other domain on server-side is a better solution.

      Mert


      ----- Original Message -----
      From: prashant shah
      To: json@yahoogroups.com
      Sent: Friday, December 01, 2006 6:24 AM
      Subject: Re: [json] Re: problem to sending variable.


      Thanks,
      but there i didn't find my solution. Actually i want to do some calculation in javascript file and send the value through variable. How can i set this variable to JSON value and send JSON data to other domain ?
      one more thing right now how many browsers support JSONRequest ?


      Douglas Crockford <douglas@...> wrote:
      > how to send javascript variables from one domain to another by JSON ?

      In the short term, you can use a technique such as this:
      http://www.xml.com/lpt/a/2005/12/21/json-dynamic-script-tag.html

      Be very careful though because it is terribly insecure. It should only
      be used if you fully trust the server.

      We need a less dangerous alternative. I suggest that we should have a
      new transport mechanism like JSONRequest
      http://json.org/JSONRequest.html. If you agree, write to your favorite
      browser maker, and tell them you want JSONRequest.

      ---------------------------------
      Access over 1 million songs - Yahoo! Music Unlimited.

      [Non-text portions of this message have been removed]





      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.