use XMLHttpRequest with address of the server variable

I have a connundrum.

I develop an application WebWorks for BB10, in which he performs XMLHttpRequest GET funcitons to send a http message to a server to communicate information at determined intervals.

Here's the problem: the address of the server that receives GPS messages must be specified by the user within the application itself, depending on their configuration (they usually set up their own host / server).

So I can't put any http://www.theirserver.com ' / > info in my config.html, because it is specified by the user running.

And is not a solution, which will still allow no requests via XMLHttpRequest.

Do I have other options at my disposal to allow that works the way you want?  I have considered using a web proxy to a fixed address to work around the problem, but I would use rather than as a VERY last resort.

Thank you very much

Ray

You can disable the blacklist/white list Ajax altogether, using the following:


    

As mentioned in the documentation, this feature is only a convenience of development. In production, all URIS must be known and should be in the whitelist using the element. But for the dynamic AJAX requests, I do not see otherwise.

https://developer.BlackBerry.com/HTML5/documentation/param_element.html

Tags: BlackBerry Developers

Similar Questions

  • Is it possible to use Dreamweaver with WordPress (has the classes by Joseph Lowery) only uses a test server AWS and not an environment local localhost?

    Is it possible to use Dreamweaver with WordPress (has the classes by Joseph Lowery) only uses a test server AWS and not an environment local localhost?

    Yes, I want to talk and EC2 instance and I am able to do Dreamweaver to easily connect using SFTP which I believe is a SSH protocol. See the image below. This method works.

    I currently have a test instance and will finally have an instance of production when the site is finished.

    Local environment is not installed on my workstation and my thought was that put it on the server would allow transparent operation including scripts on the server side. The testing station is not public.

  • Find the address of the server

    I wish I could find the address of a server on my LAN.


    I was doinking autour (specific local technique therm it) with an idea of game and in my thought process of the design of the game, I want to do the following in the implementation:


    I, or anyone can get online to play the game (not a problem, I can program sockets).


    When a potential player comes online, they would choose if they want to host the game or just participate and if there are already guests, give them a list that do not exist to join.  This is my problem.  The IP address of the server would not be known at the time of everyone online, and it could be that any address covered in my local block 10.0.0.XXX or 192.168.0.XXX, well, except the address of the router.


    In all the work I did in the past, the IP address of the server has always been known.  Also in the examples that I have on the net and my books all assumed that you know the IP address of the server, that is not a problem and I've done several times, but now I'm looking for the basic idea of how "discover a server on the network.


    I thought that this day is: use a type of force noise of algo where the client checks literally just everything in the local block using the Protocol for the game.  Which is the way to do it using simple TCP/IP and Java or is there a more elegant way that I'm missing?


    I am not coding examples, but just the basic audit idea or approach... even a suggested google search would be appreciated.

    As long as it is the local network and the router (or other infrastructure network) does not, you can use a UDP.  When a server comes online and maybe and regular intervals after that, she broadcasts a message "Server" here on a UDP port.

    Clients listen on UDP port and collect addresses.

    The alternative to this, when UDP is not possible (internet) is to have a dedicated communications server which is accessible to all.  There is no that indicate which servers are up.  Servers to validate the availability and customers ask servers lists.

  • ActiveX in BradySoft (CodeSoft) - what method/class/object I would use to send data to the form variable to BradySoft?

    Can what method/class/object I use to send data to the form variable to BradySoft? I have a basic configuration of BradySoft label and I want to send it data of variable shape (a serial number) from Labview ActiveX. I joined guide Brady ActiveX programmers, but can't understand what to use for that.

    P.S. I would call Brady or TekLynx tech support on this issue, but they have a strict policy while BradySoft supports ActiveX, but does not provide technical support assistance programming with it. I thought I would try the Forums OR.

    Just an update. I could get this to work myself after a few days of playing with it (I suppose that the best way to learn!). I have attached a sample VI for anyone interested. Can we Kudo ourselves?

  • BlackBerry Smartphones not connect to the e-mail address of the server

    1.i cannot connect to my BlackBerry9360Curve to the e-mail address of the server.

    2. keyboard light are off permanently

    Could someone help me? This is my first experience with BB

    Hello viale149!

    Welcome to the community

    Here are some links to help get started you on your phone, you can check.

    BlackBerry Tips and tricks

    BlackBerry 101

    BlackBerry battery Saving Tips

    Regarding the questions of your phone, please start by removing the battery while the device is activated as this version fixes common software problems. For e-mail, please ensure that you have your carrier Blackberry data Plan and it is active. Go to the configuration of the home screen icon, and select e-mail accounts.

    Ron

    Ron

  • The strange thing is that, when you go and try to remap the drive, it shows that the drive letter is mapped to a different drive used to be shared on the server?

    I am running Windows 7 Pro 64-bit in a dish netwrok with no announcement. I can map drives on the server without any problems and everything seems fine. Then after a few hours it seems to lose the mapping on the drive. There are two mapping drives and he loses a. It will show in my computer as being mapped, but you cannot access it. You can connect to the mapped drive on bringing the command run and typing in the UNC path in.

    The strange thing is that, when you go and try to remap the drive, it shows that the drive letter is mapped to a different drive used to be shared on the server? Once you tell to remap things in car are fine for a few hours.

    My question is where and why it does this?

    Thoughts?

    Thank you

    Tom

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en/category/w7itpro/

    Hope this information is useful.

  • Help! Could not resolve the address of the server: the requested name is valid, but no data of the requested type was found.

    Hello

    So I started with a Horizon view, so I apologize if this is a noob question. I wanted to try to put a security server in our DMZ, but before I put it in the DMZ I wanted to test whether customers would be on our network. So here's my setup:

    Overview of VMware View Administrator 5.3.2 generation-188719

    Same version for security server.

    Windows Firewall is activated 'On' on all profiles on security and the server connection. (this might be important later)

    Laptop with Horizon installed Client, Version 3.2.0 build-2331566

    IPad Air2 with Horizon Client Version 3.2.0 build-2331566

    On the Administrator display > display Configuration > Security servers > change on the Security Server

    I PCoIP Secure Gateway set to the IP address of the Security Server (say its 192.168.1.10:4172)

    Connection servers > edit on the login server

    I also have the Security server defined as PCoIP Secure Gateway (192.168.1.10:4172)

    Yet once I wanted to test it before I put it in the DMZ

    So when I connect with the iPad, it works fine, I can connect, see all my connections and connect to just fine.

    On the laptop, when I try to connect, I get the login screen where I put my user name and password (correctly, I might add ) and when I try and I get a connection error.

    "Error: could not resolve the address of the server: the requested name is valid, but no data of the requested type was found."

    I found the article KB VMware goes around the question: KB 2085365 (without help)

    I changed the Secure Gateway on both safety and the connection to the server at each IP I can think of, but it still does not work.

    Can someone give me an idea what can be wrong?

    What is my firewall to connect to the server? (I don't remember if I had turned on firewalls when I installed the login server while they could not properly configured summer when I install?)

    Any help would be amazing!

    Thanks for reading!

    I found the problem, it turns out that the network port to the Security server has been set for public and not private in the firewall. Thanks for the help!

  • Changing the IP address of the server running vCenter 2.5 U4 affects Update Manager Plugin

    Hello

    I have vCenter 2.5 U4 installed on a test server.  I now want to move it into production and need to change the IP address of the server.  All is well except the Manager Plugin update does not work.  When I connect to vCenter it gives me the message: "request failed because of a logon failure.   When I connect to vCenter it gives me the message: "Object reference not set to an instance of an object."

    I looked in the logs and found that she always tries to connect with the old IP address of the server:

    "System.Net.Sockets.SocketException: a connection attempt failed because the connected party responded properly after a period of time, or an established connection failed because connected host has failed to 10.250.48.230:443.

    My question is where can I change here to access the new IP address that I put in the server.  I found the address in "vci - integrity.xml" and change it in there but it always wants to connect to the old address:

    “”

    Note: The change was 10.250.48.230 to 10.250.48.130.

    Is there also, I need to change?  Or do I need to UNINSTALL Manager Plugin update and then REINSTALL?

    Thanks in advance,

    Rick Townsend

    I would try a repair installation, because I think it will prompt you to enter the appropriate IP information there.

    Jase McCarty

    http://www.jasemccarty.com

    Co-author of VMware ESX Essentials in the virtual data center

    (ISBN:1420070274) Auerbach

    Please consider awarding points if this post was helpful or appropriate

  • Cannot print on my local printer when you use remote desktop to access the server (Server 2008).

    We are struggling to print on my local printer when you use remote desktop to access the server (Server 2008).  Cannot make it work.  Any suggestions?

    Hi EverettBurton,

    The issue of Windows XP, you have posted is related to Windows XP in a domain environment. It is better suited for the IT Pro TechNet public. Please ask your question in the TechNet forums for assistance.

    Hope the helps of information.

  • Block the ip address in the server with the command cmd win

    Hello

    In win server how can I block IP with the command cmd?
    Thank you

    The server gurus hang out more in the TechNet forums:

    http://social.technet.Microsoft.com/forums/en-us/categories

    Here, we help with questions and problems of security.

  • Static IP address on the server 2008R2 disconnecting Internet

    Please help with a static IP configuration on VMware.

    I would like to configure Active Directory on VMware with FULL INTERNET AND IP ADDRESS, please help.

    Scenarios

    I use VMware on Windows 8.1 10 and that's what strikes me:

    1. After installing server 2008R2 on VMware and the activation of the "Connection NAT" network card, I had full access to the internet.
    2. 1920168.5.2 to server static IP address assignment disconnect internet.
    3. Add more network on the server to reconnect to the internet but removes the static IP address.
    4. Even the bridge two network cards, I still get internet access.
    5. Active directory cannot be installed on a dynamic IP address
    6. I connect using wireless (my cell phone as a modem).

    Your help will be greatly appreciated

    After following your instructions, I discovered that VM DNS is 192.168.111.2. Both the DNS and gateway uses the same IP address, DNS is indeed the gateway to NAT. la... 111... changes when you reset the VM machine. Also, I discovered that the DHCP of the VM is 192.168.111.128 as you put it. Now place the Client Server on the same network of VM IP, thus, take the given dynamic IP 192.168.111.128/129/130/131 etc, make it static. Assigning 192.168.111.2 as gateway and DNS, provides access to the internet. However, after configuring Active directory member servers will not find the domain controller uses the DNS of VM.  Instead, insert the IP of the VM DNS as secondary preferred over the IP of the DNS server (for example, DC1, DC2 mem1 etc.) in the preferred DNS. Then... VOALA... Is set with full internet access.

    It was a challenge to the calm, but I give you the thumbs up for your lead. You are the best.

  • change the IP Address of the server.

    Hi hussein.

    We have an EBS R12.1 running on the server linux OEL, with IP 192.168.1.100
    The network admin want to change it to 192.168.10.211 for standardization purposes.
    How can I make my EBS R12 to adapt to this new IP address? AutoConfig is the solution? or should I run cloning?


    Thank you very much


    Ms. K

    Hello

    You will need to purge the table as shown FND_NODES (Note: 260887,1 - steps to own non-existent nodes or IP addresses of FND_NODES) then tun AutoConfig on the node of the database layer and the application layer node. Start application services once you are finished.

    If you get a blank page, please compile JSP files manually using "perl ojspCompile.pl - compile - hunting Pei 2 ' command.

    Thank you
    Hussein

  • Use fault strategies to get the input variable and call a new service.

    Hello

    I have 2 composites that are the answer to the request. If none of these composite gives an error I want to have policies to correct this fault. Is possible to obtain the input of the first variable composite and call a new service with this variable to handle the error?

    Thank you

    Daniel

    I found the solution here:

    With the help of mismanagement in a BPEL process

    Using the method getVariableData to get the variable I want.

    Kind regards

    Daniel

  • Unable to connect to vSphere Web Client using Firefox or Chrome on the server 2012R2

    I recently installed the web client of vsphere 5.1.0 on my 2K12R2 box.  I get questions that are well known and documented when I try to connect using IE11 (but note that I can always connect to the server vCenter). So I decided to try firefox and chrome.

    With Firefox, I just get a cannot connect error message - Firefox can't establish a connection with the serere to localhost:9443.  When I try Chrome I get "this webpage is not available" with IE it came with the problem with the security certificate, but if I continue I can enter.  Other browsers are set to use the system proxy settings, so I don't ' know what is happening.

    Help!

    Thank you

    Have you tried to set the proxy to 'No Proxy' settings?

    What the system proxy settings are currently configured (netsh winhttp, see the proxy)?

    André

  • How to get the database name/IP address of the server forms10g database

    Hello world
    How can I get the name of the database instance and the IP address of the database server?

    I use GEC 10 g and the database server is Oracle 10 g.

    Dobbelaere

    How can I get the name of the database instance and the IP address of the database server?

    To use the IP UTL_INADDR

    For example name you can use sys_context ('userenv', 'instance_name')
    or
    SQL > select instance_name from v$ instance;

Maybe you are looking for