anchor fbContext doesn't load in ajax-filled div

Page: 1

Author Post
Member
Registered: Feb 2013
Posts: 30
Dear Admin,
when using the simple test code:


<a href=&#039;javascript&#058;void 0&#039; class=&#039;fbContext&#039; data-fb-context=&#039;source:#context1 closeOnClick:true&#039;>tooltip</a>
<div id=&#039;context1&#039; style=&#039;display:none;&#039;>hello world</div>


on my primary page everything works fine.

the primary page has a div:

 
<div id="flow-content">
</div>


into which it loads another page when dom is ready via jquery:


<script type="text/javascript">
$(document).ready(function() {
// dom ready
var target = $_GET(&#039;jump&#039;);
load_flow_content(target);
});
</script>

<script type="text/javascript">
function load_flow_content(content){
$(&#039;#flow-content&#039;).load("/me/me_" + content");
}
</script>



the div-loaded page has a lot of javascript etc and everything works fine. also other fb.start and fb.ajax and fb.end calls work fine from this page.

only the above test code, when being loaded from the div-loaded page does nothing.

whats wrong?
Administrator
Registered: Aug 2008
Posts: 3382
After loading dynamic floatbox content, you need to run fb.activate() to light it up. Please see http://floatboxjs.com/instructions#dynamic
Member
Registered: Feb 2013
Posts: 30
thanks for the incredible quick reply and also for the correct hint - works like a glance now :)

Page: 1