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
Contributor
aniruddhambarkar
Posts: 10
Registered: ‎10-04-2012
My Device: 8520
My Carrier: Airtel

Webworks background HTML page not invoking javascript

I am trying to start javascript interval from background page. I have declared background page in config.xml using <rim:background src="background.html" runOnStartup="true" />.

I want to start up interval on device startup, but the background page is never invked and is not starting interval. Please help me to get it done. 

My code for background page is 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="cordova-2.1.0.js" type="text/javascript"></script>
<script type="text/javascript" src="jsworker.min-2.0.js" ></script>
<script src="Echo.js" type="text/javascript"></script>

</head>
<body onload="window.startThread()">

</body>
</html>

 

 

Thanks in advance.

Please use plain text.