Ogzille's Posts
Nairaland Forum › Ogzille's Profile › Ogzille's Posts
1 2 3 4 5 6 7 8 ... 31 32 33 34 35 (of 35 pages)
You can use the stylesheet solution as the previous guy mentioned, but if u must have a button then use this: Add an iframe to the page, set the size to the minimum possible size or set display to none. On the onclick event of the print button add this function function printDiv(pd, frame) { var copyto = document.getElementById(frame); var content = document.getElementById(pd).innerHTML; var doc = (copyto.contentWindow || copyto.contentDocument); if (doc.document) { doc = doc.document; } doc.write("<head><title>your page title</title></head><body onload='this.focus(); this.print();'>" + content + "</body>" ;doc.close(); } argument 1: pd is the id of the element u want to print its content and frame is the id of the iframe. You can change he values to suit. Hope it helps. |
If you want to get the job done call 07066839654 |
i can create an efficient ajax driven chat 4 u, drop a reply 4 m if interested |
i think u should run a loop and check d textboxes for content using d normal if statement. which alng are u using? |
I am a good PHP/MySQL programmer and have done some good jobs. U can reach me on 07066839654 for further discussions. |
this should b ur server side script $file="company_logo/".$rand.basename($_FILES["logo"]["name"]); move_uploaded_file($_FILES["logo"]["tmp_name"],$file); logo is the name of ur browse button, $file is what u store in ur db, company_logo is the folder u are uploading to. Hope it helps |
;