Yes i understand that but i got two problems… first is i want to update the window.parent.document because i’m opening a lightbox with iframe and when i click a ajaxlink inside that iframe i want to update content of parent window.
I know jQuery parameter ‘success’ can do that like this:
'success' => 'function(data)
$("#teste", window.parent.document).html("File '.$id_file.' added with success to project '.$id_project.'");
But i want this on ‘update’ or ‘replace’ parameters…
Second problem is that on the parent window i got the list of Files added to that project. All File got an ajax link to delete the file from the project… the problem is when i 1 link is ok… when i click the second time after page was rendered i got an error:
CDbCommand failed to execute the SQL statement: SQLSTATE: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1