fodo
02-28-2008, 03:59 PM
1) Script Title: Dynamic Ajax Content
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem:
I would like to insert php variables into the link for this program.
I am getting parse errors. Is what i am doing possible with this script.
I want to load an external page reference from a db into the a href tag as follows
?>
<a href="javascript:ajaxpage('<?php ./$p1',' 'contentarea');"onmouseover="Tip('View Synopsis')"><img src=<?php './images/{$book['pix']}'?> border='0' width='80' height='100'/></a>"
<div id="contentarea"></div>
<?php
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem:
I would like to insert php variables into the link for this program.
I am getting parse errors. Is what i am doing possible with this script.
I want to load an external page reference from a db into the a href tag as follows
?>
<a href="javascript:ajaxpage('<?php ./$p1',' 'contentarea');"onmouseover="Tip('View Synopsis')"><img src=<?php './images/{$book['pix']}'?> border='0' width='80' height='100'/></a>"
<div id="contentarea"></div>
<?php