Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Right Click After Upgrade
Last Post 10/28/2011 3:39 PM by Peter Donker. 14 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Brian Cogswell
New Member
New Member
Posts:23


--
08/12/2011 6:01 PM
Peter,

I upgraded to 5.3.8 and am running on DNN 4.9.5 After the upgrade, when I right click the IE or FF context menu covers up the DMX one. If I then left click the context menu goes away and the DMX one is visible. How do I prevent the browser context menu from opening?

Brian
Brian Cogswell
New Member
New Member
Posts:23


--
08/12/2011 6:01 PM
Forgot to enable notification on the post.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/24/2011 1:43 PM
Press F5 to refresh the javascript. This is an IE9 issue and it was resolved in that version.

Peter
Brian Cogswell
New Member
New Member
Posts:23


--
08/24/2011 1:59 PM
I am seeing the issue in both FF 3.6.20 and IE8. I have tried the F5 suggestion but that did not solve the issue. The context menu is comping up over top the DMX one.

I had made changes to the defaultmenu.resources file so I copied back the original one in case. Even with the original default menu file I am still seeing the same issue.

Brian
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/24/2011 8:09 PM
I can't replicate this unfortunately. I have tried IE8 and the menu shows up without the browser's own context menu. The javascript includes a piece of code to stop the event bubble from getting to the browser and firing the browser's context menu. The only thing I can think of is that somehow that piece of script doesn't run.
Does jQuery get loaded? It should. From ~/resources/shared/scripts/jquery/jquery.min.js
Brian Cogswell
New Member
New Member
Posts:23


--
08/24/2011 9:49 PM
I checked in that location and I do see the jquery.min.js file. The version inside says 'jQuery 1.2.6'. I add some js code to the ViewCollection.ascx file as follows:

if (typeof jQuery == 'undefined') {
alert('jQuery has not been loaded!');
}

It did alert me so I am assuming it was not loaded. How do I ensure it gets loaded?

Brian
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/30/2011 2:29 PM
With firebug or IE dev tools you should be able to check if it gets loaded. The code in DMX adds ~/resources/shared/scripts/jquery/jquery.min.js if the DNN major version nr is 4 and doctype is quirks or HTML. In strict XHTML it's not necessary.

You can always add an html blob on the page which loads the script. Maybe try that if it doesn't load.

Peter
Brian Cogswell
New Member
New Member
Posts:23


--
08/30/2011 3:56 PM
I checked using Firebug and did not see it listed in the scripts list. I did add an Text/Html module to the page and it still did not work. I did a test and added the following to the ViewCollection.ascx page...I do see the script now in the Firebug list but it still does not work:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <br /> <br /> Where is the file located that has the pointer to jquery.min.js?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/16/2011 9:17 PM
the magic bit of code is this:

$(document).ready(function () {
$('div.VCBox').bind("contextmenu", function (e) {
return false;
});
});

It is jQuery and stops the regular browser's overlay to pop up over the context menu. This piece of code should be in the ViewCollection.js script. Please verify that it is there. It is all I know on how to stop this from happening and I've tested this on IE/FF/Chrome and it works.

Peter
Brian Cogswell
New Member
New Member
Posts:23


--
09/16/2011 10:29 PM
Yes, it is all there. I just upgraded to a new laptop and I have the same issue with both FF and IE. Are there any other files (such as DefaultMenu.resources) that could impact this?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/29/2011 1:50 PM
No this is all. The div.VCBox is a div which should be there in the module's HTML. Then the function should kick in after page load and make sure the event bubble stops. Try sticking in an alert('foo') into the document ready function there to make sure it is running. Then try sticking an alert before the "return false" to see if the event attachment was correct.

Peter
Brian Cogswell
New Member
New Member
Posts:23


--
10/03/2011 4:31 PM
Peter,

Thanks for sticking it out with this issue. Here is what I did with that function:

$(document).ready(function(){
alert('foo');
$('div.VCBox').bind("contextmenu",function(e){
alert('foo');
return false;
});
});

I did not get an alert when I right-clicked on the files. I still got both context menus up.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
10/05/2011 11:48 AM
Hi Brian,

Then jQuery doesn't load or this js file doesn't load. You'll need to confirm this using Firebug or IE Dev tools. Then, if jQuery is not loading, you'd need to add jQuery yourself to the page using the module header for instance (module settings).

Note that any jQuery not loading error is probably resolved in DMX 6 as I move up the dependency to DNN 5.2.3. The DMX 5 versions are still compatible with DNN 4 which is a real pain when it comes to jQuery.

Peter
Wil wong
New Member
New Member
Posts:1


--
10/25/2011 10:03 PM
I'm having the same issue as Brian here. Using DMX 5.2.2. Using Firebug shows jquery loads fine, but I have the FF context overlap the DMX menu. Any other ideas?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
10/28/2011 3:39 PM
Not that I'm aware of. What I'd do in your case is to stick in an "alert('foo')" in the JS bit to verify is actually running.

Peter
You are not authorized to post a reply.