0

I have a page in which I can apply different filters. On load the page loads all the entries in the database. After applying a filter I get the entries of said filter. There is a delete button that performs:

Function deleteEntry(code){
  self.location.href="delete.asp?code=" + code;
}

After that the original page reloads but loses the filters I had chosen before. How can I make it so I keep the filters after the pressing the delete button (the filters come from different selects/options)?

1 Answer 1

1

call that delete.asp by Ajax. so the original page is not reloaded.

example (with jquery):

Function deleteEntry(code){
    $.post("delete.asp", {
        "code": code
    }, function(data) {
        //todo:
        //remove the deleted data from the page per JavaScript...
    }

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.