Greetings all,
I would suggest writing two scripts. One for the list of names the second for the display of more information (this one should take an id or something from the first to pull the correct record). Once this is set up then set the first list as links that open a JavaScript window to display the second script and pass in the unique id as a url_param.
below is a JavaScript window opener/reuser I use all the time... it takes an Url, width(of the new window), height(of the new window) as arguments.
<script language="JavaScript">
function newWin(arg,w,h){
if (!(!winup || winup.closed)){
winup.focus();
}
var winup=window.open(arg,'img_data','toolbar=no,resizable=yes,scr
+ollbars=no,width='+w+',height='+h);
winup.focus();
}
</script>
And here is how you call it from your HTML
<a href="javascript:newWin('your_page.pl?your_unique_id=your_unique_id
+_value',your_width, your_height)">Link Text</a>
Explaination:
your_page.pl => the second page you should write for the more information display
your_unique_id=your_unique_id_value => the name of your id parameter and the value you will pass by this name. From the first list of names (and ids)
your_(width|height) => how wide and tall the new window will be.
Of course the other parameters for the JavaScript call
(toolbar=no,resizable=yes,scrollbars=no) are editable as well. But that should be a good start... I hope.
Hope that helps
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.