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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:47:22+00:00 2026-05-11T19:47:22+00:00

I am wondering how to capture all links on a page using jQuery. The

  • 0

I am wondering how to capture all links on a page using jQuery. The idea being similar to Facebook. In Facebook, if you click on a link it captures the link and loads the same link using ajax. Only when you open a link in new tab etc. will it load the page using regular call.

Any clue on how to achieve such kind of functionality? Am sure capturing links should not be a problem, but what about capture form submissions and then submitting the entire data via ajax and then displaying the results?

Is there any plugin which already exists?

Thank you for your time.

  • 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-11T19:47:22+00:00Added an answer on May 11, 2026 at 7:47 pm

    Alec,

    You can definitely do this.

    I have a form that is handled in just this way. It uses the jquery form plugin kgiannakakis mentioned above. Example javascript below shows how it might work.

    $("form").ajaxForm({
        beforeSubmit: function(){
            //optional: startup a throbber to indicate form is being processed 
            var _valid = true;
            var _msg = '';
            //optional: validation code goes here. Example below checks all input
            //elements with rel attribute set to required to make sure they are not empty
            $(":input [rel='required']").each(function(i){
                if (this.value == '') { 
                    _valid = false;
                    _msg += this.name + " may not be empty.\n";
                    $(this).addClass("error");       
                }
            });
            alert(_msg);
            return _valid; 
        },
        success: function(response){
            //success here means that the HTTP response code indicated success
            //process response: example assumes JSON response
            $("body").prepend('<div id="message" class="' + response.status + '"></div>');
            $("#message").text(response.message).fadeIn("slow", function(){
                    $(this).fadeOut("slow").remove();
            });
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using PhantomJS with jQuery and I'm wondering if it's possible to capture an
wondering if some of you know what javascript framework facebook is using ? Thanks
I'm wondering if it's possible to capture details from the web page that a
I was wondering if I could capture an event (via Notification or some other
Wondering what the best / good way of doing this would be in jQuery.
Wondering what is the best or most popular database client tool. Similar to Microsoft's
I was wondering if anyone knows of a tutorial explaining how to capture the
I'm trying to capture all comments and dates entered by my team while committing
I'm wondering what the best way is to have a if all else fails
I was wondering if there is a way to capture the state of an

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.