View Full Version : Using switch content script with PHP

11-02-2006, 10:58 AM
1) Script Title: Switch Content Script

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/switchcontent.htm

3) Describe problem:

Hi all,

I am trying to use the script in combination with PHP and functions.

normaly using PHP wouldn't be a problem, but when you do this:

<div onClick="expandcontent(this, 'sc1')" style="cursor:hand; cursor:pointer">Lopende projecten:</div>
<div id="sc1" class="switchcontent">
echo $this->actief( $this->checkedov );

It doesn't just take the function "actief" but the rest of the page as well.

and when i insert more of these buttons to create more expandable content i have to open the first on first to use the second one and so on.

is there anyone with a solution to this?

thanks in advance.

11-13-2006, 04:37 AM
im trying to do the same thing. Anyone have any input.