You are not logged in.
Let's say I put a small website in directory called extern/apps/eyeBall/ loaded with file ball.php.
I want that site to load into iframe, so I put:
$homepage = 'index.php?extern=apps/eyeBall/ball.php';
Well, naturally, that fails. I assume I just didn't get the format right. What's the
format again, including the "Type=" tag that I know is missing? Thanks
Wolfy
https://www.facebook.com/groups/oneye/
Currently accepting new users... http://www.OS1.hawkwolf.net
onEye admins: OS1 is a beta testing hotbed. Non-core apps available upon request.
Offline
I guess you're looking for "index.php?extern=apps/eyeBall/ball.php&type=dynamic¶ms[]=".
In order to get it working you'll additionally need to put the following function into that file, while it should return the requested content.
function get_dynamic_content($params = null) {
return 'Hello Ball';
}
Best regards,
Lars Knickrehm
The oneye project.
Offline
ah, thanks, I was fairly close. I'm not sure I follow the last bit, but I'll doing some searching of the existing code to see if I find an example of it being used.
Wolfy
https://www.facebook.com/groups/oneye/
Currently accepting new users... http://www.OS1.hawkwolf.net
onEye admins: OS1 is a beta testing hotbed. Non-core apps available upon request.
Offline
I ended up with the following:
function get_dynamic_content($params = '') {
header('Content-type: text/javascript; charset=utf-8');
$homepage = 'index.php?extern=apps/eyeBall/ball.php
&type=dynamic¶ms[]=';}
So far it's only given me a blank page when passed to eyeiframize..
Wolfy
https://www.facebook.com/groups/oneye/
Currently accepting new users... http://www.OS1.hawkwolf.net
onEye admins: OS1 is a beta testing hotbed. Non-core apps available upon request.
Offline
also tried
function get_dynamic_content($params = '') {
$homepage = 'index.php?extern=apps/eyeBall/ball.php&type=dynamic¶ms[]=';
return $homepage;}
Wolfy
https://www.facebook.com/groups/oneye/
Currently accepting new users... http://www.OS1.hawkwolf.net
onEye admins: OS1 is a beta testing hotbed. Non-core apps available upon request.
Offline
You need to call "index.php?extern=apps/eyeBall/ball.php&type=dynamic¶ms[]=" via eyeIframize and a sample ball.php could look like this:
<?php
function get_dynamic_content($params = null) {
header('Content-Type: text/plain');
return 'Hello Ball';
}
?>
It should show "Hello Ball" inside that Iframe.
Best regards,
Lars Knickrehm
The oneye project.
Offline
I think I see what you are saying now. The php being loaded is quite a bit more complicated, of course. If I understand correctly, the ENTIRE php file becomes a function, and follows the return. I'll give that a whirl in a little bit.
Wolfy
https://www.facebook.com/groups/oneye/
Currently accepting new users... http://www.OS1.hawkwolf.net
onEye admins: OS1 is a beta testing hotbed. Non-core apps available upon request.
Offline
I still can't seem to get it. I think I'll start with something smaller, I must look for a less complicated php app to try.
Wolfy
https://www.facebook.com/groups/oneye/
Currently accepting new users... http://www.OS1.hawkwolf.net
onEye admins: OS1 is a beta testing hotbed. Non-core apps available upon request.
Offline