Node-webkit for dummies

8 views
Skip to first unread message

Ugur Baltaci

unread,
Jan 19, 2013, 11:20:13 PM1/19/13
to node-...@googlegroups.com
Hi,

I hope no one blame me for this :)

Briefly; I'm a regular programmer, mostly dealing with C and Objective-C. My day job is related to very low-level things and I never experimenting with high-level things or web technologies since
I was not interested in. 

When I decided to experimenting with this project, I created personal goal :) notification app(!) basicly it checks regularly some api and notified me. 

So far so good; 

I got data from web servise, parsing it and saving it to sqlite database.

My app structure basicly like this;

- index.html
-- detail.html

and timer code ( for regular call to webservice ) placed in index.html.

Here is the problem blowing my mind;

If new notifications comes and I click it; it opens directly detail.html.
After I read the memo, minimize window.

Since; detail.html do not contain any timer or api calls to webservice, 
my app stucks that state.

Is there any solution / paradigm; ( like C, threading ) I exclude timer from index.html and
works both index & detail page.

Regards,

~ p.s: tracking minimize event and open index.html or creating another timer inside detail.html
may solve the problem, but i'm not looking for.








Hakan Bilgin

unread,
Jan 21, 2013, 5:31:14 AM1/21/13
to node-...@googlegroups.com
This probably will help you;

-hbi
Reply all
Reply to author
Forward
0 new messages