[PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
Currently, I have a Link to show a PDF file

? print('Click a href=' . $url . $sfyc_race_schd_send . ' Name=Race 
Schedule Target=_blankhere/a to open the Race Schedule'); ?

I want to replace it with a button and an OnClick()

?
  print('input type=button name = View Schedule OnClick=');
?
I cannot get the syntax correct for the OnClick.  Is this the best way 
to use a button for the task?

Todd

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


Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread John Nichel
Todd Cary wrote:
Currently, I have a Link to show a PDF file

? print('Click a href=' . $url . $sfyc_race_schd_send . ' Name=Race 
Schedule Target=_blankhere/a to open the Race Schedule'); ?

I want to replace it with a button and an OnClick()

?
  print('input type=button name = View Schedule OnClick=');
?
I cannot get the syntax correct for the OnClick.  Is this the best way 
to use a button for the task?

Todd

Since this is a PHP mailing list, my JavaScript may be a bit off

input type=button name=View Schedule 
onClick=JavaScript:document.location=?php echo ( $url ); ? /

--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread John Nichel
John Nichel wrote:
Todd Cary wrote:

Currently, I have a Link to show a PDF file

? print('Click a href=' . $url . $sfyc_race_schd_send . ' 
Name=Race Schedule Target=_blankhere/a to open the Race 
Schedule'); ?

I want to replace it with a button and an OnClick()

?
  print('input type=button name = View Schedule OnClick=');
?
I cannot get the syntax correct for the OnClick.  Is this the best way 
to use a button for the task?

Todd

Since this is a PHP mailing list, my JavaScript may be a bit off

input type=button name=View Schedule 
onClick=JavaScript:document.location=?php echo ( $url ); ? /

And it was off

input type=button name=View Schedule 
onClick=JavaScript:document.location=?php echo ( $url ); ? /

Damn adding extra quotes.

--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
You were close enough...this works:

input type=button value=View Schedule 
onClick=JavaScript:document.location='?php echo ( $url . 
$sfyc_race_schd_send ); ?'

The next challenge is to create a new window and display the file.

Todd

John Nichel wrote:

Todd Cary wrote:

Currently, I have a Link to show a PDF file

? print('Click a href=' . $url . $sfyc_race_schd_send . ' 
Name=Race Schedule Target=_blankhere/a to open the Race 
Schedule'); ?

I want to replace it with a button and an OnClick()

?
  print('input type=button name = View Schedule OnClick=');
?
I cannot get the syntax correct for the OnClick.  Is this the best way 
to use a button for the task?

Todd

Since this is a PHP mailing list, my JavaScript may be a bit off

input type=button name=View Schedule 
onClick=JavaScript:document.location=?php echo ( $url ); ? /

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