I have a print button, and when I click on it, the following JavaScript function should start.
$('.print').click(function(){ var htmlval=$('.pop_reciept').html(); window.open('http://localhost/ccccccc/xxxxxxx/pdf/'+htmlval,'_blank'); });
htmlval contains HTML elements with class pop_reciept , and then pass this to the pdf controller:
public function pdf($val){ echo $val; return false; }
I want the HTML content to display. But this is not so, and instead I see an error
The URI you submitted has illegal characters.
Please help or suggest a better way to do this.
source share