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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:23:32+00:00 2026-06-16T19:23:32+00:00

I have a simple ink using the </a> tag. which is below: <a href=create_session.php>

  • 0

I have a simple ink using the </a> tag. which is below:

<a href="create_session.php">

What my question is can I modify the link in order to be able to access a jquery/ajax function which is below:

function removesession()
{       
     $.ajax({
         url: "insertmarks.php",
         async: false,
         type: "POST"
     });    
}

Btw is the ajax correct to simply just navigate to a page?

  • 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-16T19:23:33+00:00Added an answer on June 16, 2026 at 7:23 pm

    Absolutely!

    Give the link an ‘id’ attribute (makes it easier to select)

    <a href="create_session.php" id="createLink"></a>
    
    $(function() {
        var link = $("#createLink");
    
        link.click(function() {
            $.ajax({
               url: "insertmarks.php",
               async: false,
               type: "POST",
               success: function() {
                    window.location.href = link.attr("href");
               }
             });
    
             //cancels the links true action of navigation
             return false;
        });
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple question about MVC routing. How i can construct Html.ActionLink thhat generates
I have simple class with width and height member fields which define number of
I have simple php validation form that is halfway working. If you leave the
I have simple form. <form target=_blank action=somescript.php method=Post id=simpleForm> <input type=hidden name=url value=http://...> <input
I have simple client/server SSL code which worked fine on Python 3.2. However, I
I have simple xlib program which creates window. I think it has to show
I have built a simple application which connects database made in derby(Netbeans) which binds
I have simple perl script as below: #!/usr/bin/perl use strict; use Data::Dumper; my %x;
I have simple WPF application where I using threads. E.g. In new thread I
I have simple query which is taking around 7-8 seconds for to retreive the

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.