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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:08:04+00:00 2026-06-10T15:08:04+00:00

I have a table which is filled from a database. The user can delete

  • 0

I have a table which is filled from a database. The user can delete one row by clicking the delete button next to it. After the click the row fades away. This works on my localhost but on the live server I get a 500 Internal server error.

The strange thing is, there is a pretty much similar function tied to another element and that works fine. I simply copied the original one that was not written by me. I just wonder why on the live server the original works and my identical code does not.

Here is the my code:

$K2('.deleteNakladyButton').click(function(event){
  event.preventDefault();
  if (confirm(K2Language[3])) {
    var element = $K2(this).parent().parent();
    var url = $K2(this).attr('href');
    $K2.ajax({
     url: url,
     type: 'get',
     success: function(){
       $K2(element).fadeOut('fast', function(){
         $K2(element).remove();
       });
     }
   });
 }
});

The original is different in the name of the class that it is triggered by. The original says .deleteAttachmentsButton.

This function is not crucial to the site but it would add a little bit more comfort for my client.

Thank you for your answers.

  • 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-10T15:08:05+00:00Added an answer on June 10, 2026 at 3:08 pm

    It seems to me that there are (at least) 2 possible reasons for this. As said before, 500 internal server error indicates that the call to the server succeed, but the server didn’t know how to handle the request.

    1. See that the code on the server knows what to do with the parameters sent by ajax.
    2. Check that the var ‘url’ holds the right url.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with records from a database which is dynamically filled. <table>
I have an Excel file (which has data imported from Oracle 10G Database) one
I have a table that is filled with data from a database. When you
I have table which contains double values stored in mysql database ...I need to
I have table in which I am inserting rows for employee but next time
I have a table which i want to store all the outputs into one
I have one table which contains events and dates, and another which contains the
I have an Application which displays a Chart, which is filled with data from
I have many TextBOX in asp.net which accepts the value from user and stores
I have two web forms which are filled in by the user. They contain

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.