Re: [PHP] Java Script or PHP

2004-07-29 Thread Skippy
Quoting Curt Zirzow [EMAIL PROTECTED]:
  What is the correct way to open the page from the print link to a new
  page?
 
 @media print {
   .css {
 its: all here;
   }
 }

Yeah, but sometimes you want the print version to be more nifty, like
have all the pages in an article instead of just the current page.
That calls for some server-side work AND a specific print-only CSS.

-- 
Romanian Web Developers - http://ROWD.ORG

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Java Script or PHP

2004-07-28 Thread Karl-Heinz Schulz
I have a database generated page and I want to show a Print Version in a
new window when somebody selects the print option.

http://www.test.com/docs/view_record.php?id=1

http://www.test.com/docs/print_record.php?id=1

What is the correct way to open the page from the print link to a new
page?

TIA



Tracking #: BF4D827C022BDF46A46EC4E1BF3527362158E8A1

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Java Script or PHP

2004-07-28 Thread zareef ahmed

--- Karl-Heinz Schulz [EMAIL PROTECTED] wrote:

 I have a database generated page and I want to show
 a Print Version in a
 new window when somebody selects the print option.
 
 http://www.test.com/docs/view_record.php?id=1
 
 http://www.test.com/docs/print_record.php?id=1
 
 What is the correct way to open the page from the
 print link to a new
 page?

To Open a New Window you can use javascript
window.open or just set target=_blank in your anchor
tag (a).

But you may need to adjust the properties of new
windows like status bar, toolbar, width, height; for
this you can use java script.

PHP Can not do client side programming...


zareef ahmed


 
 TIA
 
 
 
 Tracking #: BF4D827C022BDF46A46EC4E1BF3527362158E8A1
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Java Script or PHP

2004-07-28 Thread Karl-Heinz Schulz
Zareef,

Thank you for the reply but I may was not very clear.

I don't know how to pass the record id from the view_record?id=1 to
print_record?=whateverTheViewRecordId was.

Karl-Heinz 

-Original Message-
From: zareef ahmed [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 28, 2004 11:03 PM
To: Karl-Heinz Schulz; [EMAIL PROTECTED]
Subject: Re: [PHP] Java Script or PHP


--- Karl-Heinz Schulz [EMAIL PROTECTED] wrote:

 I have a database generated page and I want to show
 a Print Version in a
 new window when somebody selects the print option.
 
 http://www.test.com/docs/view_record.php?id=1
 
 http://www.test.com/docs/print_record.php?id=1
 
 What is the correct way to open the page from the
 print link to a new
 page?

To Open a New Window you can use javascript
window.open or just set target=_blank in your anchor
tag (a).

But you may need to adjust the properties of new
windows like status bar, toolbar, width, height; for
this you can use java script.

PHP Can not do client side programming...


zareef ahmed


 
 TIA
 
 
 
 Tracking #: BF4D827C022BDF46A46EC4E1BF3527362158E8A1
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Java Script or PHP

2004-07-28 Thread zareef ahmed

--- Karl-Heinz Schulz [EMAIL PROTECTED] wrote:

 Zareef,
 
 Thank you for the reply but I may was not very
 clear.
 
 I don't know how to pass the record id from the
 view_record?id=1 to
 print_record?=whateverTheViewRecordId was.

 
Consider it

$id=select id from database

?php
print a
href='http://www.test.com/docs/view_record.php?id=.$id.;'
target='_blank' click tio print /a;
?

or you may write javasctipt function too.

zareef ahmed

 Karl-Heinz 
 
 -Original Message-
 From: zareef ahmed [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 28, 2004 11:03 PM
 To: Karl-Heinz Schulz; [EMAIL PROTECTED]
 Subject: Re: [PHP] Java Script or PHP
 
 
 --- Karl-Heinz Schulz [EMAIL PROTECTED]
 wrote:
 
  I have a database generated page and I want to
 show
  a Print Version in a
  new window when somebody selects the print option.
  
  http://www.test.com/docs/view_record.php?id=1
  
  http://www.test.com/docs/print_record.php?id=1
  
  What is the correct way to open the page from
 the
  print link to a new
  page?
 
 To Open a New Window you can use javascript
 window.open or just set target=_blank in your
 anchor
 tag (a).
 
 But you may need to adjust the properties of new
 windows like status bar, toolbar, width, height; for
 this you can use java script.
 
 PHP Can not do client side programming...
 
 
 zareef ahmed
 
 
  
  TIA
  
  
  
  Tracking #:
 BF4D827C022BDF46A46EC4E1BF3527362158E8A1
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit:
 http://www.php.net/unsub.php
  
  
 
 
 =
 Zareef Ahmed :: A PHP Developer in Delhi(India).
 Homepage :: http://www.zasaifi.com
 
 
   
 __
 Do you Yahoo!?
 New and Improved Yahoo! Mail - Send 10MB messages!
 http://promotions.yahoo.com/new_mail 
 
 
 


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com



__
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Java Script or PHP

2004-07-28 Thread Curt Zirzow
* Thus wrote Karl-Heinz Schulz:
 I have a database generated page and I want to show a Print Version in a
 new window when somebody selects the print option.
 
 http://www.test.com/docs/view_record.php?id=1
 
 http://www.test.com/docs/print_record.php?id=1
 
 What is the correct way to open the page from the print link to a new
 page?

@media print {
  .css {
its: all here;
  }
}


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Java Script or PHP

2004-07-28 Thread Karl-Heinz Schulz
Thank you for your help.

-Original Message-
From: zareef ahmed [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 28, 2004 11:25 PM
To: Karl-Heinz Schulz
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Java Script or PHP


--- Karl-Heinz Schulz [EMAIL PROTECTED] wrote:

 Zareef,
 
 Thank you for the reply but I may was not very
 clear.
 
 I don't know how to pass the record id from the
 view_record?id=1 to
 print_record?=whateverTheViewRecordId was.

 
Consider it

$id=select id from database

?php
print a
href='http://www.test.com/docs/view_record.php?id=.$id.;'
target='_blank' click tio print /a;
?

or you may write javasctipt function too.

zareef ahmed

 Karl-Heinz 
 
 -Original Message-
 From: zareef ahmed [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 28, 2004 11:03 PM
 To: Karl-Heinz Schulz; [EMAIL PROTECTED]
 Subject: Re: [PHP] Java Script or PHP
 
 
 --- Karl-Heinz Schulz [EMAIL PROTECTED]
 wrote:
 
  I have a database generated page and I want to
 show
  a Print Version in a
  new window when somebody selects the print option.
  
  http://www.test.com/docs/view_record.php?id=1
  
  http://www.test.com/docs/print_record.php?id=1
  
  What is the correct way to open the page from
 the
  print link to a new
  page?
 
 To Open a New Window you can use javascript
 window.open or just set target=_blank in your
 anchor
 tag (a).
 
 But you may need to adjust the properties of new
 windows like status bar, toolbar, width, height; for
 this you can use java script.
 
 PHP Can not do client side programming...
 
 
 zareef ahmed
 
 
  
  TIA
  
  
  
  Tracking #:
 BF4D827C022BDF46A46EC4E1BF3527362158E8A1
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit:
 http://www.php.net/unsub.php
  
  
 
 
 =
 Zareef Ahmed :: A PHP Developer in Delhi(India).
 Homepage :: http://www.zasaifi.com
 
 
   
 __
 Do you Yahoo!?
 New and Improved Yahoo! Mail - Send 10MB messages!
 http://promotions.yahoo.com/new_mail 
 
 
 


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com



__
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com

Tracking #: 0A7561E8C74AB546BCE0A89F73ECA4D2A3FDFA95

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php