Hi, I'm having this problem and can't get a solution anywhere.
-- <Introduction:>
I have a master page, then I have a content page which contains a little login form wrapped in <div id="LoginTable"></div>
What I want, is to use a ScriptaculoUs JavaScript
Effect.Highlight(...)
on some mouseovers.
The Effect.Highlight is in external .js file. Scriptaculous uses also Prototype.
--<Problem>
On a standalone page it worked fine,
I referenced the "Scriptaculous.js" and "Prototype.js" in the <head> tags,
then I added a <script> tag with a function: HiEffect(element){ Effect.Highlight(...) }
then I added onmouseover="HiEffect(this)" to the element.
Everything worked fine until I had to put this page under a MasterPage.
Now, even if I reference the files in the MasterPage or ContentPage, the script won't run.
--<What Worked>
I tried instead of putting Effect.Highlight() something regular, like alert("lol") and the mouseover worked, so OK, the <script> can be found.
Then I checked if the element can be found, Yes, it is found.
So the problem surely is in the reference to the external .js file.
Where to put it, or how to force the page to know where to look for it?
Does anyone know, please let me know, thanx a lot.