JSON Spry Dataset Cross Domain

Hello all,
I'm trying to use Spry to load a JSON dataset. I can successfully load and display the dataset if copy the content of the JSON using a reader, such as: http://jsonformatter.curiousconcept.com/ and placing it in a file on my server.
However, if I try to pull directly from the source, it fails. I'm assuming this is because the JSON isn't located my server. Is there a way around this? I've been searching for a while now, and haven't found a solution. Thanks!

I'll paste the code here to show you what I'm attempting.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
   <head>
      <title>JSON Dataset Example</title>
      <script language="Javascript" type="text/javascript" src="includes/SpryData.js"></script>
      <script language="Javascript" type="text/javascript" src="includes/SpryJSONDataSet.js"></script>
      <script type="text/javascript">
         var ds1 = new Spry.Data.JSONDataSet("includes/testing.js", {path:"Posts"});
      </script>
   </head>
   <body>
      <div spry:region="ds1">
         <div spry:state="loading">Loading Data...</div>
         <div spry:state="error">Error Loading JSON Data</div>
        <div spry:state="ready" spry:repeat="ds1">
            <p>
            {title} <a href="{link}">Link</a><br/>
            </p>
         </div>
      </div>
   </body>
</html>
Above is the working version with the JSON data copied to a file on my server.
This is the actual link to the JSON that I'm wanting to use:
http://mcelroy.acquiretm.com/services/CareerCenterJSON.aspx?get=GetActiveJobs
But of course using this path causes it to fail.
Thanks again for the help!

Similar Messages

  • Pushing JSON from ICF Service to cross domain service URL

    Hi Experts,
    I have a scenario where i need to push JSON to cross domain service URL through Http response in SAP ICF service.
    I am using interface-IF_HTTP_EXTENSION to push json to other service.
    Regards,
    Sid

    Hi Daniel,
    Thanks for your faster reply.But it not addressing my issue so i have given sample code for your better understanding.
    METHOD if_http_extension~handle_request.
    * Variables
      DATA: l_verb      TYPE string,
            l_path_info TYPE string,
            l_resource  TYPE string,
            l_param_1   TYPE string,
            l_param_2   TYPE string.
    * Retrieving the request method (POST, GET, PUT, DELETE)
      l_verb = server->request->get_header_field( name = '~request_method' ).
    * Retrieving the parameters passed in the URL
      l_path_info = server->request->get_header_field( name = '~path_info' ).
    CLEAR: ls_contact,ls_response,l_rc.
    *     Retrieve form data
          ls_contact-email     = server->request->get_form_field('empno').
          ls_contact-firstname = server->request->get_form_field('name').
          ls_contact-lastname  = server->request->get_form_field('phone_no').
      CREATE OBJECT lo_json_serializer
        EXPORTING
          DATA = ls_contact. " Data to be serialized
    * Serialize ABAP data to JSON
      CALL METHOD lo_json_serializer->serialize.
    * Get JSON string
      CALL METHOD lo_json_serializer->get_data
        RECEIVING
          rval = lv_json.
    * Sets the content type of the response
      CALL METHOD server->response->set_header_field( name = 'Content-Type'
        value = 'application/json; charset=iso-8859-1' ).
    * Returns the results in JSON format
      CALL METHOD server->response->set_cdata( data = lvjson ).
    Note: I want to send the JSON (lv_json) to cross domain service URL(http:localhost:8080/new/data) using post method.
    ENDMETHOD.
    Regards,
    Sid

  • Cross-domain JSON dataset

    Hello, I'm working on an AIR application that needs to get a
    dataset from the internet. Is this possible as is?
    If not, I would like an example of how I would go about
    implementing cross-domain JSON datasets in Spry. I've been playing
    around with JSON injection requests, and that seems to return the
    data just fine, but how do I get the data into spry?
    My recieving function looks like this:
    callback( data )
    .if(data == null){
    ....alert('error');
    .}else{
    ....var imageTitle = data.Image.Title;
    etc etc..
    Thanks in advance

    I'll paste the code here to show you what I'm attempting.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
       <head>
          <title>JSON Dataset Example</title>
          <script language="Javascript" type="text/javascript" src="includes/SpryData.js"></script>
          <script language="Javascript" type="text/javascript" src="includes/SpryJSONDataSet.js"></script>
          <script type="text/javascript">
             var ds1 = new Spry.Data.JSONDataSet("includes/testing.js", {path:"Posts"});
          </script>
       </head>
       <body>
          <div spry:region="ds1">
             <div spry:state="loading">Loading Data...</div>
             <div spry:state="error">Error Loading JSON Data</div>
            <div spry:state="ready" spry:repeat="ds1">
                <p>
                {title} <a href="{link}">Link</a><br/>
                </p>
             </div>
          </div>
       </body>
    </html>
    Above is the working version with the JSON data copied to a file on my server.
    This is the actual link to the JSON that I'm wanting to use:
    http://mcelroy.acquiretm.com/services/CareerCenterJSON.aspx?get=GetActiveJobs
    But of course using this path causes it to fail.
    Thanks again for the help!

  • Spry JSONDataset and IE8 cross domain policy

    Hi,
    I'm using Spry JSON Dataset to retreive feeds of JSON data from Google Picasa and then show the results on our photo page. Works fine in Firefox but not in IE8. Is this a cross domain issue or is something else happening to stop the page rendering the spry regions in IE8? I know IE8 can be quite fussy at times.
    Debug tools in IE8 not the best (give me firebug any time)
    Page is here www.thehmc.co.uk/photonew.html
    Phil

    Hi,
    Now I've had time to play and got my head around what JSON-P really means - I've come up with a lightweight solution. Arnout thanks for your input as that sent me off on the right track.
    I noticed that Google can provide the JSON string wrapped in a callback function - see format below
    http://picasaweb.google.com/data/feed/api/user/thehmc.co.uk?kind=tag&alt=json-in-script&ca llback=testit&hl=en_GB
    Firstly I define my Spry JSONDataset as before but don't give it an url to load the data from
    var dsTags = new Spry.Data.JSONDataSet(null,{path:"feed.entry",  subPaths:["title","gphoto$weight"],sortOrderOnLoad: "ascending", sortOnLoad: "title.$t"} );
    So introducing the function below, which dynamically adds a script to the document body pointing top the url you pass it
    function makeRequest(sUrl) {
            var oScript = document.createElement("script");
            oScript.src = sUrl;
            oScript.async = true
            var done = false;
            oScript.onload = oScript.onreadystatechange = function()
                if ( !done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") )
                  done = true;
                   oScript.onload = oScript.onreadystatechange = null;
                   if ( oScript && oScript.parentNode )
                    oScript.parentNode.removeChild( oScript );
            document.body.appendChild(oScript);
    and then calling it, passing the url to the Google feed
    makeRequest("http://picasaweb.google.com/data/feed/api/user/thehmc.co.uk?kind=tag&alt=json-in-script&ca llback=testit&hl=en_GB");
    Function testit(root)
        dsTags.setDataFromDoc(root);
    Since the JSON string is already converted to a JSON object when it arrives at the callback function I had to change the JSONDataset function as below to not to try and parse if already an object
    Spry.Data.JSONDataSet.prototype.loadDataIntoDataSet = function(rawDataDoc)
        if (this.preparseFunc)
            rawDataDoc = this.preparseFunc(this, rawDataDoc);
        var jsonObj;
        if (typeof rawDataDoc == "object")
            jsonObj = rawDataDoc;
       else
            try    { jsonObj = this.useParser ? this.parseJSON(rawDataDoc) : eval("(" + rawDataDoc + ")"); }
            catch(e)
                Spry.Debug.reportError("Caught exception in JSONDataSet.loadDataIntoDataSet: " + e);
                jsonObj = {};
    This works a treat in IE8 and Firefox.
    I can see that your YQL version will be more flexible in terms of the number of feeds it'll be able to provide in JSON format but for now I just need this for Google Picasa.  Ideally I'd like a YQL version that retrieves the JSON string and then passes it to a user defined callback function to do with what it wants.
    I need to change my other JSON datasets but otherwise the page will be good to go soon enough.
    Cheers for your inputs
    Phil

  • Spry Dataset and XML problem

    I think this problem is a result of my lack of knowledge regarding XML but hope someone can help set me straight.  I am using Spry datasets in several web pages all accessing HTML pages with data in tables format.  These work great.
    I would like to use XML files for some other data on another site I am working on and while the Spry Dataset wizard allows me to call the XML file the information I get in the Row Element panel and the Data Preview panel appear to have nothing to do with the XML file I am accessing.  I am expecting a list of US states and instead get a heading called Types with Default and Override as the two indented lines beneath type.
    I have tried several other xml files that I have created or downloaded as samples from the web and always get the same headings.
    I am trying to insert into a plain vanilla HTML page.
    What am I doing wrong? I have attached the XML file I am using
    Hope someone can help.
    Cheers
    les

    You cannot do cross domain requests with Ajax, you will need to use a server side transporter / proxy to get the file for you.
    Heres a nice proxy for PHP:
    http://webreflection.blogspot.com/2009/05/php-full-proxy-work-in-progress.html

  • Load XML file from addon domain without cross-domain Policy file

    Hello.
    Assuming that there are two addon domains on the same server: /public_html/domain1.com       and      /public_html/domain2.com
    I try to load XML file from domain2.com into domain1.com without using cross-domain policy file (since it doesn’t work on xml files in my case).
    So the idea is to use php file in order to load XML and read it back to flash.
    I’ve found an interesting scripts that seems to do the job but unfortunately I can't get it to work. In my opinion there is somewhere problem with AS3 part. Please take a look.
    Here are the AS3/PHP scripts:
    AS3 (.swf in www.domain1.com):
    // location of the xml that you would like to load, full http address
    var xmlLoc:String = "http://www.domain2.com/MyFile.xml";
    // location of the php xml grabber file, in relation to the .swf
    var phpLoc:String = "loadXML.php";
    var xml:XML;
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest(phpLoc+"?location="+escape(xmlLoc) );
    loader.addEventListener(Event.COMPLETE, onXMLLoaded);
    loader.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorHandler);
    loader.load(request);
    function onIOErrorHandler(e:IOErrorEvent):void {
        trace("There was an error with the xml file "+e);
    function onXMLLoaded(e:Event):void {
        trace("the rss feed has been loaded");
        xml = new XML(loader.data);
        // set to string, since it is passed back from php as an object
        xml = XML(xml.toString());
        xml_txt.text = xml;
    PHP (loadXML.php in www.domain1.com):
    <?php
    header("Content-type: text/xml");
    $location = "";
    if(isset($_GET["location"])) {
        $location = $_GET["location"];
        $location = urldecode($location);
    $xml_string = getData($location);
    // pass the url encoded vars back to Flash
    echo $xml_string;
    //cURLs a URL and returns it
    function getData($query) {
        // create curl resource
        $ch = curl_init();
        // cURL url
        curl_setopt($ch, CURLOPT_URL, $query);
        //Set some necessary params for using CURL
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       //Execute the curl function, and decode the returned JSON data
        $result = curl_exec($ch);
        return $result;
        // close curl resource to free up system resources
        curl_close($ch);
    ?>

    I think you might be right about permissions/settings on the server for php. Unfortunately I'm not allowed to adjust them.
    So I wrote my own script - this time I used file path instead of http address of the XML file.  It works fine in my case.
    Here it is:
    XML file on domain2.com:
    <?xml version="1.0" encoding="UTF-8"?>
    <gallery>
        <image imagePath="galleries/gallery_1/images/1.jpg" thumbPath="galleries/gallery_1/thumbs/1.jpg" file_name= "1"> </image>
        <image imagePath="galleries/gallery_1/images/2.jpg" thumbPath="galleries/gallery_1/thumbs/2.jpg" file_name= "2"> </image>
        <image imagePath="galleries/gallery_1/images/3.jpg" thumbPath="galleries/gallery_1/thumbs/3.jpg" file_name= "3"> </image>
    </gallery>
    swf  on domain1.com:
    var imagesXML:XML;
    var variables:URLVariables = new URLVariables();
    var varURL:URLRequest = new URLRequest("MyPHPfile.php");
    varURL.method = URLRequestMethod.POST;
    varURL.data = variables;
    var MyLoader:URLLoader = new URLLoader;
    MyLoader.dataFormat =URLLoaderDataFormat.VARIABLES;
    MyLoader.addEventListener(Event.COMPLETE, XMLDone);
    MyLoader.load(varURL);
    function XMLDone(event:Event):void {
        var imported_XML:Object = event.target.data.imported_XML;
        imagesXML = new XML(imported_XML);
       MyTextfield_1.text = imagesXML;
       MyTextfield_2.text = imagesXML.image[0].attribute("thumbPath");  // sample reference to attribute "thumbPath" of the first element
    php file on domain1.com:
    <?php
    $xml_file = simplexml_load_file('../../domain2.com/galleries/gallery_1/MyXMLfile.xml');  // directory to XML file on the same server
    $imported_XML = $xml_file->asXML();
    print "imported_XML=" . $imported_XML;
    ?>
    Regards
    PS: for those who read the above discussion: the first and the second script work but you must test which one is better in your situation. The first script will also work between two domains on different servers. No cross domain policy file needed.

  • Using an .aspx file for a spry dataset

    I need to pull title data and associated links from this page (
    http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx) on to a separate site where the info is displayed as latest news.
    Whilst locally I can get this to work in I.E.  no data shows in Firefox, Chrome, Safari.
    If I upload the file and supports to the site I get nothing in any browser.
    Question. Can I use an .aspx file as a source for my Spry dataset?
    If so can some one show me an example?
    here's my code:
    <script type="text/javascript">
    var ds2 = new Spry.Data.XMLDataSet("http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx", "rdf:RDF/item");
    ds2.setColumnType("dc:date", "date");
    </script>
    <body>
    <div spry:region="ds2">
      <ul spry:repeatchildren="ds2">
        <li><a href="{ds2::link}">{title}</a></li>
      </ul>
    </div>
    </body

    The problem lies with the fact that XML data cannot normally be transferred from one domain to another, that is unless you are using YQL, see here http://developer.yahoo.com/yql/
    Our friend Arnaut Kazemier (V1) has written a nifty script that combines the features of Spry with that of YQL and can be found here https://github.com/3rd-Eden/Spry-YQL-DataSet. Using the YQLDataSet I have written a test page which can be found here http://pleysier.com.au/rss_example/
    However, I tried to connect to http://www.isurv.com/site/custom_scripts/rss_whats_new.aspx without the result
    Another interesting possibility can be found here http://www.linecraft.com/dreamweaver-get-external-feed/extension.php. I have not tried it yet.
    Gramps

  • Spry dataset querys

    After some time working with ASP and databases I've tryed to
    experiment with
    Spry as I though it would be more powerful and easy to work.
    After some
    tests I'm totally frustrated with it.
    I've seen that I can create a Spry dataset but it only allows
    to get
    information from an XML or HTML table. This makes information
    totally
    static. I know that I can build an ASP page that query a
    database and
    creates the XML. But I've not found any way to pass diferent
    parameters on
    the Spry dataset wizard to call this ASP.
    I though that I can use querys to create Spry datasets with
    searches and
    filter information. But now seems almost impossible to me.
    I'm missing
    something or is this Spry dataset useless?
    Regards,
    Angel

    Thanks Massimo!
    I've checked you example and I don't have much knowledge of
    Could Fusion as
    I'm used to ASP. But I see that it can be done. I will study
    it further.
    As I'm not a big coder I just want to create this using
    Dreamweaver server
    behaviours and Spry elements, but I''m stuck as it seems that
    the Spry
    dataset doesn't have an option to pass a parametter when
    calling the ASP
    page that querys the database.
    Basically I need to create a Spry dataset but tell the
    dataset to call a
    "query.asp page" with a parametter "id=x" so the dataset will
    call the ASP
    and generate the XML with the choosen "x" parameter. As it
    seems the dataset
    object is simply created when the page is open I don't know
    how to recall it
    with different parameters to change his contents.
    Regards,
    Angel
    >
    > You are indeed missing something :-))
    >
    > You can send either a GET or POST request to the .asp
    page that creates
    > the XML or JSON used to feed the dataset. The search
    parameters can be
    > either inside the querystring for GET or inside the POST
    request.
    >
    > I am sorry I don't have any ASP sample available, but
    here you can find a
    > small demo with insert/update/delete and search that
    uses CF and Spry:
    >
    http://www.massimocorner.com/spry/dynamic_spry.zip
    >
    > Hope it could help.
    >
    >
    > --
    > ----------------------------
    > Massimo Foti, web-programmer for hire
    > Tools for ColdFusion, JavaScript and Dreamweaver:
    >
    http://www.massimocorner.com
    > ----------------------------
    >
    >
    >
    >
    >
    >

  • What advantages do Spry datasets have over database datasets

    I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
    Can anyone explain why I should use it rather than using a database?
    On the face of it, Databases are much easier to construct and access, so why use an alternative system.
    From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
    Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
    There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
    Where are the advantages of this system, or are you all using it just for technologies sake?
    Or is it just an Adobe thing?

    whatalotofrubbish wrote:
    I have been studying the Spry Dataset and have found it terribly difficult to understand what use it is.
    Can anyone explain why I should use it rather than using a database?
    On the face of it, Databases are much easier to construct and access, so why use an alternative system.
    From what I understand, I have to create a basic database table on an HTML page before I can attampt to create a spry dataset.
    Or even use the dataset of a database to create a Spry dataset. I appreciate that there are other methods.
    There are lots of articles telling one how to use it, but none stating what it is for and why one should use it - at least, none that I can find.
    Where are the advantages of this system, or are you all using it just for technologies sake?
    Or is it just an Adobe thing?
    Hello,
    There are big difference between Datasets and databases. While I disagree with your point that Databases are easier to construct instead of Datasets. I understand your point. You should not see Datasets and databases as rivals of each others but more of a extension of each other. You use a database to store all your data and contents. When you execute a query on your database your will get a result set, or dataset. This usually the place when Spry could come in. You have data output from your database, now you just place it static on your page. Nothing wrong with that. But if you wish to create a interactive page it will usually require you to build allot of round trips to your server to present your data in different ways.
    With Spry these round trips can be handled on the client side. Once your users have received your data for the Spry Data Set there are allot things they can do with it, and usually faster than doing round trips to the server. For example your can sort and filter data sets, display information in a master and detail layout or even create different page states using the same data with out having to reload the page. This will create a more seamless experience for the user.
    For example our company is currently developing a search result page based on Spry Datasets. On the server side we have our database clusters that out the data for a search query. But this is usually 200+ result rows. In a traditional static website it would take a while for the user to digg through all results. Either by navigating to a next page, or filtering the dataset using forms.
    With Spry we now have our result set outputted as JSON (one of the formats Spry supports as data source for the Spry Data Set) we download it all to the client. And that is all they need. All sorting, filtering and pagination is done client side. So no more round trips to the server ( less server stress, and its faster ).
    I could go on about for hours but I hope this will give a general point of usages. If not take a look at the Spry demos. Which use Spry Data to create rich and interactive pages, and just imagine how you would have done that using traditional techniques and how long it would take you to build that.
    http://labs.adobe.com/technologies/spry/demos/

  • Cross Domain Ajax in newScale

    We have lots of form field validations in our newScale instance, for which we rely upon external applications.
    I am using http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js for making cross domain ajax.
    Now there are multiple issues that I am facing & need a better approach -
    1. This works great in IE 8 & 9 but pops up a security warning which is kind of annoying to the end user.
    2. Never works on Firefox.
    Has someone faced a similar issue or have a better solution w.r.t newScale environment, please share the details.
    Thanks,
    Abhishek

    Hi vmishr11,
    When you use SP.RequestExecutor, it will execute asynchronously to get data from host web. It will use like below:
    var executor = new SP.RequestExecutor(appweburl);
    executor.executeAsync(
    url:
    appweburl +
    "/_api/web/lists/getbytitle('Announcements')/items",
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: successHandler,
    error: errorHandler
    For SP.AppContextSite, it will execute in order to get data.
    Here is a detailed article for your reference:
    How to: Access SharePoint 2013 data from apps using the cross-domain library
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Cross Domain Call in SharePoint Hosted app.

    Hi, I am very new in SharePoint 2013 App dev and want to understand when actually Cross domain calls are required and how we can achieve it. 
    Getting host web site title from a sharepoint hosted app needs a cross domain call?
    My point of confusion is some places I have seen we have to load SPRequestExecutor for getting data from host web  but I am able to get it using changing the context to host web and then getting the title without using SPRequestExecutor:
     appContextSite = new SP.AppContextSite(ctx, spHostUrl);
       Nweb = appContextSite.get_web();
       //Nweb = ctx.get_web();
       ctx.load(Nweb); 
    What is the difference between the two( using SPRequestExecutor and not using) and what places we need to use it and where we can get data without it ?
    please help me to resolve this confusion.
    Thanks

    Hi vmishr11,
    When you use SP.RequestExecutor, it will execute asynchronously to get data from host web. It will use like below:
    var executor = new SP.RequestExecutor(appweburl);
    executor.executeAsync(
    url:
    appweburl +
    "/_api/web/lists/getbytitle('Announcements')/items",
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: successHandler,
    error: errorHandler
    For SP.AppContextSite, it will execute in order to get data.
    Here is a detailed article for your reference:
    How to: Access SharePoint 2013 data from apps using the cross-domain library
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Maximum size of upload file using Cross Domain Library

    Hi All 
    I need to know what is the maximum size of file that I can upload using Cross Domain Library from my Provider hosted app. I know that in msdn it is written that usign REST call we can upload upto 2GB but I have doubts if it is true with Cross domain library
    REST Calls. Please suggest.
     spExecutor.executeAsync(
                                   url: fileCollectionEndpoint,
                                   method: "POST",
                                   contentType: "application/json;odata=verbose",
                                   body: filedata,
                                   binaryStringRequestBody: true,
                                   headers: { "X-RequestDigest": $("#__REQUESTDIGEST").val(), "accept": "application/json;odata=verbose" ........
    And Can I pass ArrayBuffer directly or I need to pass only binary string ?
    Thanks in Advance 

    Hi,
    According to your post, my understanding is that you want to know the Maximum size of upload file using Cross Domain Library.
    Per my knowledge, you can upload files up to 2 GB with the REST API. 
    You can refer to:
    How to: Upload a file by using the REST API and jQuery
    In addition, you can pass ArrayBuffer directly. Please refer to:
    FileCollection methods
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Cross-domain service script

    I am working on a site which is utilizing some plug-ins from a another company. An item this other company is providing is a link to an XML file which is generated/updated daily. The owner of the site I am working on wants to have the information within this file visible on his home page in a side bar. If I save the XML file within his site and create the Spry data set, everything works beautifully, but if I create the data set linking to the XML file url, it doesn't work. Because this is information updated daily, I do not want to have to go into this site, save a new XML file and upload it daily. Within the Spry Framework Help in Dreamweaver, I found this:
    "The URL you decide to use (whether absolute or relative) is subject to the browser’s security model, which means that you can only load data from an XML source that is on the same server domain as the HTML page you’re linking from. You can avoid this limitation by providing a cross-domain service script. For more information, consult your server administrator."
    I contacted the other company about this cross-domain service script, but they didn't seem to have a solution. I have no idea where to begin or what to do to resolve this. Any suggestions are most appreciated.
    Thanks,
    A

    crossdomain script might be wrong term for your solution here. What 
    you basically need a script on your server, that does request to the 
    crossdomain server. This script will get / read / your required xml 
    file and just prints its contents with the correct header. These 
    scripts are also known as proxy scripts. For example a script like 
    this: http://www.phpfour.com/blog/2008/03/cross-domain-ajax-using-php/
    hopes this helps.

  • Problem with socket cross domain

    Hi guys,
    This is my cross domain file:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
    <!-- Policy file for xmlsocket://socks.example.com -->
    <cross-domain-policy>
       <site-control permitted-cross-domain-policies="*"/>
       <allow-access-from domain="localhost" to-ports="80" />
    </cross-domain-policy>
    I am placing it in my server.
    From flex i am running this:
    Security.loadPolicyFile("my server address");
    And yet I am getting this event:
    SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048"
    What can I do?

    Hello ILikeMyScreenNameNdCoffee,
    I had the same problem with XMLSocket and I used a policy server that runs
    on the remote server on port 843 and from Flex I load file before connecting
    the xmlsocket Security.loadPolicyFile("my server address:843"). If you want
    I can upload a version of my policy server or you can use the server policy
    from here
    http://www.broculos.net/tutorials/how_to_make_a_multi_client_flash_java_server/20080320/en
    Also you can read here more about file policy:
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html.
    On Thu, Aug 19, 2010 at 5:40 PM, ILikeMyScreenNameNdCoffee <[email protected]

  • Dw cs5.5 + Phonegap + spry dataset xml and images links broken

    Hi all,
    I'm building an app using DW CS5.5 and Phonegap.
    This is what I've done:
    created pages using the starter template (local)
    I created a php page that run a query on a mysql database and output an xml file
    I created a spry dataset using the php (see 2) file as data file
    It works locally and on-line on my website.
    But if I package an app using the android sdk from dw CS5.5 I have problems: all images are all broken. It seems that the link to image is not correct.
    In fact, all images are not using absolute path (http://www.mysite.com/images/...) but are set this way: /images/....
    So, my question is: have I to specify all images sources using absolute paths to make it work when packaged?
    TIA for any reply
    tony

    Hi Gramps,
    I just solved the problem with image paths (I made all src paths absolute).
    There is only one problem left: I opened another discussion: http://goo.gl/ysNDH
    But here the link you (correctly) need to trobleshoot the problem): http://www.camar.it/newsxml
    It should work on desktop browsers but it fails when I pack the app for android and install it on an android smartphone: I get "error loading page" when clicking on any details link (the button label is: DETTAGLI) on the news page.
    Tony

Maybe you are looking for

  • Want to know in which table is the sessionid for a user stored

    Hello, I am using Obiee 10g . I would like to create a report having users and the no of sessions they logged in. In obiee setting->admin ->manage sessions i can see the session id. Can i just know where are they stored. I have S_NQ_ACCT table in my

  • Download Sun Storage Common Array Manager

    Hallo, ich habe mir eine gebrauchte SUN StorageTEC 2500 besorgt. Leider war keine Software beiliegend und im Downloadbereich kann ich mich zwar anmelden, bekomme aber niergends wo die Software zum konfigurieren her.Kann mir jemand hier bitte helfen?

  • JSF 1.2 - Problem with passing page count to bean to create list

    I have this select option: <f:verbatim>Pages: </f:verbatim> <h:selectOneMenu id="selectPage" value="#{pageList.selectedPage}">          <f:selectItems value="#{pageList.selectPages}" /> </h:selectOneMenu>And the backing bean (called mybean2) for this

  • App Store is crashing out, what can I do?

    AppStore crashing 2 seconds after opening.  Anyone have any ideas on what to do?  Just wait and hope it works again sometime in the near future?

  • [SOLVED] My usb drives will not automount

    Hi! I've installed a basic Arch system using XFCE4. My USB disks and stick will not automount when I insert them. I have added myself to the usual groups. Manual mounting works however... What could be the issue? Last edited by jerik (2013-01-21 00:2