php - Send AJAX on click, but still go to URL of href -


I am trying the following:

When a user clicks on a link, The column of a specific table in the database through a specific agenda but I still want the user to href = " link be redirected.

I tried the false code returned without ; but then AJAX does not work.

I tried to return return; Lake Neither the page clearly redirects to the URL as I wanted.

Thank you in advance for your help.

Make your AJAX call, then set the document .location when done.

  $ ('a'). (Function (e) e.preventDefault (); // $ .aex ({url: '/ path / to / site', from data: {anything: {some: data from {var href = this.href; // get href link} }, Success: function () {add document.location = href; // redirect browser}}); });    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -