[eluser]John_Betong_002[/eluser]
I have dug myself into a deep hole and now trying to climb out by trying to reduce the size of the displayed page
Problem
I have a page that displays a couple of thousand anchor_popup() links each duplicating the following code:
Code:
<?php
echo anchor_popup('url_001','url_title_001',$atts);
?>
// expands to
<a
href='java-script:void(0);'
onclick="window.open('http://mysite.com/popup/url_001.html', '_blank',
'width=800,height=600,scrollbars=yes,status=no,resizable=yes,screenx=200,screeny=100');"
>
url_title
</a>
... repeated a couple of thousand times :(
[/b]Question[/b]
Is it possible to replace the above code with:
Code:
<a href='#' onclick='fn_call_popup('url_001')'>
url_title_001
</a>
// should not expand and thus considerably reduce the page size.
I have tried writing the javascript function
fn_call_popup('url_001.html'); and ran into problems. I would like confirmation that it is possible before further attempts at trying to get it to do what I want it to do.