Forum
11:03
Moderators
30/10/2007
Hello,
The dialog is closed automatically if you delete a row. Check your code, for errors. A simple test is to do this whitout using any evenr, try just with the default settings.
Regards
Tony
P.S. This is may last post for this type of messages, sorry that I say this , but if you want to submit a bug -
1. code
2. browser.
3. jqGrid version.
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
20:22
Hello, I have the same case, but thought I knew the reason. Please view this script, in the last line I call the function 'header', then the dialog “Delete” doesn't close. But after I removed the line and everything stayed the same. Then, that can I do? Thank you so much.
<?php
require_once('mysqlsupport.php');
require_once('connectionvars.php');
if($_POST[oper] != 'del')
return;
$conx = new MySQLConnect($hostname, $username, $password);
$sql = 'DELETE FROM Afiliados WHERE CodigoInt = ' . $_POST[id];
$fp = fopen(”../logs/logfilefordelete.txt”, “w”);
if(fwrite($fp, $sql) == false){
echo “No se pudo crear el log…<br /><br />”;
}
fclose($fp);
$rs=$conx->createResultSet($sql, $databasename);
$conx->close();
header('location:../mainscript.php?rowdeleted=1');
?>
This is a piece of code which defines the value of the parameters for the navigator:
…
}).navGrid(
'#pagerAfiliados',
{edit:false,add:false,del:true},
{}, // prmEdit (Edit Options)
{}, // prmAdd (Add Options)
{url:'scripts/scriptfordelete.php',closeAfterDelete:true,reloadAftersubmit:true}, // prmDel (Del Options)
{}, // prmSearch (Search Options)
{} // prmView (View Options)
);
…
16:06
Hello again.
In my prior post I say that that modal window form don't close maybe for the line:
header('location:../mainscript.php?rowdeleted=1');
Then I delete this line, however the problem continue. Then I discovered that something can happen only in Firefox, but not always.
I work mainly with Firefox 3.5.3. In another computers my site work correctly (working with Firefox 3.5.3)., but in my computer no. With IE8 don't have problems.
01:53
Moderators
30/10/2007
Hello,
I think that the problem is server side. Check to see what you script return after deleting.
By the way you have bad parameters in delete options.
1. We do not have closeAfterDelete - the dialog is closed automatically when the operation is with success
2. We do not have reloadAftersubmit, but we have reloadAfterSubmit
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
64 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66