⚠ 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. ⚠

  •     

profile picture

update changes



sparrowfizow57
  • profile picture
  • Member

Posted 21 October 2013 - 05:53 AM

hi all..

i have one doubt..

how can i make the page refresh automatically when i clicked the update changes button(not the go back to list)..

coz currently it only show alert state that our data is saved..

how can i make it refresh than show the alert??

sorry, im a newbie..


Amit Shah
  • profile picture
  • Member

Posted 22 October 2013 - 10:51 AM

Hello sparrowfizow57

 

Sorry didnt understand your query as what you would like to have a workaround? cuz when u update - the changes are the same on the page as you have selected. So what and why you want to refresh the same?

 

But still -for your requirement - there is a way around:

$crud->set_lang_string('update_success_message',
		 'Your data has been successfully stored into the database.<br/>Please wait while you are refresh the page.
		 <script type="text/javascript">
		  location.reload(); 
		 </script>
		 <div style="display:none">
		 '
   );

That should reload the page and take you back to the same location again.