Piwik in HTA app


(5y1sibyu) #1

I installed piwik, it works, and I like it. So I decided to write an HTML app container that would allow me to run it on my desktop without having to keep a browser open all the time, like so:

<html>
<head>
<HTA:APPLICATION 
   border="thin"
   borderStyle="normal"
   caption="yes"
   icon="http://ralph.open-aerospace.org/favicon.ico"
   maximizeButton="yes"
   minimizeButton="yes"
   showInTaskbar="no"
   windowState="normal"
   innerBorder="no"
   navigable="yes"
   scroll="auto"
   applicationname="piwik"
   sysmenu="yes"
   scrollFlat="no" />

<title>Piwik Analytics</title>
</head>
<frameset> <frame src="https://piwik.somewhere.org"></frameset>
</html>

Piwik loads fine, but won’t display the dashboard or widget page (all others display fine). I get the following error:

Line 12
Char 398
'contentWindow' is null or not an object
Code 0
URL https://piwik.somewhere.org/libs/jquery/jquery.history.js?piwik=0.4.5

Any ideas for a workaround? Thanks!


(vipsoft) #2

Try an iframe instead?


(5y1sibyu) #3

Not quite, but it did point me in the right direction. I got it to work by replacing the frameset with the following:

<body onLoad=document.location='https://piwik.somewhere.net'></body>

Thanks style_emoticons/<#EMO_DIR#>/smile.gif.