macromedia.dreamweaver.appdev
[Top] [All Lists]

Re: show hide region behavior triggered by repeated recordset image

Subject: Re: show hide region behavior triggered by repeated recordset image
From: David Powers <david@xxxxxxxxxxx>
Date: Thu, 31 Jul 2008 20:57:26 +0100
Newsgroups: macromedia.dreamweaver.appdev


aonefun wrote:
Is there something different that needs to be done in my case of repeated region image other than the standard procedure?

Behaviors, such as show/hide, rely on each element having an ID. If you use a repeat region, you have probably ended up with the same ID being repeated many times, which is why it doesn't work. An ID *must* be unique. It can be used only once on a page.

If you want to create unique IDs in a repeat region, you need to use your server-side language to add a number to the end of each ID. How you do it depends on which language you're using.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

<Prev in Thread] Current Thread [Next in Thread>