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: 134
Registered: ‎04-15-2012
My Device: Bold 9900
My Carrier: Vodafone

Dialog timeout

Dialogs seem to timeout automatically after about 20-30 seconds, how can I avoid this?

 

Thanks

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Dialog timeout

Hi there,

 

Could you provide a code snippet for how you are displaying your dialog? Do you mean just an alert?

 

Could you please also confirm the model and OS version you're seeing this on? And, just to double-check, you mean that after 20-30 seconds of no interaction, the dialog just disappears?


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Trusted Contributor
Posts: 134
Registered: ‎04-15-2012
My Device: Bold 9900
My Carrier: Vodafone

Re: Dialog timeout

Its a simple javascript confirm dialog.

OS 7.0.503
9900

Thanks
Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Dialog timeout

Hi there,

 

Could you please try with the following source?

 

<!DOCTYPE html>
<html>
	<head>
	</head>
	<body>
		<script type="text/javascript">
			/*global window, document, console, confirm, alert */
			function ready() {
				"use strict";
				try {
					confirm("DOM content loaded. Will this auto close?");
				} catch (err) {
					alert("ready: " + err);
				}
				window.removeEventListener("DOMContentLoaded", ready, false);
			}
			window.addEventListener("DOMContentLoaded", ready, false);
		</script>
	</body>
</html>

With the above, I let the confirm dialog sit there for a good 5 minutes and it didn't go anywhere. Could you possibly be doing something additional in your JavaScript somewhere that would force a close?


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Trusted Contributor
Posts: 134
Registered: ‎04-15-2012
My Device: Bold 9900
My Carrier: Vodafone

Re: Dialog timeout

Thanks for taking the time to do this

Will test it out & revert!