Recently doing a function requires a window, but can not use the Get method, because of the length of the URL is limited, so you must use post, summed up two methods
1.
Copy Code code as follows:
var $form 1=$ ("<form action=" "+url+" ' id= ' F ' name= ' F ' method= ' post ' ></form> ");
$form 1.append ($ ("<input type= ' hidden ' name= '" +i+ "' value= '" +params[i]+ "'/>"));
var scriptstr= "<script type= ' Text/javascript ' >document.f.submit ();</script>";
$ ("Body"). Append ($form 1);
var Newwindow=openwin ("", null,800,600);
NewWindow.document.write ($form 1[0].outerhtml+scriptstr);
2.
Copy Code code as follows:
var $form 1=$ ("<form action= '" +url+ "' id= ' F ' name= ' F ' target= ' NewWindow1 '" method= ' post ' ></form> ");
for (var i in params) {
$form 1.append ($ ("<input type= ' hidden ' name= '" +i+ "' value= '" +params[i]+ "'/>"));
}
$ ("Body"). Append ($form 1);
var Newwindow=openwin ("", ' NewWindow1 ', 800,600);
$form 1.submit ();
These two methods are not very good results, are the first pop-up window, and then let the pop-up window for post submission