Advertisement
Guest User

Untitled

a guest
Sep 14th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement