thx - seems obvious now, and I was merely add complexity
- S
<div><span class="gmail_quote">On 23/04/2008, <b class="gmail_sendername">Karl Swedberg</b> <<a href="mailto:karl@englishrules.com">
karl@englishrules.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This should work:
if ($.fn.jScrollPane) {
$('.scroll-pane').jScrollPane();
}
--Karl
_________________
<span class="sg">
Karl Swedberg
<a href="http://www.englishrules.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.englishrules.com</a>
<a href="http://www.learningjquery.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.learningjquery.com</a></span><div><span class="e" id="q_1197d22438c81d5e_2">
On Apr 23, 2008, at 5:00 PM, Sam Sherlock wrote:
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I am using this to test for the presence of blockUI
if((typeof $.blockUI) === 'object') {
// set up blockUI
}
also seems to work
if((typeof $.fn.idTabs) === 'object') {
$('.idTabs').idTabs();
}
does'nt work
if((typeof $.fn.jScrollPane) === 'object') {
$('.scroll-pane').jScrollPane();
}
it seems to not work with JSScrollBar though - so I thought perhaps there is a better way
or should I go through the converluted apprpach of setting flags??
var isBlockUI = 1; // added to the plugin file to check elsewhere in other scripts
</blockquote>
</span></div></blockquote></div>