The shadowbox opens successfully however it does not load my page called reel.cfm, but rather displays the string "../view/reel.cfm" within the shadowbox window. Of course, i'm looking to actually load reel.cfm within the new shadowbox. Am I missing parameters?
I'm having a similar problem, and tried it with an absolute path, but to no avail. I'm using shadowbox.open with type="html". In this case, I'm trying to display a file with .java extension. Shadowbox displays the file name instead of the contents.
I wondered if I should be using a different Shadowbox type, but none of the others seem appropriate - it would be great if there were a flag to tell Shadowbox to interpret the file as plain text.
Thank you, Wizzud. I see your point about the "html" type. I tried it with "iframe" instead, and now it does load the contents of plain-text files IF it's a file with an extension it already "knows" about - for example, .txt or .php. However, when I try to display a different extension (.java in this case), it instead pops up an open/save dialog over the Shadowbox window - as if the file type is unsupported by Shadowbox... and this is despite the fact that I had explicitly defined the mapping of file types for Shadowbox like so:
NOTE : the use of 'type' and 'loadingImage' indicates that you are using version 1, but handleException is not an option for version 1 so I have not included it!
There is a possible alternative, because shadowbox will accept options on a 'per-link' basis. But certain options are documented (for version 2!) as being set-able only via init() - 'ext' being one. And for version 1, I suspect that there may be others, such as 'loadingImage'. I am not certain how rigidly this is enforced (if at all), or of the effect if ignored; nor I am entirely sure that options are applied consistently or logically within galleries, for example, but still...