4
Answers

How to open page with jquery

Schleid Alex

Schleid Alex

4y
410
1
Hi,
 
I have this script
 
@*$.ajax({
type: 'GET',
data: { id : StoreID},
url: '@Url.Action("Create")',
contentType: 'apllication/html; charset=utf-8',
success: function () {
//window.open(@Url.Action("Create", "Storebranch") )
}
})*
 now I would like to know what to put on the success part to open the page.
I have use windows.location.href but it  is not working as expected as I have a double call to the controller which nullify my parameter on the second call.
 
P.S. Moderator if you have to delete my script please let me know the right way to post it, excuse me if I am doing it the wrong way.
 
Answers (4)