Buttons and Drop Downs duplicating in IE11 Word Add-in - internet-explorer-11

I have a Word 2016 Add-in (Office.js) built with Bootstrap 3 and jquery.
Windows 7 users are reporting (and I've seen) duplication and even triplication of buttons and dropdown menus when they return to Word 2016 after letting it sit for 45 minutes or so.
If you just refresh the page you get a correct, single version of these buttons and dropdowns.
Somehow IE11 is deciding on its own to update the page and, in doing so, creating duplicates.
The buttons and dropdowns all work. Refresh returns the page to the correct state.
Anyone have any direction to go or ideas on this?
Thank you for the detailed response & interest - apologies for the long delay in responding.
I've only seen this with one user, in the UK, running Windows 7 and Word 2016. I screenshared with him and saw the triplication in person...unfortunately didn't think to take screenshots of his experience. His IE11 install didn't have the "Install new versions automatically" checkbox that I have (Windows 10).
(Side note: the permutations of Word 2016 and IE11 are ending up being quite a handful - I have many institutional users and they don't control updates to one or both...hard to even figure out what they're using).
He had three versions of every Favorite button and three versions of each Group Drop Down.
A simple refresh of the page returned things to normal.
The buttons all worked while the dropdowns had all 3 sets of choices in the first iteration of the dropdown; the second and third iteration of a dropdown was empty.
He described the situation as resulting after he "lets Word sit without using it or my solution for 40+ minutes." He has used my solution extensively and hasn't reported seeing it during use.
The screenshot below shows things as they are normally.
In his situation, that first button (for example) named 'Link' would repeat after the list of buttons along with every single other blue Favorite button.
The Dropdowns (Argument etc.) would be similarly duplicated or triplicated (he hasn't seen 4 yet).
My code is pretty simple jquery/javascript. When you load the page or refresh it pulls content and builts these buttons and dropdowns dynamically. I don't understand a situation where the browser somehow reloads or duplicates content...

Related

Disable certain suggestions in PhpStorm search

I’m not sure what are these called:
I mean the Show code with my wire stats, Show Memory indicator, etc..
Basically, I’m mostly interested so this autocomplete menu would only show files, or at the very least would prioritise files. How can this be achieved?
I’m in version 2022.2.1.
That popup is called Search Everywhere and you are on an "All" tab that includes combined results from Classes, Files, Symbols, Actions etc.
Either manually switch to the desired tab (using a mouse or by hitting Tab needed number of times) or invoke this popup for the desired search from the start. For that just use the shortcut for Navigate | File... (Ctrl + Shift + N here on Windows keymap).
https://www.jetbrains.com/help/idea/searching-everywhere.html
Found the solution.
These things are called Actions, and the can be disabled in menu that appears after clicking the small funnel icon in the top right:
I tested, these changes seem to 'survive' a restart.
Yes, at the moment it is remembered only during the session.
https://youtrack.jetbrains.com/issue/IDEA-229285 -- watch this ticket (star/vote/comment) to get notified about any progress.
(P.S. The same happens with Find in Files popup (IDEA-143972) and a few others similar popups as well)

Access custom right-click menus

I have written an app that makes extensive use of custom right-click menus on an Access form. The code works great and the user loves it, but lately I am having trouble making it work properly.
In earlier versions of Access it worked well, but newer version seem much more limited in how many items can be put in such menus. The documentation is silent on the matter, and nobody in any newsgroup has had any useful ideas, but I regularly get random error about stack space, out of memory, and general lockups when populating the menus. Doing a C&R used to help, but now even that is not enough, and some menus I can no longer populate at all.
I tried building an app that just built menus until it crashed, to get some idea of what the limits may be, and I am well below what that indicated, but the experimental app had nothing else, while the real app has a great deal else.
Is there any information on how much stuff can be put into these menus, and what the menus share space with? There may be something I can do another way to make more room for the menus. I tried moving all code out of the form, leaving only event stubs that called routines in standard code modules, but that did not help.
And how are they stored/activated? The app is MUCH slower to load when it has these menus, even though no code is running on start-up.
********** Edited to add this:
I use VBA to create a menu, like this:
Application.CommandBars.Add "RCStat", msoBarPopup, False, False
then add it to a control. like this:
Application.CommandBars.cboStat.ShortcutMenuBar = "RCStat"
I add controls (only popups and buttons) like this:
Application.CommandBars.Controls.Add(type:=msoControlPopup)
Application.CommandBars.Controls.Add(type:=msoControlButton, Parameter:="StatKod = 77")
It runs perfectly and the menu items work exactly as expected, except that it bombs after adding some number of controls. It doesn't seem to matter where I add them, just the total number of added controls hits some undefined threshold, and the app crashes.
I got the original code from Getz, Litwin and Gilbert, 2000 edition. Back then, it worked great. But as the versions advance and the app accumulates data, it is becoming less and less functional. However, there are only around 10,000 records, and the app itself is less than 100MB - nowhere close to any of Access's upper size limits.
Pete,
I've done quite a bit of work with shortcut menus, and created the Access Shortcut Tool about 5 years ago, but have never attempted a menu with so many controls although some have 3 or 4 levels.
I am not aware of any restrictions on the number of elements in the commandbars collection, but I find that shortcut menus with too many options, like lists and combo boxes with too many items, are difficult for users to navigate. I generally break these up into segments and use buttons in the form header to display the appropriate menu. Sorry I'm unable to provide anything more helpful.
Dale
We have a commercial product, Total Access Components, that includes as one of its 30 components a right click popup menu that can include icons and font styles.
Here's the info for the popup menu control: https://fmsinc.com/MicrosoftAccess/controls/components/popup-menu/
There's a free trial if you want to try it.

'Microsoft.SharePoint.Taxonomy.ScriptForWebTaggingUI' is null or not an object

This is regarding SharePoint 2010 Search Refiners for people search.
When I click on Show More option in Job Title or Building name Refiner, it doesn't expand and all I see is javascript error popping in IE status bar.
'Microsoft.SharePoint.Taxonomy.ScriptForWebTaggingUI' is null or not an object
On further investigation, I noticed that this happens when search results count is above 50. For anything below 50 results, the refiners work absolutely fine. Moreover, the issue is present with one site collection, rest seem to be working fine.
I have tried to reproduce issue under broken site collection using new enterprise search centre (as sub site) but still no luck.

Forms open and load very slow. Sometimes they won't open

I have a relatively small VB winforms project.
It is currently used to launch numbers hyperlinks and some apps on a server.
There are a couple functions that do all the work, but the it really boils down to:
System.Diagnostics.Process.Start("iexplore.exe", urlVar)
or if it is an app sitting on the server, the variable passed into the function appLinkVar will contain the need file path to launch the application.
System.Diagnostics.Process.Start(appLinkVar)
The "items" are stored on a SQL Local Database (.mdf)
Id, appName, appLink, appClickCount, appFavList,anddecision, which tells the function if it is calling a website or opening an executable.
Currently, there are forty rows in the database and I project 150+ in the end that need to be updated centrally and often (weekly). But that's a different question for later. The reason I added in it in this question was for insight as to why I am using a database instead of a Setting or XML file for some links. (better suggestions welcome)
My admin main form loads Visible = False and loads the icon in the system try. So you can't actually see the first form that opens. It is a hidden admin window and it's main purpose is to put the icon in the system tray. The green RJ icon - http://snag.gy/VBa6c.jpg
Then all of the app interaction is around the notify icon. Example: the app loads on hover. right-click for settings and options etc.
Once the primary form loads, on mouse over the "Primary Label" for example and the white form to the left appears and so on. Not much to it. http://snag.gy/excKr.jpg
The Frequently Accessed items is currently stored on the database called appClickCount, this will be coming off of the database and to another recommended way of storing the data. But when I initially added the database, I noticed some lag in the main form loading. It would take it 5-7 seconds to populate the Frequently Accessed Items List and so on. So I changed the code from mainWindow.show() to mainWindow.visible(). Worked great for me. opened and closed very quickly. But after some use today by a tester, the application became almost unresponsive. He clicked on the notification icon numerous times and the app failed to load. Then threw a SQL time out error. It was the end of the day and I couldn't grab a screenshot.
I need to make this more reliable.
After some discussion the other day on SO, I was talking to someone that recommended I re-write the app in C# WPF, and that is definitely the plan. But I need this thing to past testing as is in VB this week. Where can I start troubleshooting the delay in opening? What other suggestions do you have to improve the application? Do I need to have an invisible form load first so I have access to a system tray icon or is there a better way?
I have talked to quite a few people on here lately and got some really good advice, I figured I would lay it all out here and see what input you guys can give a new guy... I'm also gonna go hang in the C# room for a little bit if you have any further questions.

Radio button page in inno setup uninstaller

I've seen a lot of questions like this, but never this exactly, so I was wondering if this is even possible, and if not what is an alternative?
I want to have a page with three options:
Delete game, savegames, missions, players, etc. (basically everything)
Delete the game and savegames and such, but leave certain files.
Delete just the game, and leave everything else.
Then I'd have to make it delete certain files, and SAVE certain files depending on what they selected.
Is that possible?
You can't create wizard pages during uninstall (The exception being the progress page) as it doesn't have the same wizard.
You can however show custom forms (See CreateCustomForm() and its ShowModal() method) and message boxes.
Once the form has been closed, you can get the values from the controls and delete whatever is required.