Loading External Link

Page: 1

Author Post
bobhendren
Guest
I'm using Floatbox to load an external link. It's working fine, but when the floatbox appears, there is a momentary blink of "page not found" before the external link appears. This doesn't occur when I look at the example for the Google external link on the Floatbox home page. Any clues how to get rid of the "page not found" blink?
Administrator
Registered: Aug 2008
Posts: 3382
First, you need to make sure you're using version 3.12. The main reason is because of the critical failure to detect IE6 on XP service pack 3 machines with earlier versions. One of the other fixes in that version is that a brief display of not-found text could be displayed ahead external iframe loads. However, that text read "Unable to fetch content from...", which is not exactly what you are reporting. If you are briefly getting your site's default 404 page, it may be because floatbox is failing to find its /floatbox/graphics/loading_iframe.html file. If the graphics folder is somewhere other than the default install location, make sure you edit the urlGraphics setting in the configuration section of floatbox.js with the new location.

The short answer: use v3.12 and ensure urlGraphics matches reality.
bobhendren
Guest
Thanks for your time - I actually just figured that out myself, as well! I'm using my JS and CSS from a central server, so I had to go back and add a complete URL rather than a relative URL for the urlGraphics parameter.

It's working wonderfully now. Thanks!

:)
quim
Guest
Hi

I'm using version 3.12 and I'm getting the same problem with IE 7.
My "/floatbox/graphics/loading_iframe.html" file seems to be in the right place (in the root of my web project)
and urlGraphics points to '/floatbox/graphics/'.

Should I change anything else?
Administrator
Registered: Aug 2008
Posts: 3382
Nope, nothing else to set.

I get suspicious when you say 'root of my web project' rather than 'root of my web site'. Sometimes when people say that, they mean a project that is located down a sub-folder or two in their site hierarchy. Of course if the floatbox folder is not at the site root, the urlGraphics constant needs to change to something like '/myProject/floatbox/graphics/'.

Failing that, I'd have to see it to dissect it.
Is it just IE7 and other browsers are ok?
quim
Guest
It seems that with Firefox 2.0 is worst, it fails every time. With IE 7.0 only fails first time with a new url, when repeting the url it works ok.
I got an error "HTTP Error 404 - Not Found", this error is only visible for less than a second. After this very short time, the page is loaded without any problem.

My url is:
http://localhost:1468/Web_Teste/Default2.aspx

Root url is:
http://localhost:1468/Web_Teste

Virtual path is:
/Web_Teste

Physical path is:
D:\VB.Net\Web_Teste\

directory '\floatbox\graphics/' is located in:
D:\VB.Net\Web_Teste\floatbox\graphics

And urlGraphics points to '/floatbox/graphics/'
Administrator
Registered: Aug 2008
Posts: 3382
Without being able to look at the behaviour on your site there's not a lot I can do. But based on your description, urlGraphics: '/Web_Teste/floatbox/graphics/' is certainly worth a try.

You can determine the right path straight from your address bar. Does http://localhost:1468/floatbox/graphics/loading_iframe.html give you a 404? If so, then the floatbox folder is not at the root of your site. Does http://localhost:1468/Web_Teste/floatbox/graphics/loading_iframe.html successfully load? Then that's your path.
quim
Guest
The link is this one:
http://localhost:1468/Web_Teste/floatbox/graphics/loading_iframe.html

But I tryed all these configurations:
urlGraphics: 'http://localhost:1468/Web_Teste/floatbox/graphics/'
urlGraphics: '/Web_Teste/floatbox/graphics/'
urlGraphics: '/floatbox/graphics/'
urlGraphics: 'Web_Teste/floatbox/graphics/'
urlGraphics: 'floatbox/graphics/'

I also made copy of floatbox directories to the previous directory of my web path.
I test it changing urlGraphics inside floatbox.js and I test it changing urlGraphics in javascript command:

parent.fb.loadAnchor("web_page.aspx?ID=374", "width:320 height:320 scrolling:no innerBorder:1 urlGraphics: 'http://localhost:1468/Web_Teste/floatbox/graphics/'");

This only happends when I call a web page, if I call an image, it works fine.

Anything else that I should test?
Administrator
Registered: Aug 2008
Posts: 3382
I'm sorry Quim, but from your descriptions I still have no idea where on your site you have installed floatbox, so can't help you further with guessing what path to set that constant to. If you can put an example of your problem online somewhere that I can look at then I could help.

I'm not sure you understood my suggestion to use the browser's address bar to confirm the floatbox location path. Never mind floatbox or editing things. Just click on the following: http://localhost:1468/Web_Teste/floatbox/graphics/loading_iframe.html and http://localhost:1468/floatbox/graphics/loading_iframe.html and see which one loads the page and which one throws a 404. If the first one works then your urlGraphics path is /Web_Teste/floatbox/graphics/. If the second one works, your path is /floatbox/graphics/. If neither works, you've installed somewhere else or incompletely.

Page: 1