Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 1st, 2012  |  syntax: None  |  size: 0.24 KB  |  views: 200  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var pars = $("p");
  2. text = pars[0].innerHTML;
  3. var arrOfStrings = [];
  4. $.ajax({
  5.   type: "POST",
  6.   url: "~/pythoncode.py",
  7.   data: { param: text}
  8. }).done(function( o ) {
  9.    arrOfStrings = processParagraph(text);
  10. });
  11. console.log(arrOfStrings);
clone this paste RAW Paste Data