// Post dynamic form using json data function post(uri, data, method) { // when method not provided use default post method method = method || "post" ; var form = document.createElement( "form" ); form.setAttribute( "method" , method); form.setAttribute( "action" , uri); for ( var property in data) { if (params.hasOwnProperty(property)) { var hiddenField = document.createElement( "input" ); hiddenField.setAttribute( "type" , "hidden" ); hiddenField.setAttribute( "name" , property); hiddenField.setAttribute( "value" , data[property]); form.appendChild(hiddenField); } } document.body.appendChild(form); form.submit(); }
It's very nice post , Thanks For sharing
ReplyDelete.Net Online Training Bangalore
I would like to say thank you for the amazing details and concepts you are sharing in this.The style of writing is excellent and also the content is top-notch. Thanks for that shrewdness you provide the readers! to read. I never stop myself to say something about it. You’re doing a great job. Keep it up...
ReplyDeleteDot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery