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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:28:24+00:00 2026-05-22T02:28:24+00:00

There are two files, html and jquery. I want to know if possible to

  • 0

There are two files, html and jquery. I want to know if possible to connect between these two files.

jquery-test.js:

$(document).ready(function(){
    $('#inputForm').submit(function(){
        $('#inputForm :text:not("#submit")').each(function(){
            var input = $(this).val();
            var someData = [];
            var weblink = 'http://www.google.com&callback=?'; // just example
            $.getJSON(weblink, function(data){
                $.each(data.results, function(i, item){
                    someData.push(item.json_Tag);
                });
            });
        });
    });
});

and the HTML file is below:

<html>
    <head>
        <meta http-equiv = "Content-Type" content = "text/html">
        <script type="text/javascript" src="jquery.min.js"></script>
        <script type="text/javascript" src="jquery-test.js"></script>
    </head>
    <body>
        <form method = "post" action = "/result" id = inputForm>
            <input type = "text" name = "input" id = input>
            <input type = "submit" value = "Search" id = search>
        </form>
    </body>
</html>

The process is below:

  1. User key in some word in the text area and press button.
  2. The jquery will link to “weblink” and catch some data.
  3. jQuery return these data to HTML file.
  4. HTML file redirect to /result page with these data.

But I don’t know how can I do the process above ? I don’t know how to return the data form jquery ? I don’t know how to let HTML redirect to other page with data .

Thank you very much.

  • 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-22T02:28:25+00:00Added an answer on May 22, 2026 at 2:28 am

    Javascript (and jQuery, in this case) is designed to run in the user’s browser. You deliver the Javascript to the user by including it in the HTML page.

    Include the following in the HEAD section of your HTML document:

    <script src="jquery-test.js'></script>
    

    Correct your HTML by adding double quotes around the text “inputForm” and all of the other HTML attributes

    <form method="post" action="/result" id="inputForm">
    

    The jQuery code will now be executed when the user submits the form with ID “inputForm”.

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

Sidebar

Related Questions

I have three files in a folder 'test' one.php two.php print.html And i have
I have an application with two html files: app/page1.html app/page2.html These pages share dependencies,
Say I have two files where there is one number per line File 1
I have two files which both contain a list of words. Is there an
Is there any possibility to split classes for a two files like in C++?
Is there any fast algorithm that allows to compare two files (for verification purpose)
Suppose i have one folder and inside that another two files are there .
I'm using doxygen for commenting code. There is, for example, two files: test1.cpp :
I am trying to mix two mp3 files in my Android application.Is there any
I am using the .NET XmlSerializer class to deserialize GPX files. There are two

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.