Posted by elgwiedo on July 23, 2009 at 12:15pm
Hi
I am new to Drupal/Javascript and would like to read the parameter (language selector: $language) into a flash that run on another site (server) within the same domain.
Anyone that can help me ?
Comments
It's pretty simple. On the
It's pretty simple.
On the Drupal side, have your module use drupal_add_js() with $type = "setting" to add the variables you need to the Drupal.settings JavaScript object. Also create a JavaScript function that will return the values you need from the object.
Then, inside your Flash app, use the ExternalInterface API to call the JavaScript function and get the values you need.
Easy peasy.
The Boise Drupal Guy!
Services
Services is another option with AMFPHP.