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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:17:02+00:00 2026-06-15T20:17:02+00:00

I’m using Oracle Application Express (Apex) and basically my situation is: I have 2

  • 0

I’m using Oracle Application Express (Apex) and basically my situation is: I have 2 items, one is a text field and the other is a hidden item whose value is retrieved by querying a table using a DB link.

What should happen is the user enters a number into the text field, then that number is used in the query for the hidden item to find the row that has a ID that matches the number that the user entered. The value of the hidden item is then set to the contents of one of the columns for that row.

Only issue is, this is all on one page and must be done without submitting the page, so when the user enters the number into the text field, how can I store that number as the value for that item so that it can be used in the query to compute the value of the hidden item?

Any help would be appreciated.

  • 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-15T20:17:04+00:00Added an answer on June 15, 2026 at 8:17 pm

    UPDATE:

    <!DOCTYPE html>
    <html>
        <head>
            <script>
                function ajax(user_number) {
                    var xmlhttp;
                    // get the ID field for easy access... 
                    var index =  document.getElementById("index");
                    if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                        xmlhttp = new XMLHttpRequest();
                    } else {// code for IE6, IE5
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                    }
                    xmlhttp.onreadystatechange = function() {
                        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                            // here you get back a response... xmlhttp.responseText
                            // set the hidden field with new data.
                            index.value = xmlhttp.responseText;
                        }
                    }
                    // here you make a request to your script to check your database...
                    xmlhttp.open("GET", "app/search/?number=" + user_number + '&index=' + index.value, true);
                    xmlhttp.send();
                }
    
                function check(user_number) {
                    // make some validation here...
                    if (user_number.length > 3) {
                        ajax(user_number);
                    } else {
                        return;
                    }
                }
            </script>
        </head>
        <body>
    
            <p>please enter your secret number</p>
            <!-- the hidden field holding the ID -->
            <input type="hidden" id="index" name="index" value="334" />
            <!-- the search text box where user type his own NUMBER onkeyup it make a request -->
            <input type="text" id="user-number" name="user-number" onkeyup="check(this.value);"/>
    
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have thousands of HTML files to process using Groovy/Java and I need to
I have a reasonable size flat file database of text documents mostly saved in
I'm making a simple page using Google Maps API 3. My first. One marker
I have a bunch of posts stored in text files formatted in yaml/textile (from
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

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.