[Seaside] JQueryWidgetBox -> JQWidgetBox-MbMenu

Johan Brichau johan at inceptive.be
Tue Aug 31 06:19:35 UTC 2010


That error is saying that the MbMenu is dependent on the Hoverintent plugin. 

You need to load the hoverintent plugin as well (you do not really need to the Smalltalk wrapper, but you do need the js file to be loaded).

The example's #updateRoot: method says so, but I had forgotten about it too ;-)

On 31 Aug 2010, at 06:06, Rick Flower wrote:

> Ok..  Got some spare time..
> 
> I checked cmenu and it does have a list of HTMLElements (99 of them)
> 
> I did see mbmenu.js loaded OK.
> 
> However, I didn't see any contextmenu reference in the WebInspector right
> pane, but am not sure what drop-down list it would be listed in -- "Element",
> "Node", Object, or one of the others.. I poked through most of them but didn't
> see the reference..
> 
> Ahh.. Breakthrough.. When I right-click on one of the cells I get the following
> message in the console :
> 
> TypeError: Result of expression '$(this).hoverIntent' [undefined] is not a function.
> 
> Any ideas on whether I missed putting something in?  I see a method called
> JQMbMenuPlugin->hoverIntent:...
> 
> -- Rick
> 
> On Aug 30, 2010, at 2:27 PM, Johan Brichau wrote:
> 
>> Rick,
>> 
>> What do you mean with the 'outline of all cells'?
>> You did not get a right-click mouse menu, I guess?
>> 
>> One thing I notice is that you need to click on the text inside a table cell to get the menu (which is normal, the example sets the context-menu on the text inside).
>> 
>> But my guess is that the context menu is not initialized.
>> In Safari, you can use the developer tools (the web inspector) to check if everything is ok:
>> - is the mbmenu.js loaded?
>> - does the evaluation of $('[cmenu]') in the console yield an array with all table cells in it?
>> - in the 'elements' tab of the inspector, can you see the 'contextmenu' event listener being listed on the right-hand when you select a span element from the table?
>> 
>> It probably is something you did not copy from the squeaksource repo, since the code is not using anything pharo/squeak specific (99% sure).
>> 
>> Johan
>> 
>> On 30 Aug 2010, at 18:43, Rick Flower wrote:
>> 
>>> Johan et-al,
>>> 
>>> I was able to finally get some time to port over
>>> the code from Squeak to VW and included the example
>>> code so I could get an idea of the APIs and usage..
>>> 
>>> However, when I run the code in VW7.7.1 w/ Seaside 3
>>> I see the test code render a grid which states I should
>>> right-click on a square to change colors.. However,
>>> I only see the outline of ALL items in the grid (table)
>>> change as if I did a 'select' all which I'm sure is not
>>> the desired behavior.. So, what is the best way to
>>> diagnose these sorts of UI/Seaside problems?  I'm using
>>> Safari and it does not complain about any page errors
>>> or anything.. I looked at the generated HTML and it
>>> looked reasonable but didn't dig very far..  Anyway,
>>> I figured I'd ask before spending too much time
>>> playing with things. I might try to fire up a
>>> Squeak/Pharo image and try the 'real' code there and
>>> see how the example behaves there for comparison..
>>> 
>>> -- Rick
>>> 
>>> On Tue, 17 Aug 2010 10:54:10 +0200, Johan Brichau <johan at inceptive.be>
>>> wrote:
>>>> Rick,
>>>> 
>>>> I don't see anything Squeak-specific in the code, so my idea is that it
>>>> should work.
>>>> If there is a problem, let me know and we can adapt it to make it work
>>> in
>>>> both worlds.
>>>> 
>>>> best
>>>> Johan
>>>> 
>>>> On 17 Aug 2010, at 06:59, Rick Flower wrote:
>>>> 
>>>>> Andrei,
>>>>> 
>>>>> Does this code only work for Squeak?  I didn't see it on the
>>> Visualworks
>>>>> side of the house and
>>>>> am interested in playing with it if possible.. Thx!
>>>>> 
>>>>> -- Rick
>>>>> 
>>>>> 
>>>>> On Aug 4, 2010, at 2:54 PM, Andrei Vasile Chis wrote:
>>>>> 
>>>>>> Hi Johan, Hi all
>>>>>> 
>>>>>> I wanted to upload a small bug fix and some other minor changes but
>>>>>> unfortunately I do not have write permission for this project.
>>>>>> Is it possible to get write access or should I forward the changes to
>>>>>> someone else?
>>>>>> 
>>>>>> Cheers,
>>>>>> Andrei
>>>>>> 
>>>>>> On Wed, Aug 4, 2010 at 5:53 PM, Andrei Vasile Chis
>>>>>> <chisvasileandrei at gmail.com> wrote:
>>>>>> Thanks for doing this.
>>>>>> 
>>>>>> Cheers,
>>>>>> Andrei
>>>>>> 
>>>>>> 
>>>>>> On Wed, Aug 4, 2010 at 5:35 PM, Johan Brichau <johan at inceptive.be>
>>>>>> wrote:
>>>>>> The mbMenu plugin wrapper in jQueryWidgetBox has been updated to use
>>>>>> the latest version of the plugin.
>>>>>> 
>>>>>> A long overdue example is also included now. Since I'm only using it
>>> to
>>>>>> create context menus, the example only shows this usage.
>>>>>> 
>>>>>> Have fun with it!
>>>>>> 
>>>>>> Johan
>>>>>> 
>>>>>> On 04 Aug 2010, at 13:58, Johan Brichau wrote:
>>>>>> 
>>>>>>> 
>>>>>>> On 04 Aug 2010, at 13:18, Andrei Vasile Chis wrote:
>>>>>>> 
>>>>>>>> I just looked at JQueryWidgetBox  and saw there is a widget for the
>>>>>>>> jQuery plugin MbMenu which uses an older version of this plugin. If
>>>>>>>> its ok with you I will be more then happy to update it to the
>>> current
>>>>>>>> version as I needed it in a project.
>>>>>>> 
>>>>>>> Hey Andrei,
>>>>>>> 
>>>>>>> Be my guest!
>>>>>>> This reminds me that I should still complete the example...
>>>>>>> 
>>>>>>> Johan_______________________________________________
>>>>>>> seaside mailing list
>>>>>>> seaside at lists.squeakfoundation.org
>>>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>>> 
>>>>>> _______________________________________________
>>>>>> seaside mailing list
>>>>>> seaside at lists.squeakfoundation.org
>>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> seaside mailing list
>>>>>> seaside at lists.squeakfoundation.org
>>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>>> 
>>>>> _______________________________________________
>>>>> seaside mailing list
>>>>> seaside at lists.squeakfoundation.org
>>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>> 
>>>> _______________________________________________
>>>> seaside mailing list
>>>> seaside at lists.squeakfoundation.org
>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>> _______________________________________________
>>> seaside mailing list
>>> seaside at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list