{
var myURL = link.split('?');
var formObj = document.createElement("form");
formObj.name = "KTDynaForm";
formObj.id = "KTDynaForm";
formObj.action = myURL[0];
formObj.method = "POST";
formObj.setAttribute("style", "display:none;");
if(myURL[1]!=null)
{
var urlArguments = myURL[1].split('&');
for(var i=0;i<
{
var actionString = urlArguments[i].split("="); var inputObj = document.createElement("input");
inputObj.type = "hidden";
inputObj.value = actionString[1];
inputObj.name = actionString[0];
formObj.appendChild(inputObj);
}
}
document.body.appendChild(formObj);
formObj.submit();
return true;
}
No comments:
Post a Comment