Thanks! The order looked like it was correct, but when I tried your
Firebug suggestion, I noticed some weird results with the Net panel.
At first, NONE of my js files listed at all. My original syntax was:
<link rel="stylesheet" href="javascript/modalbox.css" type="text/css"
media="screen" />
<script language="JavaScript" type="text/javascript" src="javascript/
prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="javascript/
scriptaculous.js"></script>
<script language="JavaScript" type="text/javascript" src="javascript/
modalbox.js"></script>
Just for kicks, I added the load syntax below, the js files initially
were not listed, but then I clicked on a couple of the other tabs
(HTML, CSS, etc.), just to view them and when I returned to the Net
tab, I saw ALL of my js files listed (in black, with an 'OK' message):
<script language="JavaScript" type="text/javascript"
src="javascript/scriptaculous.js?load=builder,effects"></script>
In short, now I cannot reproduce the above, and none of the js files
appear no matter what I do. I'm either losing my mind or missing
something really simple.
On Jun 23, 6:28 am, Justinas Urbanavicius <
justin...@gmail.com> wrote:
> Ok, "uncaught exception: Modalbox is not initialized" this could be that the
> modalbox or prototype & scriptaculous scritps are not loaded on that page,
> where you whant to display modalbox.
>
> siplest way to check is to open firebug, the go to the net panel, and
> navigate to your page.
> If the Modalbox.js script is red that means the browser cannot find js file,
> either the path is wrong or if you don't see modalbox.js at all you could
> have forgot to include it.
>
> The second thing is to check the order the way files are beeing loaded, from
> top to bottom the order should be:
>
> 1. Prototype, 2. Scriptaculous, 3. Modalbox
>
> check these steps first, then we'll see what to do next
>