fbPageOptions have no effect

Page: 1

Author Post
kimstahnke
Guest
As a first-time user I have not been able to get the fbPageOptions script to work. Nothing I put there has any effect whatsoever. I have put the script into the hear section of my page. Using the rev section of the <a href... works fine.

<script type="text/javascript">
fbPageOptions = {
theme: red,
resizeDuration: 20,
imageFadeDuration: 4.5,
overlayFadeDuration: 0,
navType: 'both'
};
</script>


Best Regards,
Kim
Administrator
Registered: Aug 2008
Posts: 3382
There's certainly nothing wrong with your quoted code that would account for it not kicking in.

Can we see an online example of it not working so that we can zero in on the reason?
kimstahnke
Guest
The site is not yet online so unfortunately you cannot.
I will use the rev option in <a href... instead for now.

Below is a bit more of the code if that helps.

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link type="text/css" rel="stylesheet" href="/floatbox/floatbox.css" />
<script type="text/javascript" src="/floatbox/floatbox.js"></script>

<script type="text/javascript">
fbPageOptions = {
theme:black,
outerBorder:0,
innerBorder:1,
padding:100,
panelPadding:0,
overlayOpacity:100,
showCaption:true
};
</script>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceholder1" runat="server">
<div id="ppDataList2">
<asp:DataList ID="DataList1" runat="server" DataSourceID="srcNews"
RepeatColumns="2" RepeatDirection="Horizontal">
<ItemTemplate>
<div class="pp-info">
<a href='<%# Eval("LiveFileName", "http://...../{0}") %>'
rel="floatbox" >

<img src='<%# Eval("SpotId", "http://...../{0}.jpg")%>' alt="" width="330" height="182" border="0" /></a>
Administrator
Registered: Aug 2008
Posts: 3382
The server side code is of little help for locating client side floatbox problems. What needs to be looked at is the html page that is being delivered to the client. If you can quote the relevant parts of the delivered html by pasting from a browser's "view source" results, maybe we can see where the problems lies.

This same observation about needing to see the client side html applies to your post about floatbox not working from your IIS site, so I'll pull that post. Note that the most common reasons for floatbox not working from particular sites are that a) the floatbox files are not actually at the path location that is being used in the include lines, and b) the folders that the floatbox files are installed in don't have read permissions for the world.
kimstahnke
Guest
Your answer a) led me to examine my server setup again and I found that since the new site is located in a subdirectory including the floatbox dir IIS could not locate floatbox. I therefore moved the floatbox dir to IIS www root and now everything works fine.

Regarding my Script problem I think I will respectfully postpone it since I need to move on, having a deadline coming up soon, and floatbox works with settings in the rev section.

Thanks a million!
Kim

Page: 1