php - Jquery Modal load while Rdirecting the page -


i have modal on place...and button in need 2 things in 1 time,...

when button save clicked, there php function called , executed, while need show modal, if background php function executed, how do that?

<button class="btn id="save">save</button> 

this php controller php function..

if(isset($_post['ac'])){         if($_post['ac']=='cancel'){             $class->no($id);         }         if($_post['act']=='save'){             $class->yes($id);         }     } 

as see above code, call yes function php-side work, in function @ end have redirect php method redirect other page,

and have following jquery code...

$('#save').click(function(){      $('#modsave').modal();         })   

in general, problem when click button comes modal, because of redirect method in php, when goes other page modal disappear.

one thing, php redirect same page parameter passed pages default page.

how prevent disappearing modal while or if page redirects??


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -