delete

Problem with animating the deletion of table rows in jQuery

Hey guys, I have written some jQuery code to use the "slideUp" animation when deleting rows from a table. In order for the animation to appear smooth, I wrapped the contents of each TD in the row with DIV tags, and called the slideUp function on the DIVs, removing the actual TDs upon completion of the animation. The code for that is as f...

CakePHP: Deleting on a field other than the primary id

I am trying to delete a list of entries form my table corresponding to a particular id. I get the id and post it through an ajax function to the controller and use the Delete function of the model to delete the particular entry. But the entries are not deleted. This is my ajax function in the view file called reports.ctp where I call th...

problem with the deletion of uploaded images

i got this error when i tried to delete an image which i have uploaded "Forbidden You don't have permission to access /act-photo-delete.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_p...

Deleting a stored procedure in SQL server

Before I delete/replace a stored procedure, I would usually do a string search of the name of the stored procedure in the working project to make sure no unsuspecting code is using it. Is there a better and more reliable way of doing this? Oh and the code is in c# and i'm using vs2008 ...

Delete a file after user download prompt

I think this is pretty simple. My program will create an Excel file on the server using Automation. After that, I want to force the user to choose whether or not to download it, then, regardless of the choice, delete the file so it won't just take up space. Any ideas on how I could accomplish this? ...

Deleting objects from an ArrayList in Java

Hi guys, I have a big doubt and I hope someone can help me out. I need to delete some objects from an arraylist if they meet a condition and I'm wondering which way could be more efficient. Here's the situation: I have a class that contains an arraylist containing some other objects. I have to iterate over this arraylist and delete all ...

Delete a LINQ to SQL record without loading it first

Is it possible to get LINQ to SQL to delete a record using the PK, without loading the record first? Similar to NHibernate's proxy object functionality? ...

To build a `Delete` -button efficiently with JavaScript / PHP

Which of the following code is better in building a delete -action for removing a question? 1 My code <a href='index.php?delete_post=777>delete</a> 2 Stack Overflow's code <a id="delete_post_777>">delete</a> I do not understand completely how Stack Overflow's delete -button works, since it points to no URL. The id apparently can ...

To understand a line of jQuery

What does the following line mean? jQuery.post('/codes/handlers/delete_a_question.php', { question_id: jQuery(this).attr('question_id') } Context in HEAD jQuery('a.delete_question').live('click', function(){ jQuery.post('/codes/handlers/delete_a_question.php', { question_id: jQuery(this).attr('question_id') }, ...

Adding action to a delete event in jQuery

How can you add the class red to the class question_body when the question is removed? JS in HEAD jQuery('a.delete_question').live('click', function(){ jQuery.post('/codes/handlers/delete_a_question.php', { question_id: jQuery(this).attr('rel') }, function(){ $(.question_body).addClass("red"); /...

check values before sending to controller in rails

In this code i have checkboxes for each item that give user ability to delete multiple items at once, but if the user press the remove button without checking any item it gives an error <% form_for :product , :url => { :action => :delete_selected } do %> <table border="1px"> <tr> <th> Select </th> ...

How to create a delete link for a related object in Ruby on Rails?

So let's say I have Posts and Comments and the url for show is /posts/1/comments/1. I want to create a link to delete that comment in the comments controller destroy method. How do I do that? ...

Deleting millions of rows in MySQL

I recently found and fixed a bug in a site I was working on that resulted in millions of duplicate rows of data in a table that will be quite large even without them (still in the millions). I can easily find these duplicate rows and can run a single delete query to kill them all. The problem is that trying to delete this many rows in on...

Registry Key Delete Error

i create an registry key by program ....In this path .. computer/HKEY_CURRENT_USER/Software/test but i cannot delete that key by manually and programming ..while deleting through manually ,In reg message "cannot delete ........key: Error while deleting this key " help me to resolve my problem.. ...

How can one delete an entity in nhibernate having only its id and type?

Dear ladies and sirs. I am wondering how can one delete an entity having just its ID and type (as in mapping) using NHibernate? Thanks. P.S. I use NHibernate 2.1 ...

How can one delete NHibernate objects using a criteria?

Dear ladies and sirs. This must be a simple question. Given a criteria, how one deletes the entities satisfying the criteria? The rationale: HQL and NH criteria are NHibernate specific constructs and as such they are server side DAL implementation details. I do not want them to "leak" to the client side. So, our client side provides ...

Duplicates in a QIF File?

Does anyone have a good way of deleting duplicate transactions (same date, amount, biller, etc) in a QIF file? I looked at PERL's Finance:QIF, but it appear to have delete a record function. Alternatively, does someone have a good QIF --> CSV converter? Although I am looking at a PERL solution, I am open to other ideas. Thanks in...

How to prohibit the removal of any rows in a specific mysql table ?

Is there a way to configure a mysql table so that writting and reading is possible but not deleting ? Exampe is : a table that contains many log that are legally important and that must never be deleted ! ...

How to delete all records in a table using SubSonic 3

I am a little stuck at the moment trying to delete all the records from a table using this approach: new Delete<Contact>().Execute(); This statement fails with a NullReferenceException in BuildDeleteStatement method at line: sb.Append(query.FromTables[0].QualifiedName); because, although FromTables has one entry, it is set to null....

Specify more than one item in the where clause

Is there any way i could run the following 'logical code' to actually work? $sql=mysql_query("DELETE FROM users WHERE id='3,4,5,9'"); I basically want to give my user a tick box to tick for all displayed rows, they can then pick which ones to remove... i just want to remove more than one row with the id's specified? Any ideas? ...