PDA

View Full Version : combine overlapping content script w/ ajax mysql php



rweinstein
12-17-2007, 03:58 AM
1) Script Title: dropdown/ overlappingcontent script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm

3) Describe problem: Hello...This script is so great and I'd love to use it. But I need to populate my dropdowns with dynamic content. Can this script be combined w/ ajax to gather dynamic content? Or is there an alternate script you'd recommend?

Thanks!
Rachel W.

ddadmin
12-17-2007, 08:23 AM
Sure, try the below modified dropdowncontent.js. Then, for the drop down content you wish for its contents to be fetched via Ajax instead, the anchor link for it would look like this:


<p>Demo #1: <a href="http://www.dynamicdrive.com/forums/" id="searchlink" rel="subcontent" rev="test.htm">Search DD</a></p>

In other words, throw in a "rev" attribute pointing to the file name on your server. If this attribute is detected, the script will fetch "test.htm" and load it inside the drop down content with ID "subcontent".

rweinstein
12-18-2007, 02:01 PM
Thanks!

I will try this solution in the next few days and get back to you.

-Rachel