Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Mobile
Hello Everyone,
I am trying to make a mobile application in Phonegap and Jquerymobile (as UI) but i m completely noob at javascript i am trying to call a wcf service(access sql database via linq to sql class)in Phonegap.My Service is running fine but the mobile part is creating some problems Here's my service-
   public interface IService1
       [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json)]
       List<My_Employee> FindEmployee(string uid);
and Jquerymobile UI in Index.html file of Cordova(Phonegap)-
<div data-role="page"  id="one" data-theme="a">
        <div data-role="header" data-theme="b" >
          <!--head finishes here-->
          <div data-role="fieldcontain">
            <label for="name">EmpId:</label>
            <input type="text" name="name" id="empid" value=""  />
          <!--Text input finishes here-->
              <input type="submit" id="requestdata" value="Submit" data-theme="b" />
user will Write the empId in text input and Employee's Full name along with his/her Phoneno. will be displayed.
Please tell me how should i start with calling the service on button click event.
Sorry if the Question irritates you but i really need to find an answer to this.
I'm Using VS2010 Professional for writing Web Service and My Phonegap's Version is 2.1.0
Any Suggestions are Welcome.
Thanks for reading this.
Have a nice day ahead..
Posted 6-Nov-12 19:05pm
(unknown member)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 458
1 OriginalGriff 384
2 George Jonsson 233
3 Animesh Datta 130
4 Shemeemsha RA 128
0 OriginalGriff 6,179
1 Sergey Alexandrovich Kryukov 5,616
2 CPallini 4,770
3 George Jonsson 3,400
4 Gihan Liyanage 2,522

Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100