PDA

View Full Version : Dynamic Ajax Content (loading 2 files at once)



MrH2o
02-22-2007, 09:13 AM
1) Script Title: Dynamic Ajax Content

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

3) Describe problem: I use this script for showings stores on my map. Since some dots are to close to eatchother I choosed to load a HTML file wich let you choose the specific store (It loads in a separate div, lets call it div 1) and if the dot are alone it loads in another div (div 2).

It works fine until you press the alone dot again, beacuse the div 1 still shows the many stores and I don't want that. Its kinda hard to explain so please take alook yourself.

http://www.lagerhaus.se/var-arbete2.html

As you can see I've allready tried to load 2 files into diffrent divs at the same time

javascript:ajaxpage(rootdomain+'/butiker/boras.html', 'butik', rootdomain+'/butiker/sthlmomrade.html', 'butiker');">

But that dosen't work.

If you dont understand what I mean, press a single dot first, then one area with multiple dots and notice how you get the choise of selecting your store, then press on the single dot again and you'll see that the choise is still there, and I want it to go blank.


Really thankful for any help.

Offtopic: Is this script a good choise instead of all the hidden divs I'am doing today? (see: www.lagerhaus.se ) or is there a smarterway?

Best regards

/H2o