Using JSONscriptRequest for cross domain calls?

Hi,
Looking through the REST SDK I see mention of the "JSONscriptRequest class" but I don't find much else about it.
Is this a jsonp callback and how can it be used?
Thanks

Hi Willem,
I've never heard of this "JSONscriptRequest class", but as far as I know, the REST SDK doesn't support JSONP callbacks or JSONP in general.
For cross domain request, you'll find CORS settings on your WebApplicationContainer Server settings page in the CMC, but I'm not sure how / if they work.
Hope that helps.
Jan

Similar Messages

  • How to make cross domain calls using loadurl

    I you all. I ran into a little situation in which i need to make a cross domain call using loadurl. Has any one implemented this as yet. using loadurl. Thank you.

    Have a look here http://www.coldfusionjedi.com/index.cfm/2008/3/7/CrossDomain-AJAX-calls-using-ColdFusion
    Gramps

  • 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

  • Using XCode for Cross Developing (Target would be Linux x86)

    I'm developing RealTime Software - running as RT-Kernel modules - written in C for Linux x86 (RTlinux on Kernel Version >2.4.32 or RTAI on Kernel Version 2.6.x).
    At the moment I develop using ssh and vi on the target machine. This is NOT very comfortable.
    After searching your forum I found:
    http://discussions.apple.com/thread.jspa?messageID=2322911&#2322911
    Fine Links to the XCode Documentation. But reading it I just found how to cross develop to MacOS X targets (x86 and PPC).
    Can you please tell me, if it is possible to use XCode for cross development with target machines using Linux on x86?
    Thank you
    Johann

    In theory, yes. In practice, no. You would need a version of GCC that supports targeting that architecture and all the header and library files for that architecture. It is highly unlikely to be worth the time and effort to try it and it may not even work even if you do everything right. Plus, you would still have to run and test on the target platform.
    You'll just have to make life the best that you can on Linux. I suggest downloading the NEdit editor for X Windows. It is as good as any Mac editor and very easy to script for automation.

  • CQ5.5 EXTJS Support for cross domain ajax call

    I do not see any api in cq5.5 that supports cross domain ajax call using JSONP or callback.

    You may get an answer here but probably better to ask in a Mozillazine forum such as
    *http://www.mozilla.org/en-US/firefox/22.0/system-requirements/
    If this really is a failing of Firefox then maybe one of the Development mailing lists or fora would be the place to discus this
    * http://www.mozilla.org/about/forums/#general-development
    Ultimately a bug could be filed for an enhancement request, but it is possibly better to discuss the subject first rather than file a bug that may not stand any chance of being actioned.

  • AICC sendAndLoad for cross-domain (getParam)

    Hello all.
    First off thank you to Andrew Chemey for his seemingly
    under-valued expertise in providing the AICC compliant code that
    has worked perfectly for communication between now 2 LMS' and all
    our Flash content.
    However, a problem has surfaced in that we are switching to a
    new SaaS LMS. Because of this, communication now goes between our
    internal server to the externally hosted LMS (a cross-domain
    issue). Our content still does magnificently when it comes to
    completing users in content but the problem is that we can no
    longer get the data into our content that comes from the LMS.
    We currently do a sendAndLoad to the AICC_URL while passing
    the AICC_SID and getParam. But this does not work across domains. I
    know about the crossdomain.xml file and the LMS vendor claims that
    it is in place, but that does not seem to do the trick. We really
    like to get the STUDENT_NAME and especially the Location data for
    our bookmarking into our content, but we can't figure out how to do
    this now.
    I've searched all over the web and the aicc.org website many
    a time but have yet to find a solution and my company does not have
    the money to send me to DevLearn 2007. Can someone please help?
    Again the task is how do you get information to pass from the LMS
    to Flash content across domains.
    Thanks in advance!
    Most appreciatively,
    André

    Is it possible to use the server side proxy option found
    through the following link to import data from an LMS to Flash
    content across domains? If so then can someone share what their
    proxy.asp code and sendAndLoad code looks like?
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16520&sliceId=2#proxy
    Most appreciatively,
    André

  • Cross domain call to Azure ASPX from SharePoint Online Site Collection

    We have a ASPX page hosted on Azure that is creating a Zip of documents from a SharePoint Document Library against IDs that we are passing it through query string. Next we are flushing this ZIP as a download response to the client
    browser so that user can save it somewhere on his machine. This is working as expected.
    Next we are calling this ASPX from our SharePoint Online Site Collection. Sometime it takes time to create the ZIP & return to the client and therefore we want to implement a Progress Image showing something is happening at the server. We
    have used window.open() method to call this ASPX and at the same time we are showing up the Progress Image. But due to same origin policy we are not able to track any window specific events in Internet Explorer to close the Progress Image when the response
    returns to the client.
    Please suggest a suitable workaround for this scenario. Any help would be greatly appreciated.
    Thank you in advance!
    Jitendra

    Hi Jitendra,
    According to your description, my understanding is that you want to call a aspx page hosted on Azure from SharePoint Online site and implement a progress image to show the progress happening at the server.
    In your scenario, if you want to call the aspx page on Azure to create zip and return to the client, the better way is createing a web service and call it in clinet side. You can add the progress status in the custom code and then judge the status to
    show correponding progress image.
    Here is a detailed article for your reference:
    How to Create and Deploy a Cloud Service
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Can't use keypad for IVR during call

    When I am in a call talking with an IVR system (the one that ask you to type numbers to select options), but keypad does not send these numbers out.
    Instead it show them on the screen to allow me to use them for storing it as a new phone number.
    How can I "tell" it to send them on the call?
    I'm using X2 (with Hebrew S40 OS)

    thanks, it worked, but the interface is very complicated, as I need to pass via few IVR selections, it is complex to go to this option every time.
    Is there an option to make this the deafult way the phone will work? So every time I'm on a phone call and click a number it will be sent to the IVR system without the need to go to the DTMF menu

  • There appears to be a persistent connection limit of 2 for cross domain requests

    I am building a service that allows anybody to add real-time push updates to their website or web application. To do this I'm using the Access-Control-Allow-Origin header response from a cloud hosted server.
    When establishing a connection we create one persistently connected HTTP connection and use a second connection to send requests (subscriptions/commands).
    The problem I'm seeing looks very similar to the old 2 socket to a server connection limit (related to about:config "network.http.max-persistent-connections-per-server").
    Is there a limitation on the number of persistent cross domain connections that can be established from a single Firefox process? If so, where is the configuration options to override this?
    This problem can be easily duplicated by going to the following page in two tabs within the same Firefox process:
    http://kwwika.com/Standalone/Demos/WorldCup2010/
    You will notice that one page connects and starts to receive updates. The second will not connect until you close the first tab/page.
    I'd like to be able to provide feedback to the users of Kwwika about this problem so any information you can provide me with would be very much appreciated.
    == URL of affected sites ==
    http://kwwika.com/Standalone/Demos/WorldCup2010/
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4

    [bump]

  • Can I use touchID for accepting a call?

    In security mode I can only swipe to accept call , sadly can it be a good idea to use TouchID for it?

    Edeke wrote:
    When the iPhone is locked to open you use the 4 digit code or your fingerprint identification to open you're iPhone, this is for security so I call it security/safety mode.
    I know the home button when the iPhone is locked is pretty much useless.
    Therefore my question; can it be a good idea to accept a phone call using TouchID? Maybe with a toggle on/off inside settings.
    Everybody has access to an unattended mobile phone to accept a call even when locked not to your email/messages conversations.
    Not logic in my view.
    TouchID is enough to prevent unattended calls from your trousers or bag, before TouchID we had the push, swipe and a 4 digit code to prevent it.
    So, you want to make it so that only your fingerprint can be used to answer an incoming call to your iPhone, when it is locked?
    If that's correct, let me explain why I think it's a bad idea and it will never be implemented.
    Hypothetical situation:  You accidentally leave your phone at the mall.  An honest person finds it, then turns it in to the security office.
    You try to call your lost iPhone from another phone, hoping someone will answer it and tell you where your phone is.  But even though the security officer has the phone, he cannot answer the incoming call, because you've locked it to just your finger print.
    That's just one of a dozen situations where this feature is a bad idea.  But feel free to submit your input to Apple at www.apple.com/feedfback.

  • Groupware solution for cross domains

    Hello all,
    Does anyone know if groupware solution is supported for  if  groupware servers ( in our case lotus Domino Servers ) are located in 2 different domains.
    Our landscape is like this..
    1 connector , default proxy instance , CRM Server and 1 Lotus Server on 1 domain and the 2nd Lotus server is on a different domain...Directory assistance is setup////
    Wanted to know if Groupwaer solution is supported for such a landscape?
    Thanks.
    Regards,
    Pratima

    I have come across information where groupware has worked across different domains.
    If anyone has worked on cross domains...it would be great if you can share what u have done..
    In our case, if the groupware server is in a different domain, userlist is not getting generated with an error "user does not exist in the groupware domain" even though it does exist ...works fine for users in the same domain as the connector and CRM.
    In the transaction SCOT, we have configured the the MailHost = 'abcsmtp' and the MailPort = '25'...
    Regards,
    Pratima
    Edited by: pratima purigali on Apr 14, 2010 8:31 AM

  • Using a For loop to call one array element at a time

    I have been working on a VI that reads a GPS unit, parses the data, outputs what I need, compares the actual GPS location to the desired location, determines a desired heading and moves on from there.  My question pertains to the number of desired locations I can input right now.  I need to be able to input a predtermined number of locations (not just the one that I can input right now).  I was told that it is possible to use a For Loop with an array and have the first set of Lat and Long values run through the VI and when everything is complete that the next set of values will be chosen.  Does this mean that I need to put the entire VI inside a For Loop and have the array update as soon as the VI has completed its first mission?  I understand the concept of how this work from other programming languages but I'm not sure how to implement the solution in LabVIEW.  Any help would be appreciated.
    Adam

    adamoutlaw wrote:
    Here is a portion of the VI.  I need two separate arrays, one for Latitude and one for Longitude, of the same size.
    I don't see any arrays in your code. Do you want to generate arrays form individual data points or do you want to process arrays, one element at a time? Both can take advantage of autoindexing. Here's a simple picture.
    Your VI contains a weird mix of DBL and EXT precision. Most likely all you need is DBL. Keep your representations consistent!
    Message Edited by altenbach on 08-02-2007 07:14 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Indexing.png ‏4 KB

  • Flex IO error# 2032 when using IE7 for parallel https calls across two servers

    Hi,
    Weeks back I faced a wierd issue in the behaviour of flashplayer running on IE7 which is invoking parallel https calls. I have two SSL enabled servers one is listening on port 443 and the other is listening on port 8443 but both running in the same domain. I developed a flex client (using httpservice class) which sends parallel https requests to these two servers. When the number of parallel requests increases say more than 5 requests to each server, the fault handler was encountered with the error message:
    [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://servlet"]. URL: https://servlet"]
    I used some http tracer tools to check if the request jumps out of the browser but that didnt happen. I am 100% sure that I am using the correct url. I was totally helpless . This worked without any issues in IE8 or Chrome or Firefox. This made me think about increasing the number of concurrent connections for IE7 by modifying the windows registry. But still no difference in the behaviour.
    After breaking my head for a long days, I got one solution which would work. This issue is happening only if we are sending https requests to different ports in the same domain. So rather than moving one among the two servers to a new domain, I got a new DNS name for the same destination. So presently I got two DNS names pointing to the same machine in which both the servers are mounted.
    After this it really worked cool!!! Now that I am using a separate DNS name for the server listening on port 8443 and the old DNS name is used to hit the server listening on 443. And I am happy that its working fine without any issues .
    But can anyone tell me if this is really an IE7 issue or do we have anyother solution to fix this.
    Please share ur thoughts..

    Hi,
    I am building a mobile employee directory and for that I am using Flash Builder 4.6/AIR 3.1.0. I am using RESTful web service to get XML results and to display on my mobile application. I am getting the same below error when accessing the webservice from mobile app (Android - Galaxy Tab 7 inch).
    Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error # 2032"] URL: http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co">http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co ntext-root/jersey/restlabhttp://adfdevp.alshaya.com:7013/RESTEmployeeDetails-http://adfdevp.als haya.com:7013/RESTEmployeeDetails-EmployeeDetails-co ntext-root/jersey/restlabEmployeeDetails-context-root/jersey/restlab
    The same code is working in Flash Builder 4.6. I have checked Network Monitor to "Disabled" before deploying to mobile. What am i doing wrong here? I am pasting my code below-
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:dao="dao.*"
       xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
       <![CDATA[
        import mx.collections.ArrayCollection;
        import mx.collections.IList;
        import mx.collections.XMLListCollection;
        import mx.events.FlexEvent;
        import mx.rpc.events.FaultEvent;
        import mx.rpc.events.ResultEvent;
        import mx.rpc.xml.SimpleXMLDecoder;
        import mx.utils.ArrayUtil;
        import valueObjects.EmployeeDetail;
        [Bindable]
        private var myXml:XML;
        [Bindable]
        public var resultCollection:IList;
        public function handleXml(event:ResultEvent):void
         var xmlListCollection:XMLListCollection = new XMLListCollection(event.result.children());
         var xmlListCollectionValues:XMLListCollection = new XMLListCollection(event.result.emp.children());
         var resultArray:Array = xmlListCollection.toArray();
         var resultArrayValues:Array = xmlListCollectionValues.toArray();
         var objEmployeeDetails:EmployeeDetail;
         var resultCollection:ArrayCollection = new ArrayCollection();
         var j:int = 0;
         for(var i:int=0;i<resultArray.length;i++){
          objEmployeeDetails = new EmployeeDetail();
          objEmployeeDetails.brand = resultArrayValues[j];
          objEmployeeDetails.division = resultArrayValues[j+1];
          objEmployeeDetails.email = resultArrayValues[j+2];
          objEmployeeDetails.employee_name = resultArrayValues[j+3];
          objEmployeeDetails.employee_number = resultArrayValues[j+4];
          objEmployeeDetails.grade = resultArrayValues[j+5];
          objEmployeeDetails.mobile = resultArrayValues[j+6];
          objEmployeeDetails.position = resultArrayValues[j+7];
          j = j + 8;
          resultCollection.addItem(objEmployeeDetails);
         list.dataProvider = resultCollection;
         //return resultCollection;
        public function handleFault(event:FaultEvent):void
         //Alert.show(event.fault.faultDetail, "Error");             
        protected function sesrchEmployee():void
         xmlRpc.send();
       ]]>
    </fx:Script>
    <fx:Declarations>
       <dao:EmployeeDAO id="srv"/>
       <mx:HTTPService id="xmlRpc"
           url="http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co ntext-root/jersey/restlab"
           result="handleXml(event)"
           fault="handleFault(event)"
           resultFormat="e4x" showBusyCursor="true">
        <mx:request xmlns="">
         <data>{key.text}</data>
         <data>{key1.text}</data>
        </mx:request>
       </mx:HTTPService>
    </fx:Declarations>
    <s:navigationContent/>
    <s:titleContent>
       <s:VGroup width="100%">
       <s:HGroup width="100%">
        <s:Label top="40" paddingTop="10" paddingRight="13" height="29" text="Employee Name:"/>
        <s:TextInput id="key" width="559"/>
       </s:HGroup>
       <s:HGroup width="100%">
        <s:Label height="30" paddingTop="10" text="Employee Number:"/>
        <s:TextInput id="key1" width="100%"/>
       </s:HGroup>
       </s:VGroup>
    </s:titleContent>
    <s:actionContent>
       <s:Button icon="@Embed('assets/search.png')" click="sesrchEmployee()"/> 
    </s:actionContent>
    <s:List id="list" top="0" bottom="0" left="0" right="0" 
        change="navigator.pushView(EmployeeDetails, list.selectedItem)">
       <s:itemRenderer>
        <fx:Component>
         <s:IconItemRenderer label="{data.employee_name}"
              messageField="position">
         </s:IconItemRenderer>
        </fx:Component>
       </s:itemRenderer>
    </s:List>
    </s:View>
    Please help me to resolve this issue as soon as possible. Appreciate your quick response in this regard.
    Thanks,
    Murtaza Ghodawala
    Mobile: +965 97180549
    [email protected]

  • Can I use Iweb for a domain outside MAC?

    Just curious of I can use Iweb to publish a site of my own, not for a .mac account that is held through a go daddy or something like that?

    The issue is that when you go to the site, the web address shows www.modnostalgia.com/www.modnostalgia.com/default.html.
    That is exactly what is supposed to appear in the address bar. The url you give to customers is still
    www.modnostalgia.com
    I tried copying the files from the www.modnostalgia.com folder directly into my public_html folder, but then I have issues because it wants to overwrite the index.html file. What do I do?
    Let it overwrite the index.html file. A different index.html is required if you want that to work. But truncating the structure produced by iWeb that way will make any RSS Subscribe buttons non-functioning, should you choose to have these at some point.

  • Tuxedo Algorithm for remote domain calls

    I have 2 tuxedo domains having similar configurations (advertising same set of services, one on HP & other on Linux). I need to configure both these as remote domains on my local tuxedo domain which will act as a request initiator. Now, I'd like to know how this tuxedo will route any service request to 2 of those remote domains. Is it in round robin fashion or any other ? And do I need to configure it explicitly in the configuration file, if so, then how ?

    Hi,
    This depends upon how you configure the domain gateways.  If you import the services multiple times within the same local domain gateway/local access point, then the domain gateway will round robin the requests.  On the other hand, if you configure two domain gateways, import the services from one remote domain into one of the local domain gateways, and the services from the other remote domain into the other local gateway, then the local balancing will be a little more complicated.  In this case you will have to separate domain gateways each offering the same services.  Normally in this case Tuxedo will place requests on the first empty request queue it finds.  If all request queues are busy, then Tuxedo will select the request queue with the least amount of work queued.  The reason this is a bit more complicated is the way the domain gateway works.  So it has a thread that pulls requests off of it's request queue, so under normal light to moderate load, the domain gateway never has any requests in its queue.  Thus Tuxedo will handle virtually all the requests to the first domain gateway as it will nearly always appear idle.
    My recommendation if these are single machine domains, i.e., SHM mode domains, then just define a single domain gateway and import the services separately from the remote domains.  Additionally I would configure the other remote domain as the fail over domain for each service.  Thus if either remote domain fails, all traffic will end up on the remaining domain.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

Maybe you are looking for

  • Error while doing the billing (VF01)

    hello, we have created Debit memo request "1234" (doc type : DR). when i am doing the billing(VF01) for the debit memo "1234" we are encountering the error as bellow. bellow message is from the log: "001234 000010 "Create billing document" not allowe

  • Why won't my Mac won't update?

    I've tried twice now to update MacBook Pro (mid2012) Software Update 1.0 version 10.7.4   size 1.14 GB the first time i was using wireless connection. i thought that was the problem and direct hooked it up to our DSL box and it still didn't install t

  • Facing issue with Photoshop Elements 8

    I have just purchased Adobe Photoshop Elements  8 and I am transferring photos from my Pictures file which is in Windows Vista. I ha ve created a number of catalogues and made a number of albums within each one e.g. a category called My Holidays with

  • Help for a Conky weather script

    Hi, I was trying to write a Conky script to display weather forecast for the current day in my Conky, using <tempmin>, <tempmax> and <descr> on this page http://www.tv5.org/TV5Site/widget/meteo - lle_id=474. I'm a complete newbie to bash/perl/whateve

  • Precompiling tag files

    It is a fairly common approach to precompile all the jsp pages in your web application, and have it generate servlet and servlet-mapping entries for your web.xml file. Is there a similar approach for tag files? Something that would take a bunch of ta