Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:01:57+00:00 2026-06-17T12:01:57+00:00

I am working on a web app using AngularJS with which I am quite

  • 0

I am working on a web app using AngularJS with which I am quite inexperienced.

My aim is to have the user type some parameters into a text field, and then for a GET request to be sent out (using the $http service in Angular) using that parameter as one of the params in the GET request.

The target of the request is a KDB+ process (A proprietary column oriented database/language from KX Systems). This process can take a request in the form of:

http://servername:1234/?queryToRunHere[paramFromApp]

This call should return a JSON string. Due to the fact that the webserver and this process run on different ports I get the “Access-Control-Allow-Origin” error that prevents me from running this query to a different port. I have attempted to use the $http.jsonp command (since I read this allows remote fetching) however this asks me to provide a “&callback” parameter. This is not possible as KDB+ will interpret everything to the right of the “?” as an internal query.

I am not really sure how to proceed, but these are my ideas so far:

  1. KDB+ provides an API for Java (but not as far as I am aware for JavaScript). Perhaps I could write some sort of web service in Java, which could then be called by angular, and which in turn would call KDB+ using its native API. The issue with this is that it creates another program to maintain, and also I am not sure how to go about writing such a service (what technology, framework, etc).

  2. There is another way inside Angular that I don’t know about, or there is a way to not have to specify the callback parameter in $http.jsonp.

I would be grateful any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:01:59+00:00Added an answer on June 17, 2026 at 12:01 pm

    That error is usually only caused by different servers, its in order to prevent cross site scripting, the usual workaround is to add headers in your apache config. make sure both services are referred to with the same host name.

    Alternatively the KDB+ response can be customized if you want though it may be tricky if your new to q.

    1. .z.ph is what controls KDB’s processing of HTTP requests, you could overwrite it to process any parameters and return whatever you want. An example can be seen on the KX wiki.

    2. KDB+ 3.0 and newer also provide web sockets which you may find more useful. They are handled by .z.ws.

    An example of its use in javascript can be seen in Carlos Butlers’ WebStudio.

    Hopefully these have provided you with workarounds for your issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a web app using C# and asp.net I have been
I am working on an iPhone Web App using HTML & CSS. I have
Using Visual Studio 2008 and VB.Net: I have a working web app that uses
I am working on a web-app using Django 1.3 and Python2.6. I have to
I'm working on a Web app using ASP.NET. I have a class called Sistema
Im working on an web app using c#. I have in my code the
I am working on a web app using MVC, where all pages have header
I'm working on a web app that allows a user to select some text,
I have been working on a small web app using the Stripes framework. Now
I am using working on web app which had a DIV in which latest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.