Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. function ContactView()
  2. {
  3. alert("1")
  4. var txtSearchbox = $("#searchTextField").val();
  5. $.ajax({
  6. type: "GET",
  7. data: param = "searchField="+txtSearchbox+"&office="+localStorage.getItem("office")+"&person="+localStorage.getItem("person")+"&user="+localStorage.getItem("user")+"&organization="+localStorage.getItem("organization"),
  8. contentType: "application/json; charset=utf-8",
  9. url: "http://msw-wsdl.company.net/mobile.asmx/ContactGet",
  10. dataType: "json",
  11. success: successContact,
  12. failure: function (msg) {
  13. console.log(msg);
  14. }
  15. });
  16. alert("2") /*this is the last alert that pop's up, nothing further*/
  17. }
  18. /*wsdl call succeed*/
  19. function successContact(data) {
  20. alert("3")
  21. $("#lstView_contacts").kendoMobileListView({
  22. dataSource: JSON.parse(data.d),
  23. template: $("#lstView_contact_Template").html(),
  24. endlessScroll: true,
  25. scrollThreshold: 8
  26. });
  27. window.location = "#contactsview";
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement