Mmm, I tried that, but I don't think I'm using it correctly since it always returns "this is the Iframe class" instead of an iframe... this is used to build an iframe right?
I tried changing the code to this:
PHP Code:
for($column = 0; $column < $daycare->getTotalColumns(); $column++){
$target = "iframe";
$adopt = new OwnedAdoptable($adopts[$index]);
$image = new Link("levelup/click/{$adopt->getAdoptID()}", $adopt->getImage("gui"), TRUE);
$image->setTarget($target);
$stats = new Comment($daycare->getStats($adopt));
$daycareCell = new TCell(new ArrayObject(array($image)), "cell{$index}");
$message1 = "<iframe name='{$target}' src='levelup/click/{$adopt->getAdoptID()}'></iframe>";
$daycareCell->setAlign(new Align("center", "center"));
$daycareRow->add($daycareCell);
$index++;
if($index == $total) break;
This shows on the page: Welcome to Daycare Center, here you can help with the growth of these cute baby adoptables.
The link target is invalid...
I also tried this and go the same message:
PHP Code:
for($column = 0; $column < $daycare->getTotalColumns(); $column++){
$adopt = new OwnedAdoptable($adopts[$index]);
$image = new Link("levelup/click/{$adopt->getAdoptID()}", $adopt->getImage("gui"), TRUE);
$stats = new Comment($daycare->getStats($adopt));
$daycareCell = new TCell(new ArrayObject(array($image)), "cell{$index}");
$iframe = new IFrame($name = "iframe", $src = "levelup/click/{$adopt->getAdoptID()}", $width = "", $height = "", $event = "");
$image->setTarget($name);
$daycareCell->setAlign(new Align("center", "center"));
$daycareRow->add($daycareCell);
$index++;
if($index == $total) break;
}
$daycareTable->add($daycareRow);
}