Hi All,
I eventually tamed Pagination and the Form Class so that it remembers the last Input value (by using a SESSION variable).
Next step I tried was the anchor_popup() and discovered that it was sluggish and also required Java().
Here is the super fast CSS alternative.
a.popjoke div {display:none;}
a.popjoke:hover div
{ display:block; position:absolute;
top:020px; left:200px; z-index:1123;
width:560px; height:520px; overflow:auto;
background:#aff NONE; color:#000;
border:solid #909090 4px; margin:0; padding:0.8em}
The Controller
foreach ($query->result() as $row):
$memo = $this->m_lib->getjoke($row->id);
$data['thejoke'][] = "<a class='popjoke' href='#'>"
.$row->title .' [' .$row->id .']'
."<div> $memo</div></a>";
endforeach;
/* THE SLOW JAVA() EQUIVALENT
foreach ($query->result_array() as $row):
$atts = array(
'width' => '800',
'height' => '600',
'scrollbars' => 'yes',
'status' => 'yes',
'resizable' => 'yes',
'screenx' => '300',
'screeny' => '300',
'title' => $row['title']
);
$data['thejoke'][] = anchor_popup( 'joke/popup/' .$row['id'],
$row['title'] .' [' .$row['id'] .']',
$atts);
*/
View
echo "<div class='bmp' style='line-height:1.8em;'>";
$zebra = false;
foreach($thejoke as $row):
$xxx = $zebra ? 'bgy' : 'bgg';
$zebra = ! $zebra;
echo "<p class='bmp " .$xxx ."'>";
echo br(0) .$row .br(0);
echo '</p>';
endforeach;
I have tested this using IE5, IE7, Modzilla, Firefox, Opera and Maxthon browsers and curious to know if it works on the Mac.
You can see it in action here or try using the bottom Search Text Box.
