Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Post to the provided URL with the specified parameters.
- function post(path, parameters) {
- var form = $('<form></form>');
- form.attr("method", "post");
- form.attr("action", path);
- $.each(parameters, function(key, value) {
- var field = $('<input></input>');
- field.attr("type", "hidden");
- field.attr("name", key);
- field.attr("value", value);
- form.append(field);
- });
- // The form needs to be a part of the document in
- // order for us to be able to submit it.
- $(document.body).append(form);
- form.submit();
- }
- myParams = {"form":"form","form:largeurDivCenter":"1693","javax.faces.ViewState":"<à récupérer en bas de code source>","form:Sidebar:j_idt160":"form:Sidebar:j_idt160"}
- post("https://aurion-lille.isen.fr/faces/LearnerNotationListPage.xhtml",myParams)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement