
i want to after insert this data, it redirect to the maintaner of this table, as you can see in this picture

I dont want to it shows this screen

PLZ help!!!
regards
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 08 January 2012 - 20:07 PM



$(function(){
$('.ptogtitle').click(function(){
if($(this).hasClass('vsble'))
{
$(this).removeClass('vsble');
$('#main-table-box').slideDown("slow");
}
else
{
$(this).addClass('vsble');
$('#main-table-box').slideUp("slow");
}
});
$("#FormLoading").ajaxStart(function(){
$(this).show();
});
$("#FormLoading").ajaxStop(function(){
$(this).fadeOut('slow');
});
$('#crudForm').submit(function(){
$(this).ajaxSubmit({
url: validation_url,
dataType: 'json',
success: function(data){
if(data.success)
{
$('#crudForm').ajaxSubmit({
dataType: 'text',
cache: 'false',
success: function(result){
window.location = list_url;//NEW LINE CODE
data = $.parseJSON( result );
if(data.success)
{
$('#report-error').hide().html('');
$('.field_error').each(function(){
$(this).removeClass('field_error');
});
clearForm();
..................................................
$(function(){
$("#FormLoading").ajaxStart(function(){
$(this).show();
});
$("#FormLoading").ajaxStop(function(){
$(this).fadeOut('slow');
});
$('#crudForm').submit(function(){
$(this).ajaxSubmit({
url: validation_url,
dataType: 'json',
success: function(data){
if(data.success)
{
$('#crudForm').ajaxSubmit({
dataType: 'text',
cache: 'false',
success: function(result){
window.location = list_url; //NEW LINE WITH REDIRECTION HERE
data = $.parseJSON( result );
if(data.success)
{
$('#report-error').hide().html('');
$('.field_error').each(function(){
$(this).removeClass('field_error');
});
..........................
Posted 08 January 2012 - 20:53 PM