logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-31-2012, 08:08 AM   #1
Steve87
 
Join Date: Jan 2012
Posts: 4
Post Create printing option to a web page

Hi there,

I am sorry if I am in the wrong section. I am currently on a project and I am requested to work on the university educational portal/website.

I need to create a printing option on a student transcript page to enable the administrator of the portal to print the transcript. I can hardly look for the appropriate way/method to do that. I am working on the PHP and MYSQL for the portal.

Anyone know where to get the proper procedure for that? Thanks in advance.
Steve87 is offline   Reply With Quote
Old 01-31-2012, 08:19 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

with javascript maybe

http://www.htmlgoodies.com/beyond/ja...JavaScript.htm
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 01-31-2012, 11:04 AM   #3
Steve87
 
Join Date: Jan 2012
Posts: 4
Default

I did encounter problem when I try to add in a line of the code:

<A HREF="javascript:window.print()">Print This Result</A>

In the preview of the web page, i did see the hyperlink of
Print This Result and I click it.

It link me to a web page says "Not Found The requested URL /Mentor Mentee System/javascript.window.print() was not found on this server"

How to solve this?
Steve87 is offline   Reply With Quote
Old 02-01-2012, 02:17 PM   #4
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

It's not a link, don't put the JavaScript in the HREF attribute.

Also, it is required that the browser has JavaScript enabled.
domedia is offline   Reply With Quote
Old 02-22-2012, 01:10 AM   #5
mohanraaj
mohanraaj's Avatar
 
Join Date: Feb 2012
Location: chennai, India
Posts: 5
Cool hi steve

Quote:
Originally Posted by Steve87 View Post
I did encounter problem when I try to add in a line of the code:

<A HREF="javascript:window.print()">Print This Result</A>

In the preview of the web page, i did see the hyperlink of
Print This Result and I click it.

It link me to a web page says "Not Found The requested URL /Mentor Mentee System/javascript.window.print() was not found on this server"

How to solve this?
You dont have to use the javascript in HREF. just try this one

<A HREF="" onClick="javascript:window.print()">Print This Result</A>

this will help you...
mohanraaj is offline   Reply With Quote
Old 02-22-2012, 09:51 AM   #6
Steve87
 
Join Date: Jan 2012
Posts: 4
Default

Thanks everyone for replies, I manage to solve my problem. Many thanks
Steve87 is offline   Reply With Quote
Old 02-22-2012, 03:16 PM   #7
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

How did you do it Steve?
Quote:
Originally Posted by Steve87 View Post
Thanks everyone for replies, I manage to solve my problem. Many thanks
domedia is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:00 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com