Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:59:23 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155533 Posts in 21712 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: EmbedPDF droplet not working on AMASP!  (Read 484 times)
Roych

Offline Offline

Posts: 149



« on: October 05, 2010, 10:19:35 PM »

Hello!

I'we noticed that the EmbedPDF droplet doesn't work anymore in the AMASP library. I need it and cant figure it out how I'm not a coder.

the code in AMASP now is:
Code:
$retval = "";
if (!$height) $height=450;
if (!$width)  $width=690;
$retval .='<center>';
$retval .='    <embed ';
$retval . $height '"';
$retval $width $url '#toolbar='1&navpanes=0&scrollbar=1"'>';
$retval .='    </embed>';
$retval .='</center>';
return $retval;

Wich is not working.

can anybody write down the working code please.

thx in advance
R.
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: October 06, 2010, 12:30:00 AM »

Puuh,

the code is realy messed, here we go:
Code:
$retval = "";
if (!$height) $height=450;
if (!$width)  $width=690;
$retval .= '<center>';
$retval .= '<embed height="'.$height.'" width="'.$width.'" ';
$retval .= 'src="'.$url.'#toolbar="1&navpanes=0&scrollbar=1">';
$retval .= '</embed>';
$retval .= '</center>';
return $retval;

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
Roych

Offline Offline

Posts: 149



« Reply #2 on: October 06, 2010, 09:56:50 AM »

thank you, it works now Wink
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!