Fork me on GitHub


The oneye project has been discontinued. You might not expect further fixes and support from us. All community related systems are set to read-only mode. Though feel free to download and use oneye as-is or even fork it over at GitHub.

#1 2015-08-13 16:01:40

Registered: 2015-05-12
Posts: 313

Quote of the Day

Just before my internet connection crapped out for the third night in a row, I got inspired and repaired the memory leak in 'Quote of the Day'.  Then I noticed that it opened its links in a new browser window.  The app.eyecode loads the following html file from /extern/apps/QoTD/ into eyeIframize.

The html file returns with 'quotebr.js'. The java script file always contains a link which shows up in the app's frame. Can we modify this html file to send the link to eyeNav or eyeIframize,  or do we need to go back to eyecode and fix it there? I've never used "base target" before.

Currently accepting new users...
onEye admins: OS1 is a beta testing hotbed. Non-core apps available upon request.


#2 2015-09-01 14:00:00

From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731

Re: Quote of the Day

You need to create an event in events.eyecode:

function APPNAME_on_Open($params = null) {
	proc('launch', array('eyeNav', 'http://URL'));

Now you can call that event using JavaScript:

$on = 'sendMsg(' . strval($checknum) . ', "Open"); return false;';

Do not forget to make the global checknum variable available locally before that line!

global $checknum;

Best regards,
Lars Knickrehm

The oneye project.


Board footer

Powered by FluxBB