I am using php.
function as_pdf_link( $strContent )
{
global $wp_query;
$strHtml = '
<div id="aspdf">
<a href="' . get_bloginfo('wpurl') . '/wp-content/plugins/as-pdf/generate.php?post=' . $wp_query->post->ID .'">
<span>' . stripslashes( get_option( 'as_pdf_linktext' ) ) . '</span>
</a>
</div>';
return $strContent . $strHtml;
}
When user clicks link, generate.php will be processed.
I would like to show the result returned from these PHP code with new window using javascript.
How should I do for this?