Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Ajax Clear the print button after onclicking the print

Have Programming Question? Ask it here!
 
 
 


indu
Clear the print button after onclicking the print
1 Answer(s)      5 years and 3 months ago
Posted in : Ajax



Advertisement
View Answers

May 8, 2009 at 2:41 PM


Hi Friend,

We have already provided the solution to your problem. Please check the full code.

var disp_setting="toolbar=no,location=no,directories=no,menubar=n0,";
disp_setting+="scrollbars=yes,width=700, height=330,left=300,top=325";
var rate_print=window.open("","",disp_setting);
rate_print.document.open();
rate_print.document.writeln('<html><head><title>Inside Jsp </title>');
rate_print.document.writeln('</head><body bgcolor="#b8f8f7"><center>');
rate_print.document.writeln("<table align='center' cellspacing='0' border='1' bordercolor='#000000' style='border-collapse:collapse' width='100%' id='viewparticipant'>");
rate_print.document.writeln("<tr>");
rate_print.document.writeln("<th class='tstyle'>S.NO</th>");
rate_print.document.writeln("<th class='tstyle'>Vendor Name</th>");
rate_print.document.writeln("<th class='tstyle'>Address</th>");
rate_print.document.writeln("<th class='tstyle'>Quantity</th>");
rate_print.document.writeln("<th class='tstyle'>Size</th>");
rate_print.document.writeln("<th class='tstyle'>Rate</th>");
rate_print.document.writeln("<th class='tstyle'>Date</th>");
rate_print.document.writeln("</tr>");
for(var i=0,j=1;i<9;i=i+1,j++)
{
rate_print.document.writeln("<tr>");
rate_print.document.writeln("<td valign='center' align='center'> "+j+"</td>");
rate_print.document.writeln("<td valign='center' align='left'>"+"Amit"+" </td>");
rate_print.document.writeln("<td valign='center' align='left'>"+"Kumar"+" </td>");
rate_print.document.writeln("<td valign='center' align='right'>"+"22"+" </td>");
rate_print.document.writeln("<td valign='center' align='right'>"+"22m"+" </td>");
rate_print.document.writeln("<td valign='center' align='right'>"+"32423423"+" </td>");
rate_print.document.writeln("<td valign='center' align='center'>"+"fsdjfjsdf"+" </td>");
rate_print.document.writeln("</tr>");
}/**end of the for loop*/
rate_print.document.writeln("</table>");
rate_print.document.writeln("<br>");
rate_print.document.writeln("<input id='ok' type='button' value='Ok' class='blackbuttonlow' tabindex='1' onclick='window.close()'> ");
rate_print.document.writeln("&nbsp&nbsp&nbsp");


rate_print.document.writeln("<input type='button' value='Print' tabindex='1' onClick='this.style.visibility=\"hidden\"; window.print();'/>");

rate_print.document.writeln('</center></body></html>');
rate_print.document.close();
rate_print.focus();

We hope that this will help you a lot.

Thanks
RoseIndia Team


Related Tutorials/Questions & Answers:
Clear the print button after onclicking the print - Ajax
Clear the print button after onclicking the print  var disp_setting... correct answer.... pls clear the print and ok button when after onclicking..., this is my script using for creating table. see print button onclick function
Clear the print button after onclicking the print - JSP-Servlet
Clear the print button after onclicking the print  rate... the printbutton image when after onclicking the print button....  Hi Friend, To clear the button on clicking it, use the following code
Advertisements
print form information when click on print button
print form information when click on print button   Sir,I desingn institute webside using jsp and strut by using platform netbean 7.2.So request you please help for printing form information by clickin print button after submit
print
print  How to print JFrame All Componant?   Please visit the following link: http://www.roseindia.net/java/example/java/swing/Print.shtml
Print
into the stream and, as opposed to print() method, gets you to the new line after the text
how to print a new line after a certain number of prints
how to print a new line after a certain number of prints  How do I make this program print the inputs the user gives 5 per line? So in other words I want the program to print 5 input numbers per line. this is my code so far
Print the document
();} } </script> <input type="button" value="Print this page" onclick...Print the document  I tried to print web page.I am using the below...() { var printWindow = window.open('test', 'Print Window', 'height=600,width
Print the document
();} } </script> <input type="button" value="Print this page" onclick...Print the document  I tried to print web page.I am using the below...() { var printWindow = window.open('test', 'Print Window', 'height=600,width
print a form of *
print a form of *   * *** ***** ******* ********* ******* ***** *** *   Post the format properly
print the newline
print the newline  Why doesn?t the following code print the newline properly? <?php $str = ?Hello, there.\nHow are you?\nThanks for visiting.?; print $str; ?>   Hi friends, Inside the single quotes \n (newline
print numbers
print numbers  1234 123 12 1234   1234 123 12 1234
print the sequence
print the sequence  how can I write the code by using for loop to produce this following statement: 10,9,8,7,6,5,4,3,2,1,buzz! please, help me
date print
date print  how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012
date print
date print  how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012
Print a statement
Print a statement  hello what would we output for this statement System.out.println ("5"+"A" + 3);   hello output will be 5A3
diamond print
diamond print   print the pattern 1 2 3 4 5 6 7 8 9 10 11 12
print initials
print initials  How to print initials of a name without using arrays?   Hi Friend, You can try the following code: import java.util.*; public class InitialName { public static void main(String[] args
Print command
Print command  Can I use System.out.println command in Struts form bean or Struts action class. I am using Struts 1.3.8 but when I write this command. It does not work. Please reply me as soon as possible. Thanks.   
To print initials
To print initials  import java.util.Scanner; class initials { String a ; int e ; char f ; int b ; int c ; char d; Scanner sc = new Scanner(System.in); void main
should print in console
should print in console  
How to print this in java?
How to print pattern in Java?  How to print a particular pattern... and click the button that consists of binary number 0 and 1 from the text editor.    How to print this in java
Print Form - Java Beginners
Print Form  Hello Sir I have Created Admission Form when user fills data and submit that data to access database,then when i Click on PRINT Button I want to get Print of that forms Contents,How I can Do it with JAVA SWING,plz
print square of any number
print square of any number  using c++ language, write aprogram to print the square of any number entered by the user
how to print the server time
how to print the server time  how to print the server time in jsp and update time in fix interval
echo and print statement
echo and print statement  hello, What is the difference between echo and print statement
echo and print statement
echo and print statement  hello, What is the difference between echo and print statement?   hii, echo() can take multiple expressions, Print() cannot take multiple expressions. And echo is a little bit faster
How to design a foot print on the sand, print on the sand, print
How to design a foot print on the sand       You might have seen foot prints on the sand field. Do you think, it can be design in the photoshop, yes I have done here. I have used
How to print this Format exactly?
How to print this Format exactly?   * * * & reverse
Print the following format
Print the following format  how to print the following format given string "00401121" in java 0-** 1-* 2-* 3- 4
Online Print Templates - WebSevices
Online Print Templates  I am a manager and my mandate is to build... an interactive print templates for our clients. Here are the specs. - We will design print templates on our website total of 200 artworks - Clients will input data
noise during print screen
noise during print screen  hi there, i have a java program which can print screen every 1 seconds... but during the print screen, the image seems will have some noise and ends up half page of the image will be black screen
print variable in iphone
print variable in iphone  how can i print a variable in iphone????   hello,, if you want to print a variable in objective C if integer then int i=3; NSLog(@"%d",i); if string then NSSting *str; NSLog(@"%@",str
how to print the server time
how to print the server time  i want to print database time in clintside and update time in every secound without creating connection to database for each time. how can i do
print word with max vowels
print word with max vowels  if suppose i hava entered a sentence and in that sentence i have to print a word which has maximum vowels in it.... i have tried it but i am not getting it...please help
write a program to print
write a program to print   write a program to print following 1 2 3 4 5 4 3 2 1 1 2 3 4 4 3 2 1 1 2 3 3 2 1 1 2 2 1 1 1
print the below pattern
print the below pattern  to write a program using a function ti initialize a character 'A' and print the following pattern of characters upto six lines A A B A B C A B C D A B C D E A B C D E F
program to print total marks
program to print total marks  program to input total marks out of 600 marks as an argument and print the stream allotted using the following criteria 401 & above - PCM 301-400 - ZBC 201-300- Commerce 101-200 - Arts
print hello n hi
print hello n hi  how to write a java program that prints "hello" 5 times, "hi" 1 time n again "hello" 4 times..?? do reply
Application for print pyramid of numbers
Application for print pyramid of numbers  What is the code for printing the numbers like 1 1 1 1 2 2 1 1 3 4 3 1 1 4 7 7 4 1
C program to print the following
C program to print the following  Hello, Some one help me with a "C Program" to print the following as output: 4444444 4333334 4322234 4321234 4322234 4333334 4444444 // for input 4. And also
A Program To Print A Equilateral Triangle
A Program To Print A Equilateral Triangle  Write A program to Print Following In Java : 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Java Print Dialog
Java Print Dialog  Using java.awt.print.PrinterJob and javax.print.attribute.PrintRequestAttributeSet. I call .printDialog(ps) and the standard print dialog is displayed with options preset to my chosen attributes. Now I can
how to print - Java Beginners
how to print  how to print something on console without using System.out.print() method ?  Hi Friend, You can use PrintWriter to write anything on the console. import java.io.*; public class Print{ public static
print rectangle pattern in java
print rectangle pattern in java  * * * * * * * how to generate this pattern in java??   Hi friend try this code may this will helpful for you public class PrintRectangle { public static void main
how to print the following pattern
how to print the following pattern  Hello hEllo heLlo helLo hellO pls reply soon its an emergency   class StringPattern { public static void main(String[] args) { String st="hello
print numbers in traingle shape
print numbers in traingle shape  1 22 333 4444 i want output like this please help me   class Pyramid { public static void main(String[] args) { for(int i=1;i<=4;i++){ for(int j=1;j<
print the following series
print the following series  a b c d e b c d e c d e d e e   Hi Friend, Try the following code: class StringPattern { public static void main(String[] args) { String st="abcde
Print in a long paper - Java Beginners
Print in a long paper  how to print text in long paper?? each print text, printer stops. not continue until the paper print out. Thanks
print array in following format
print array in following format  i want print two array in following format first array= 1,2,3,4,5,6,7,8,9 second array=11,12,13,14,15,16,17,18,19 i want output as: 1 2 3 11 12 13 4 5 6 14 15 16 7 8 9 17 18 19  
how to print pdf format
how to print pdf format  Hi every body iam doing school project iam using backend as oracle front end java .how to print student marks list /attendence in pdf format. please help me. thanks in advance.   Here
Advertisements
 

 

 

DMCA.com