I'm quite desperate... All day I'm trying to get fancybox (or shadowbox) working. But I can't get my head around it.
The main goal: opening inline HTML-elements, external links and forms in a modal (pictures are a nice addon ;-) )
But whatever I'm trying: the content still opens as a normal link (or with the inline-elements: the screen moves to the anchor).
Things I've done:
* hardcoding all necessary javascript and css-files into templates/page.ss (on top of the body, on the bottom, in the head)
* disabling all other .js-functionality as is suggested here http://silverstripe.org/archive/show/187021?start=0#post187321
* enabling all other .js-functionality
* enabling all other .js functionality except prototype.js as UncleCheese is doing in the ImageGallery-module
* including all necessary javascript and css-files with public function init() { Requirements::javascript(..); }
* restarting wampserver as well as way too many /db/builds
* I even plainly copied what UncleCheese did in the ImageGallery-module (off course without any luck)
Oh, and off course I had $(document).ready(function() { }); as a part of the necessary javascript-files and all the tags fancybox and shadowbox require added to the <a>
Is there someone out there who got a modal working and can help me out?
Or maybe it's a wamp-problem?