fork download
  1. $(document).ready(function () {
  2. $("#b").click(function () {
  3. $.ajax({
  4. url: "{{ path('xtestpage') }}",
  5. context: document.body,
  6. headers: {"X-UserName": $('#username').val(), "X-Password": $('#password').val()},
  7. method: 'POST'
  8. }).done(function () {
  9. window.location.replace("http://content-available-to-author-only.symf/xtestpage");
  10. });
  11. });
  12. });
Runtime error #stdin #stdout #stderr 0s 107072KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.js:1:8 ReferenceError: $ is not defined