hey guys i am trying to add iframe in daycare so i am trying to get the links of daycare pets to pop up in an iframe on the page when clicked so help me guys
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);
}