Topic
  • 6 replies
  • Latest Post - ‏2012-06-11T05:17:52Z by SystemAdmin
SystemAdmin
SystemAdmin
570 Posts

Pinned topic Worklight PhoneGap API not working in second view

‏2012-05-14T10:58:57Z |
Hi,

I am working on app, which need to access mobile camera.

so that worked on worklight PhoneGap POC with one view app which working fine.

Then when I integrate same POC in my app in three view is not working PhoneGap.

Can you please tell where I miss the logic ...

Kindly find the attachmented my Worklight PhoneGap POC on camera with two views.

Kindly solving this as soon as, waiting for your solution.

Thank you.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Worklight PhoneGap API not working in second view

    ‏2012-05-15T13:52:14Z  
    Hello Nanda.

    Worklight applications are a single-page application (SPA).
    Once you call another page you lose the application context.
    To stay in the same page you should use the Worklight fragments (for whole pages or parts of it), or other solutions for single page application like in jQuery.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Worklight PhoneGap API not working in second view

    ‏2012-05-20T07:37:32Z  
    Thank you ravidor,

    If I bulid worklight on single-page application (SPA),
    Then how I can access js library files or etc in worklight.

    WSDL code generate:- http://sudzc.com/

    Have a nice day.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Worklight PhoneGap API not working in second view

    ‏2012-05-20T08:26:33Z  
    Hi Nanda.

    You call an adapter, or directly your web service through AJAX and inject the response into the DOM.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Worklight PhoneGap API not working in second view

    ‏2012-06-07T09:12:01Z  
    Ok,

    If I bulid worklight application on single-page application (SPA), How to user jQuery mobile library (UIDataPicker, Signature and Active Indicator).

    Those are not working with SPA structure, if it works, can I get any sample on jQuery mobile library with Single-Page Application.

    Thanks Ravidor.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Worklight PhoneGap API not working in second view

    ‏2012-06-10T12:40:40Z  
    Hi Nanda.

    See http://jquerymobile.com/test/docs/pages/page-anatomy.html
    especially the sections about Single page, Linking pages and Page transitions
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: Worklight PhoneGap API not working in second view

    ‏2012-06-11T05:17:52Z  
    Hi Ravidor,

    If I follow single-page application (SPA) ref link:- http://worklight.com/download/get-started/4.2.1/module-7.5.

    Can I use jQuery mobile library (UIDataPicker, Signature and Active Indicator) in Worklight Multiple Pages and Fragments application.

    Kindly give me answer YES r No.

    Thank you