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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:37:44+00:00 2026-06-17T14:37:44+00:00

I am trying to replicate the functionality I have on a dropdown box that

  • 0

I am trying to replicate the functionality I have on a dropdown box that allows a user to select a tag and then return articles related to this term,.

The textbox needs to accept a search term and work in the same way. I have tried everything I can think of but I am getting zero results.

To replicate the behavior, select an item from the dropdown box and it will return articles. Then try typing the same term in the search box and it returns no articles.

Any idea why? Here’s the site:

http://www.api.jonathanlyon.com/getpocket/view.html

  • 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-17T14:37:45+00:00Added an answer on June 17, 2026 at 2:37 pm

    One solution would be to change your search box code to something like this:

    <form name="searchform" >
        <input type="text" name="searchterm">
        <input type="button" value="search" onclick="validateForm()">
    </form>
    

    Since you are not really submitting a form and don’t want to reload a page, you can just use the click event from a button rather than the submit event from the form.

    If you want to have it get the article when hitting the Enter button, here is one way to do it (there might be better ways I am just not thinking of now…). You can use the keydown event to run a function that will test for the Enter button. When it finds it, it will call validateForm. Add this function to your script:

    function init(){
        document.getElementById("searchterm").addEventListener(
           "keydown", keydown
        );
        function keydown(e){
    
           if(e.keyIdentifier == "Enter"){
              validateForm();
           }
        }
    }
    

    and change your body tag to this:

    <body onload="init();">
    

    That attach the keydown event listener to the textbox once the page has loaded.

    One note of warning: I am testing this on a Linux laptop running Chrome. I don’t know if Mac calls the Enter key Return and I don’t know if .keyIdentifier is cross-browser compatible. That is something you need to look into, but this should get you started.

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

Sidebar

Related Questions

Basically the functionality that I'm trying to replicate is the @reply system as it
I am trying to replicate the functionality that users see when they go into
So I am trying to replicate Facebook's picture tagging functionality, and I have the
I am trying replicate auto-complete functionality that you find on the Google homepage. So,
I'm trying to replicate some of the functionality in Apple's avTouch, but I can't
Im trying to replicate an effect as seen on http://www.fiat.co.uk/Showroom/#showroom/punto_evo/explore . I have made
Im trying to replicate the following sql in Nhibernate ICriteria SELECT DISTINCT AP.ID FROM
I am trying to replicate the exact functionality of this dialogue in Visual Studio
After a quick scan of related questions on SO, I have deduced that there's
I'm trying to replicate the iOS music app's audiobook functionality. I want to query

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.