This topic is locked
[SOLVED]

 reload page after inline edit on inline edit mode

4/13/2010 8:48:33 PM
PHPRunner General questions
T
tokuji author

hi, i use this:

setTimeout('window.location.reload(true)',1000); after setTimeout('$("#uploadForm'+id+'").remove()',500); on inlineedit.js, i have this script to load the page on inline edit mode:

<script language="javascript">

function carga()

{

if(!frmAdmin.elements['selection[]'].length)

frmAdmin.elements['selection[]'].checked=true;
for (i=0;i<frmAdmin.elements['selection[]'].length;++i)

frmAdmin.elements['selection[]'][i].checked=true;
$("input[@type=checkbox][@checked][@id^=check]").each(function(i){

if(!isNaN(parseInt(this.id.substr(5))))

$("a#ieditlink"+this.id.substr(5)).click();

});

}

</script>

and <BODY topMargin=5 {$bodyattrs} onload="carga();">{BEGIN body}{$header} on myfile_list.php

the problem is on IE show this error: "InlineEditing is undefined" and i am pretty sure the problem is this line: setTimeout('window.location.reload(true)',1000);

so, how could reload my page after inline edit and enter to inline edit mode directly after load???