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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:30:00+00:00 2026-05-17T02:30:00+00:00

I have a textbox with id kTb. When I click the button after entering

  • 0

I have a textbox with id kTb. When I click the button after entering some value in the textbox, the below changeV(str) is called inside a javascript (‘onClick=”changeV(kTb.value)”‘). The ‘alert(str)’ gives me the value I entered in the textbox but when I pass it ‘urll = “uSetENV.cgi?kullaTest=str”‘, I am NOT getting the entered value, its just str. Could you please let me know how to pass/get the entered value, kindly let me know if I am NOT clear, thanks.

==================================================================================

function changeV(str)

{

alert("starting change value");
alert(str);
urll = "uSetENV.cgi?kullaTest=str";
var reqq

//fw_setenv kullaTest str;
    if (window.XMLHttpRequest) {
    reqq = new XMLHttpRequest();
    reqq.open("GET", urll, true);
    reqq.setRequestHeader( "If-Modified-Since",
                "Sat, 1 Jan 2000 00:00:00 GMT" );
    reqq.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
    reqq = new ActiveXObject("Microsoft.XMLHTTP");
    if (reqq) {
        reqq.open("GET", urll, true);
            reqq.setRequestHeader( "If-Modified-Since",
                "Sat, 1 Jan 2000 00:00:00 GMT" );
        reqq.send();
    }
}
alert("done change value");

}

  • 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-17T02:30:01+00:00Added an answer on May 17, 2026 at 2:30 am

    JavaScript doesn’t have a symbol to indicate a variable (i.e. foo is a variable and doesn’t need to be named $foo), so you can’t perform interpolation of variables in strings. You have to build your string explicitly.

    You should also deal with characters that have special meaning in URIs using encodeURIComponent.

    urll = "uSetENV.cgi?kullaTest=" + encodeURIComponent(str);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a textbox and a link button. When I write some text, select
I have a textbox (txtbox1) which has some value in it. I want to
I have a textbox whose value I want to set based on the inner
I have TextBox (multiline) and Label in an UpdatePanel which I refresh with javascript
I have textbox that I want to run some jquery when the textbox loses
I am have textbox and 4 button in my page (A, B, Delete and
I want to have image button for browse and upload I have textbox using
I have wpf datagrid with number of template columns. some of them have textbox
how to make button cause validation for some controls and other not.. i have
I have a TextBox and a DropDown inside a ListView which is binded to

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.