This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 14th, 2013  |  syntax: None  |  size: 0.97 KB  |  views: 28  |  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. $.post({
  2.   url : "price/getprice",
  3.   data : {"options" : chosenOptions},
  4.   success : function(data) {
  5.               $("#price").text(data);
  6.             }
  7. });
  8.        
  9. http://localhost:42427/Product/Details/%5Bobject%20Object%5D
  10.        
  11. $.post({
  12.   url : "/price/getprice",
  13.   //     ^-- leading slash
  14.   data : {"options" : chosenOptions},
  15.   success : function(data) {
  16.               $("#price").text(data);
  17.             }
  18. });
  19.        
  20. <% = ResolveUrl("~/price/getprice") %>
  21.        
  22. $.post({
  23.   url : "http://mywesbite.com/price/getprice",
  24.   data : {"options" : chosenOptions},
  25.   success : function(data) {
  26.           $("#price").text(data);
  27.         }
  28. });
  29.        
  30. $.post({
  31.   url : "/price/getprice",
  32.   data : {"options" : chosenOptions},  <<<<< Right here. dang.
  33.   success : function(data) {
  34.           $("#price").text(data);
  35.         }
  36. });
  37.        
  38. $.post({
  39.   url : "/price/getprice",
  40.   data : { options : chosenOptions},  <<<<< no quotes. arg.
  41.   success : function(data) {
  42.           $("#price").text(data);
  43.         }
  44. });
clone this paste RAW Paste Data