Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Sample Application Working for Both Online and Offline Mode

Thanks LBP for Your Reply,
I will check with the "blackberry.system.hasDataCoverage()".
And I will post here if I get the solution or not. 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Sample Application Working for Both Online and Offline Mode

Hi LBP,
I have Use blackberry.system.hasDataCoverage() to check for offline mode.
But as i have already expalin, it's getting the Black Blank Screen.
I have used JQuery Mobile Transition Effect.
I think for JQuery Mobile its getting the error, coz it stuck in $.mobile.hidePageLoadingMsg();
Can you Help me!!!! 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Developer
Developer
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Sample Application Working for Both Online and Offline Mode

What about Web Inspector output? Do you get any errors there? Let us know.


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Sample Application Working for Both Online and Offline Mode

Hi LBP,
I am not getting any type of error.
i have put alert to check the flow.
But when it comes to that JQuery code.It stucks and show me Black Blank screen. 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Developer
Developer
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Sample Application Working for Both Online and Offline Mode

Are you using bbUI.js or something like that? May be you need to use webworksready event and init bbUI.js before using JQuery code??

 

What is defined in your config.xml as the <content> URL, a local file or a remote?


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Sample Application Working for Both Online and Offline Mode

Hi LBP,
No, I am not using bbUI.js, I am using JqueryMobile.
If i use bbUI.js then i have to change so many code b'cpz i have already completed the project in online mode.
I want to Use the project in both Offline and online mode.

I am defining a local file in config.xml as the <content> URL.

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Developer
Developer
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Sample Application Working for Both Online and Offline Mode

So in config.xml you are calling eg. a local "index.html" and if the device is connected to web it works and if not it doesn't work? Anything in your .html referencing to online/remote ressources like script-/link-tags?


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Sample Application Working for Both Online and Offline Mode

I have store all the src file inside the resources folder.
Still I am unable to find any solution.
Actually I don't find the error or any problem but my project stuck in offline mode. 

 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Developer
Developer
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Sample Application Working for Both Online and Offline Mode

MMMhhh, without a look into your project it seems impossible to help on this issue, isn't it?


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Developer
Posts: 67
Registered: ‎06-28-2012
My Device: BlackBerry Z10LE
My Carrier: T-Mobile

Re: Sample Application Working for Both Online and Offline Mode