Domain Empire

Problem with onclick="printContent

Spaceship Spaceship
Watch
Impact
43
I have used onclick="printContent on one of my pages. It was working before but now i seem to have messed it up, not sure what i have done. Can someone help me out.
Here is the code


<div id="print_div34">
<div class="wrapper">
<div class="five_sixth">
<h2>Recipe</h2>
</div>
<p class="one_third"><strong>4 personer</strong>
100 g meat
Some pepper
</p>
<p class="one_third"><a href="http://www.sample.se/test.jpg"><img class="alignleft size-medium wp-image-0000" style="margin-bottom: 15px;" title="http://www.sample.se/test.jpg" src="http://www.sample.se/test.jpg" alt="" width="225" height="300" /></a></p>
<p class="one_third"></p>

</div>
<div class="wrapper">
<p class="three_fifth">lorem ipsum, dolor lore, lorem ipsum, dolor lore, lorem ipsum, dolor lore

</div>
</div>
<a onclick="printContent('print_div34')" href="#null">click to print</a>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
oberheimer
This doesn't really help anyone on how to figure out your issue, it would be more useful if you could post a link to the site you're having this issue with or describe more precisely what the problem is.

But the first thing i would do maybe, would be to check if that function "printContent" is defined (exist) somewhere in your page.

It will mostly like be some where between the
HTML:
<head></head>
section and inside the
HTML:
<script>
tag.
 
0
•••
I have used onclick="printContent on one of my pages. It was working before but now i seem to have messed it up, not sure what i have done. Can someone help me out.

<a onclick="printContent('print_div34')" href="#null">click to print</a>

What should the printContent function do? Can you post the whole script with the function included.
 
0
•••
i tried to sort out your issue but i did not get your exact question .please upload complete script then i will let you know the problem.
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back