When clicking on the "Print Ticket" button Javascript is throwing an syntax error in firebug indicating "Expected expression, got end of script" However this is a straight forward bit of php/javascript code so i'm at a loss for the syntax problem. This button is not addressed by any Jquery function and I don't see any conflicting single/double quotes???

echo "<div style='height:550px; width:900px;' id='btarget'><div id='tcontrol'>"; if ($var1v!=="Paid" && $_SESSION['tickstatus']!=="Closed,Complete") {echo "<input name='reschtick' id='reschtick' type='button' value='RESCHEDULE' /><input name='closetick' id='closetick' type='button' value='CLOSE TICKET' />";} echo $varv1; echo '<input type="button" value="PRINT TICKET" onclick="http://www.thetargetdomain.com/ops/includes/pdfconveview.php?dispinv='.$_GET[vtick].'&action=eview" />'; echo "</div> If I view this in source i get:
<input type="button" onclick="http://www.thetargetdomain.com/ops/includes/pdfconveview.php?dispinv=06151205&action=eview" value="PRINT TICKET"> if I enter in the SRC url as shown above directly into the browser it works fine. It just has some issue with triggering from the button click.
onclickdoesonclickattribute does not work. Perhaps you want to use an<a>tag and assign an URL to thehrefattribute? The onclick attribute expects Javascript code.