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 543431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:33:02+00:00 2026-05-13T10:33:02+00:00

I am using : function AuthenticateUser(alias, password) { //$(document).unbind(‘keypress’); $(#Login).unbind(click); $.getJSON(RPC_URL + ?c=User&password= +

  • 0

I am using :

function AuthenticateUser(alias, password) {
        //$(document).unbind('keypress');
        $("#Login").unbind("click");
        $.getJSON(RPC_URL + "?c=User&password=" + urlencode(password) + "&alias=" + alias + "&m=login&jsoncallback=?", function(data){
             CheckAuthentication(data,alias,password);
        });

    }

Right now…

But instead of that, I want to use POST, instead of GET. I tried $.postJSON and $.post instead of $.getJSON here, but when i use postJSON or post, for some reason my data is not even sent. I saw that in my Temper data. Nothing happened in Temper Data.

Someone told me that this might be a cross domain issue. Because I am sending send data from my virtual.cloudbeta.com to virtual.app.cloud.com.

What should I do here.

I want to have a simple fix on this. I can not keep the data on one server or have a proxy server. One of my friend suggested me to see this : http://alvinabad.wordpress.com/2009/02/13/feb13/

But i could not get how I can use it my issue.

Plz, it would really nice to get some help on this.

Regards
Zeeshan

  • 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-05-13T10:33:03+00:00Added an answer on May 13, 2026 at 10:33 am

    The proper syntax is to use .post and change the return type (4th param) to “json” as per the docs for .post:

    var postData = { c: "User",
                     password: password,
                     alias: alias,
                     m: "login" };
    $.post(RPC_URL, postData, function (data) {
        CheckAuthentication(data,alias,password);
    }, "json");
    

    Not quote sure the post data is how you want it formatted, but I hope you get the idea.

    As for cross-domain I don’t know if there is a way around it when you’re going across domains. Subdomains are ok, but domains might be blocked.

    Although really keep in mind putting it in the post isn’t going to help your security. Anyone with firebug can see the post data. If you’re worried about security encrypt the password (hash) before sending it. If a GET works for you use that, don’t just switch to POST, it isn’t buying you anything (unless of course you’re using SSL for the POST, then it’d be more secure).

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

Sidebar

Ask A Question

Stats

  • Questions 490k
  • Answers 490k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First of all, it's a really bad idea to use… May 16, 2026 at 9:17 am
  • Editorial Team
    Editorial Team added an answer If you are not dead set on using a listbox,… May 16, 2026 at 9:17 am
  • Editorial Team
    Editorial Team added an answer killproc will terminate programs in the process list which match… May 16, 2026 at 9:17 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I 'm trying to implement user authentication and authorization using roles table, user table
I am using function random()%x for the generation of a random number, but every
I am using : function ajax(u,s,t) { jQuery.ajax({type: POST, url: u, data: query, success:
What are the steps to estimating using function points? Is there a quick-reference guide
Here's the code I'm using: function load(toLoad, area){ $(area).html('<img src=images/ajax-loader.gif alt=Loading class=center />'); loadContent();
What is the difference between using Function.prototype.apply() and Function.prototype.call() to invoke a function? const
Trying hard to replace the eval without using Function constructor. Stumped. I am not
I'm invoking the navigator print function using a simple window.print(); call. It prints perfect
How to pass a php json encoded variable to a jquery function using codeigniter?
I have troubles setting up the support for openID authentication, using authkit and pylons.

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.