Hmm, not sure what the problem is, but doesn't look like a web2py issue. 
Maybe check the hoverIntent documentation.

On Friday, March 16, 2012 11:07:47 AM UTC-4, Edward Shave wrote:
>
> Oh, right, I didn't realize that. Anyway, I've removed the line where I 
> attempted to install it.
>
> My code is in layout.html and here I've shown it in context as the last 
> line. It works with hover but not hoverIntent?
>
> * {{include 'web2py_ajax.html'}}*
> *
> *
> *    ...<script type="text/javascript">*
> *    *
> *        
> jQuery(function(){jQuery('ul.sf-menu').supersubs({minWidth:12,maxWidth:30,extraWidth:3}).superfish();});
> *
> *
> *
> *        jQuery(function(){ 
> jQuery('.sm_parent').click(function(){jQuery(this).next('ul').slideToggle()});});
>  
>   *
> *
> *
> *        jQuery(function(){ 
> jQuery('.sm_parent').hoverIntent(function(){jQuery(this).next('ul').slideDown()});});
>  
>  *
> *        *
> *    </script>...*
>
>
> On Friday, 16 March 2012 14:22:50 UTC, Anthony wrote:
>>
>> Note, if you have included the superfish.js file (which the "welcome" 
>> layout.html includes by default if there is a response.menu), hoverIntent 
>> is already included in there (along with Supersubs), so no need to include 
>> it separately.
>>
>> Anyway, what isn't working? Is the file not being loaded by the browser, 
>> or is it being loaded, but you're just not observing the behavior you 
>> expect (in which case, show the Javascript code you are using to set up 
>> hoverIntent).
>>
>> Anthony
>>
>> On Friday, March 16, 2012 9:45:51 AM UTC-4, Edward Shave wrote:
>>>
>>> I'm a retired client/server (delphi) programmer and am struggling to 
>>> learn the new stuff as I go..
>>>
>>> I downloaded the file *jquery.hoverIntent.js* and placed it in the 
>>> static/js directory.
>>>
>>> I added the following line to web2py_ajax.html...
>>>
>>>     *response.files.insert(4,URL('static','js/jquery.hoverIntent.js'))*
>>>
>>> Doesn't appear to be working?
>>>
>>
>> On Friday, March 16, 2012 9:45:51 AM UTC-4, Edward Shave wrote:
>>>
>>> I'm a retired client/server (delphi) programmer and am struggling to 
>>> learn the new stuff as I go..
>>>
>>> I downloaded the file *jquery.hoverIntent.js* and placed it in the 
>>> static/js directory.
>>>
>>> I added the following line to web2py_ajax.html...
>>>
>>>     *response.files.insert(4,URL('static','js/jquery.hoverIntent.js'))*
>>>
>>> Doesn't appear to be working?
>>>
>>

Reply via email to