I have a page that I'm using floatboxes from 5 links.
3 of the links bring up forms that email the author of the postings/email links of the posting to a friend/flag the posting as violating the TOU.
These 3 forms do not change the content of the parent page.
2 other forms actually change the page. 1 allows you to add a comment to the posting. The other allows the comment author to update/delete the comment, both of which changes the display content of the parent so I need to refresh the parent when they close.
I finally figured out how to do that using refreshOnClose which works great.
Now I wish I could be selective on the refresh as when closing any of the first 3 instances above causes an unnecessary [and ugly] page refresh.
Is there any way I can set a flag in the parent from the floatbox to notify the parent when to refreshOnClose and when not to?
How do I refresh the parent from only certian floatbox links?
Page: 1
Author | Post |
---|---|
#1 Sun Dec 28, 2008 4:33 am
|
|
Member
Registered: Dec 2008
Posts: 12
|
|
#2 Sun Dec 28, 2008 5:19 am
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
You want to put loadPageOnClose:self into the rev attribute option only on the particular links you want that behaviour active for, and not set it on the page options nor as a default option in the floatbox.js code.
You could also manipulate that option via javascript just before firing "parent.fb.end()". Such as: parent.fb.loadPageOnClose='self'; ...or... parent.fb.loadPageOnClose=false; |
#3 Sun Dec 28, 2008 5:43 am
|
|
Member
Registered: Dec 2008
Posts: 12
|
Thanks byron for the immediate help.
It works perfect now. I'll throw another coin in the can |
Page: 1