22880 Posts in 9589 Topics by 2804 members
|Go to End|
9 March 2011 at 12:15am
Some threads indicate there is a general chance of jQuery-conflicts with userforms.
I am using jQuery jScrollPane for individual ScrollPanes on a project. Works perfectly on all extended Pages except the ones where I use UDF. On these nothing happens and I get thrown the Error:
Uncaught TypeError: Object #<an Object> has no method 'jScrollPane'
Others seem to also have troubles adding their own jQuery-Code to UDF-pages. I haven't found a proper solution though. I have included the script files in the Page.php:
They all get loaded correctly, and, as said, work perfectly on all other pages. I appreciate any suggestion.
9 March 2011 at 2:12am
Ok, I found a working solution. This might help other beginners, too:
9 March 2011 at 10:07pm
That solution seems quite verbose!
You normally just need to wrap your own code in a closure. I use UDF + scrollpane on a couple of my sites..
// your code;
10 March 2011 at 2:04am
thanks for your advise. Your code works well!
|Go to Top|