Hi, I have a problem in a page with an iframe. I loaded several different iframe using links in the parent page, but every time the number of page in the floatbox gallery increases of the iframe floatbox item.
How can i reset the floatbox data every times the page is loading ???
regards and thanks for this fantastic tool!
Floatbox and iframe
Page: 1
Author | Post |
---|---|
m0lid3us
|
#1 Mon Mar 16, 2009 5:52 pm
|
Guest | |
#2 Mon Mar 16, 2009 6:10 pm
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
Two approaches.
The first is to give the rel attributes different values on the different iframe pages. For example, the ones on the first iframe could be grouped with rel="floatbox.1" and the second could have rel="floatbox.2", etc. The second approach would be to execute the javascript statement fb.anchors.length=0; prior to loading the new iframe. This will clear out floatbox's entire collection of "tagged" anchors, including any on your base page. |
m0lid3us
|
#3 Mon Mar 23, 2009 6:30 pm
|
Guest |
Many thanks! the second approaches is better because there are less page to modify :-D
|
Page: 1