Re: Retrieve irev Value in Javascript?

2012-01-21 Thread Pierre Sahores
In case of JSON, we have to remember the swiss-made Mark Smith libJson 1.0.1b contribution. In memory... Thanks to him Pierre Le 21 janv. 2012 à 15:31, Peter W A Wood a écrit : > Scott > > I believe one way around the "same-origin" issue is to return a valid > JavaScript script (basically dat

Re: Retrieve irev Value in Javascript?

2012-01-21 Thread Peter W A Wood
Scott I believe one way around the "same-origin" issue is to return a valid JavaScript script (basically date in JSON format) and dynamically generated a script tag for it. This is known as JSON-P. Most of the JavaScript frameworks have JSON-P support. JQuery seems to be the most popular ( htt

Re: Retrieve irev Value in Javascript?

2012-01-21 Thread Pierre Sahores
Le 21 janv. 2012 à 09:50, Scott Rossi a écrit : > > I came across both of your scripts after posting my message, only to realize > they won't work for me because my page that is calling the irev script is > not located on the irev server. And apparently XMLHttpRequest doesn't work > across domai

Re: Retrieve irev Value in Javascript?

2012-01-21 Thread Scott Rossi
Thanks Pierre. I came across both of your scripts after posting my message, only to realize they won't work for me because my page that is calling the irev script is not located on the irev server. And apparently XMLHttpRequest doesn't work across domains. Unfortunately I have no control over th

Re: Retrieve irev Value in Javascript?

2012-01-21 Thread Pierre Sahores
Scott, One simple way to go is to add one of the following AJAX functions to your code to let it interact as needed with the irev part of your app : 1.- without using the JQuery framework : function sendPostData(url, data) { // sans jquery ok : deb // var xhr_object = null;

Retrieve irev Value in Javascript?

2012-01-20 Thread Scott Rossi
Does anyone have a simple example of using Javascript to pull a value from an irev script?  I've been able to get irev implementations to work using iframes and simple functions, but retrieving a value with Javascript has been elusive. Thanks & Regards, Scott Rossi Creative Director Tactile Med