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

  • Home
  • SEARCH
  • 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 9210915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:10:56+00:00 2026-06-18T01:10:56+00:00

I have a ajax call in my javascript and its returning some response as

  • 0

I have a ajax call in my javascript and its returning some response as json and redirecting the json values to another jsp page.. in the redirected jsp page, am getting the whole json in the url tab.. how to avoid that…
here is my ajax call in js file…

var cols="PRIORITY,USER_ID,PARTICIPANT_TYPE,CREATION_DATE,ASSIGN_TO_USER_DATE,START_WORK_DATE,DUE_DATE,OPERATION,ORDER_VK,SENDER_TYPE,SENDER_ID,ORDER_ID,FLAGS";
    var ioArgs = {
                                                        url: "./DynamicDBServlet",
                                                        content: { TABLE_NAME:'CWPWORKLIST',WHERE_CONDN:cond,COLUMNS:cols}, 
                                                        handleAs: "json",
                                                        load: function(response) {
                                                        alert("new  "+new String(response));
                                                            window.location.href = "worklist.jsp?PRIORITY="+response;
                                                        },
                                                        error: function(error) {
                                                            alert("An unexpected error occurred: " + error);
                                                        }
                                                };
  • 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-18T01:10:57+00:00Added an answer on June 18, 2026 at 1:10 am

    Replace this line:

    window.location.href = "worklist.jsp?PRIORITY="+response;
    

    with:

    openWindowWithPost("worklist.jsp",'height=300px,width=300px,top=200px,left=500px,scrollbars=no,sizable=yes,toolbar=no,statusbar=no','title',param);
    

    and then have the below function:

    function openWindowWithPost(url, windowoption, name, params)
    {
             var form = document.createElement("form");
             form.setAttribute("method", "post");
             form.setAttribute("action", url);
             form.setAttribute("target", name);
             var input = document.createElement('input');
             input.type = 'hidden';
             input.name = "PARAM";
             input.value = params;
             form.appendChild(input);
             /*for (var i in params) {
                 if (params.hasOwnProperty(i)) {
                     var input = document.createElement('input');
                     input.type = 'hidden';
                     input.name = i;
                     input.value = params[i];
                     form.appendChild(input);
                 }
             }*/
             document.body.appendChild(form);
             window.open(url, name, windowoption);
             //alert("inside openpost");
             form.submit();
             document.body.removeChild(form);
     }
    

    and read the values to worklist.jsp using the name PARAM……

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

Sidebar

Related Questions

i have an ajax call $.ajax({ url: '<%=Url.Action(SaveDetails,Survey) %>', dataType: 'JSON', cache: false, data:
If I have an ajax call off fetching (with a callback) and then some
I have a WCF service in an ASP.NET AJAX app that is returning json.
When doing a Ajax call to an MVC action currently I have my javascript
I need to make an Ajax call and have the response update a child
I have an ajax call that returns a JSON object that is pretty complex
I want to make an AJAX call to an HTML-returning page, extract part of
I have the following ajax call in my javascript. This call executes correctly, the
I have a simple ajax call inside a javascript function to a php file,
I have a page which does an AJAX call and loads an entire page.

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.