Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ContactView()
- {
- alert("1")
- var txtSearchbox = $("#searchTextField").val();
- $.ajax({
- type: "GET",
- data: param = "searchField="+txtSearchbox+"&office="+localStorage.getItem("office")+"&person="+localStorage.getItem("person")+"&user="+localStorage.getItem("user")+"&organization="+localStorage.getItem("organization"),
- contentType: "application/json; charset=utf-8",
- url: "http://msw-wsdl.company.net/mobile.asmx/ContactGet",
- dataType: "json",
- success: successContact,
- failure: function (msg) {
- console.log(msg);
- }
- });
- alert("2") /*this is the last alert that pop's up, nothing further*/
- }
- /*wsdl call succeed*/
- function successContact(data) {
- alert("3")
- $("#lstView_contacts").kendoMobileListView({
- dataSource: JSON.parse(data.d),
- template: $("#lstView_contact_Template").html(),
- endlessScroll: true,
- scrollThreshold: 8
- });
- window.location = "#contactsview";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement