ajax force refresh

Hello, I have a very large form for which I use javascript to collect all the values, which are then sent via ajax to the appropriate controller action. Is there a way to force a refresh of the page after the action is completed, instead of having the results get sent back via ajax? It sounds silly that I am using AJAX when I want to refresh the page, but whenever I try without AJAX the $_POST array does not contain all of the form’s values. I don’t really know why, so before I go ahead and scrap AJAX I was just wondering if there was a way around doing that. I have never had this problem before, but then I have never had such a large and complicated form. Any help is appreciated, thanks.

edit: I also tried returning a renderPartial to the AJAX call which calls the particular code that creates the form. Unfortunately, it completely breaks the date fields when I do that ($this->widget(‘zii.widgets.jui.CJuiDatePicker’ …). Otherwise it would be fine.

Nvm figured it out:




$.ajax({

      url: 'changeMeetingItem',

      type: 'POST',

      data: "iid=" + <?php echo $_GET['id']; ?> + "&values=" + post,

	success: function() {

	   window.location.reload(true); //here

	}

});