View Single Post
  #7  
Old 06-22-2014, 08:14 AM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 22,923
IntoRain is on a distinguished road
Default

Setting the target to the iframe is putting a target='iframe_name' in your links. Does the setTarget you use exist? Since this is 1.3.3 I can't really test it x.x But in 1.3.4, instead of using the Link object I used HTML in a Comment object. Not sure if this would work in 1.3.3

PHP Code:
for($row 0$row $daycare->getTotalRows(); $row++){
            
$daycareRow = new TRow("row{$row}");
            for(
$column 0$column $daycare->getTotalColumns(); $column++){
                
$adopt = new OwnedAdoptable($adopts[$index]);
                
$cell = new ArrayList;
                
$cell->add(new Comment("<a href='/levelup/click/{$adopt->getAdoptID()}' target='iframe'><img src='{$adopt->getImage()}'></a>"));
                
$cell->add(new Comment($daycare->getStats($adopt)));
                
$daycareCell = new TCell($cell"cell{$index}");
                
$daycareCell->setAlign(new Align("center""center"));
                
$daycareRow->add($daycareCell);
                
$index++;
                if(
$index == $total) break;
            }
            
$daycareTable->add($daycareRow);            
        }
        
        
$document->add($daycareTable);
        
$document->add(new Comment("<iframe name='iframe' src=''></iframe>")); 
__________________


asp.net stole my soul.
Reply With Quote