Advertisement
Guest User

Untitled

a guest
Jun 25th, 2012
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Why is WP7 WebBrowser InvokeScript call throwing Error: 80020101?
  2. SystemException was unhandled
  3. An unknown error has occurred. Error: 80020101.
  4.  
  5. MyBrowser.InvokeScript("getData", "/Me/Feed?numberOfResults=-1", "MyFeed");
  6.  
  7. function getData(url, context) {
  8. $.ajax({
  9. url: url,
  10. dataType: 'jsonp',
  11. success: function (result) {
  12. callback(result, context);
  13. }
  14. });
  15. }
  16.  
  17. MyBrowser.InvokeScript("postData", "thedata", "CreatePost");
  18.  
  19. function postData(payload, context) {
  20. $.ajax({
  21. type: "POST",
  22. url: "/Post/Create?" + tz(),
  23. data: payload,
  24. dataType:"json",
  25. success:function (result) {
  26. callback(result, context);
  27. }
  28. });
  29. }
  30.  
  31. postData("sampledata", "PostTest");
  32.  
  33. Dispatcher.BeginInvoke(() =>
  34. {
  35. MyBrowser.InvokeScript("postData", "thedata", "CreatePost");
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement