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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:30:18+00:00 2026-06-13T19:30:18+00:00

I would like to connect my Chrome Extension to my server, and send data

  • 0

I would like to connect my Chrome Extension to my server, and send data back and forth. In particular, when the user clicks a button on the extension when he’s navigating a certain URL, the server checks its database to see how many times that URL has been clicked, increment the count, and send the new count back to the user.

I know that sending the data to the server is possible with an AJAX request, but what about getting the data back from the server?

  • 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-13T19:30:19+00:00Added an answer on June 13, 2026 at 7:30 pm

    I think, you may use AJAX for getting updated count in a straightforward manner. For example (with jQuery):

    $.ajax({
      url: 'ajax/count.php?url=' + encodeURIComponent(newURL),
      // dataType: 'json',
      success: function(data) {
        // parse you data received from server here
        // data.count
      }
    });
    

    So you can “send” new info as parameters of GET request, and get required information from server as http-response. The type of the data used to transfer the count is up to you. For example, this can be json (jQuery provides a shorthand method getJSON, which does the same customized ajax call).

    If you don’t want GET, you may use POST and specify data as follows:

    $.ajax({
      type: "POST",
      url: "ajax/count.php",
      data: { url: newURL },
      success: function(data){
        // ...
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to connect to a listening server and transmit some data. I
I have an AIR application and would like to connect to an LDAP server
I would like to connect to a server on tcp/ip to the port 65000
I would like to connect to the MS SQL Server 2008 during installation. There's
I'm looking to send many emails via Python and would like to connect to
i would like to connect to a website and process or read data from
I would like to connect to my headset and send it an ACL command
Lets say I would like to build an application to connect to a server
I would like to connect my application via the internet to a server which
I would like to connect to to irc, icq, sip, etc services using WebSockets.

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.