AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PHP embed problem

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript
View previous topic :: View next topic  
Author Message
Penelope Baker
Guest





PostPosted: Thu Jun 15, 2006 9:00 pm    Post subject: PHP embed problem Reply with quote



// New popup funstuff

function _cpg_link_href_popup($image) {
global $cpg_base;
$width=$image->pwidth+20;
$height=$image->pheight+20;
$desc=$image->caption;
$title=$image->title;
if (cpg_is_image($image)) {
return
"javascript:void(mywindow=window.open('','mywindow','toolbar=no,status=no,re
sizable=yes,width={$width},height
={$height}'));mywindow.document.write('<html><head><title>{$title}</title></
head><body bgcolor=#ffeedd><img src="{$cpg_base}dis
playimage.php?pid={$image->pid}&fullsize=1"><br
/><br/>{$desc}</body></html>');mywindow.document.close();";
} else {
$uri=cpg_urlencode(_cpg_get_image_uri($image));
return "javascript:void(window.open('$uri'));";
}
}


This returns exactly what it looks like it should...except the image is
broken. If I look at the source, it looks exactly like it should, and I can
copy/paste it into a new browser window and get the image I'm looking for.
I've tried messing with leaving the quotes, using single quotes, not using
them at all, leaving the question mark in the php? call, etc.

The title and desc variables work just fine.

I cannot figure out what's broken here. Can anyone help?

Thank you!

Peace,
Pen
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.javascript All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.