Fork me on GitHub

Announcement

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 2014-11-04 21:51:30

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

Integrate an HTML page in an application

Hello, I would like to integrate an HTML page into an application without iframe (), put the page in the window.

I want not:
$myFrame = new Iframe(array(
....
but rather:
function apps_run($params=null) {

echo "my text";

Offline

#2 2014-11-08 18:09:10

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Integrate an HTML page in an application

Do youst want to show some HTML code or do you need to show echoed data?


Best regards,
Lars Knickrehm

The oneye project.

Offline

#3 2014-11-08 21:15:18

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

Re: Integrate an HTML page in an application

show some HTML code

For example :
I want to display in window :
<p> my text </p>

Offline

#4 2014-11-11 01:44:40

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: Integrate an HTML page in an application

This should work:

$myContainer = new Container(array(
	'father' => $father,
	'height' => $height,
	'name' => $father . '_Container',
	'width' => $width,
	'x' => $x,
	'y' => $y
));
$myContainer->show();
$myContainer->setContent('<p>TODO</p>');

Best regards,
Lars Knickrehm

The oneye project.

Offline

#5 2014-11-11 12:35:16

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

Re: Integrate an HTML page in an application

ok thanks !

$myContainer it can be the same size as the window?

height 100% and width 100%
The height is the width adapts to the size of the window.

Last edited by sazearte (2014-11-11 19:01:44)

Offline

#6 2014-11-11 19:27:51

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

Re: Integrate an HTML page in an application

I am trying to create a multimedia player for oneye, and I Can not open a video file, the problem comes from the following address:

	global $checknum, $myPid, $currentUser;
	$userDir = um('getCurrentUserDir');
	if (isset($params['arg'][0])) {
		$params[0] = $userDir . FILES_USER_DIR . '/' . $params['arg'][0];
	}

$video=$params[0];

for example $video= ./users/rt4/root/files/Desktop//test.mp4

and html :

<video width="100%" height="100%" controls="controls" preload="auto">
    <!-- MP4 for Safari, IE9, iPhone, iPad, Android, and Windows Phone 7 -->
    <source type="video/mp4" src="'.$video.'" />
...

Offline

Board footer

Powered by FluxBB