# Popupmenu plugin not working on th web

**URL:** https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265
**Category:** Classic Servoy
**Created:** [October 18, 2007, 11:49am UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265 "2007-10-18T11:49:16Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![irenem](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@irenem](https://forum.servoy.com/u/irenem)
#### Post date: [October 18, 2007, 11:49am UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/1 "2007-10-18T11:49:16Z")

</div>

I have a method attached to a button that shows a popup menu. I have used the popupmenu plugin. The values are stored in a value list. This works fine in the developer and the client, but it doesn’t in the web client.

I know that the plugin works with the web-client, so the fault should be in the method, but I can’t find it.

Here is the code:

```auto
var vdataset = application.getValueListItems('find')
var menu = new Array()
for (var i = 1 ; i <= vdataset.getMaxRowIndex() ; i++ )
   {
   menu[i-1] = plugins.popupmenu.createMenuItem(vdataset.getValue(i, 1), globals.setOperator);
   menu[i-1].setMethodArguments (i+ 'arg1','arg2');
   }

//set menu method arguments and check mark
var x = 0
while (menu[x])
{
    //pass arguments
    menu[x].setMethodArguments(menu[x].text)
    
    //set check mark
    if (globals.g_operator == menu[x].text) {
        menu[x].setSelected(true)
    }
    else {
        menu[x].setSelected(false)
    }
    x++
}

var elem = elements[application.getMethodTriggerElementName()] 
if (elem != null) 
{ 
 plugins.popupmenu.showPopupMenu(elem, menu);
}

```

I would appreciate some help[/code]

---

<div class="post-metadata">

### Author: ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)
#### Post date: [October 18, 2007, 11:54am UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/2 "2007-10-18T11:54:40Z")

</div>

If it works in the smart client, it should work in the webclient as well. What Servoy version are you using? That feature is fairly new…

---

<div class="post-metadata">

### Author: ![irenem](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@irenem](https://forum.servoy.com/u/irenem)
#### Post date: [October 18, 2007, 11:59am UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/3 "2007-10-18T11:59:01Z")

</div>

hello,

this was a very quick reply.

I use Version 3.5.1-build 514

---

<div class="post-metadata">

### Author: ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)
#### Post date: [October 18, 2007, 12:03pm UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/4 "2007-10-18T12:03:10Z")

</div>

That should work then. Is there an error? Server error (in the server’s log)?

---

<div class="post-metadata">

### Author: ![irenem](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@irenem](https://forum.servoy.com/u/irenem)
#### Post date: [October 18, 2007, 12:27pm UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/5 "2007-10-18T12:27:33Z")

</div>

the only thing I could find is this

Exception in thread “main” java.lang.NoClassDefFoundError: com/servoy/j2db/server/ApplicationServer

but I have no idea what it means.

---

<div class="post-metadata">

### Author: ![Gary\_R.Schaecher](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gary\_R.Schaecher](https://forum.servoy.com/u/Gary_R.Schaecher)
#### Post date: [October 18, 2007, 12:53pm UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/6 "2007-10-18T12:53:17Z")

</div>

We also have a problem with the popup menu in the web. It does appear when you click, but it takes 30 to 45 seconds to appear. Maybe you should get a cup on coffee and come back and see if it has appeared?

---

<div class="post-metadata">

### Author: ![irenem](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@irenem](https://forum.servoy.com/u/irenem)
#### Post date: [October 18, 2007, 1:01pm UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/7 "2007-10-18T13:01:33Z")

</div>

I think that I can wait for a whole dinnertime but nothing happens. ![:roll:]( "Rolling Eyes")

---

<div class="post-metadata">

### Author: ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)
#### Post date: [October 18, 2007, 1:06pm UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/8 "2007-10-18T13:06:37Z")

</div>

I suggest you file this issue in the Servoy support system:

[http://crm.servoy.com/servoy-webclient/ … oy\_support](http://crm.servoy.com/servoy-webclient/solutions/solution/servoy_support)

Preferably with a small demo solution that reproduces the problem.

---

<div class="post-metadata">

### Author: ![irenem](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@irenem](https://forum.servoy.com/u/irenem)
#### Post date: [October 18, 2007, 2:00pm UTC](https://forum.servoy.com/t/popupmenu-plugin-not-working-on-th-web/8265/9 "2007-10-18T14:00:59Z")

</div>

Thank you, I just followed your suggestion. I hope they can help me
