JQuery :: Using Context Menu Plugin In Sharepoint 2010
Dec 2, 2010
I try to use the Plugin in SP. The problem is, that the offset is calculated wrong when using it in a Webpart. So the contextmenu is always displayed a litlle bit more to the right and a litle bit more to the bottom of the page. Playing with the left and top values using firebug i have figured out, that the top left corner is inside the webpart right underneath the title of the webpart.
Is there a way to manipulate the plugin so the position of the menu is corrected?
View 2 Replies
ADVERTISEMENT
Aug 2, 2011
My first foray in using JQuery - trying to customize navigation in SharePoint 2010. Have adapted some jquery found online through various sources to meet needs. However, having an ID assigned to the <ul> element that drives my menu is required. SP, while dynamically building menu does not assign and ID to the ul element. Been trying, unsuccessfully thus far, to use jquery to add and ID tag to the proper ul... just wanted to see if that is in fact possible and for any tips in implementing.
Output is <ul class="root static"> and I would like to replace it with <ul class="root static" id="menu">
I have been successfully in simply replacing the cssclass (which doesn't actually help me) and in replacing regular text in the body, but just can't get that ID added to the element.
View 2 Replies
View Related
Oct 7, 2011
I am working onSharePoint2010.I want to know total number of items existed in list.I have list with 15 items , When i show list as "Single Item Form" on DataFormWebPart using designer ,At the bottom of it is showing me the pages as 1-1 .And when i move to next page it is showing me as 2-2 .Instead of showing me as 1-15,2-15 ,As 15 are the totalitemsin my list. When i pointed my mouse to bottom of the paging column,I see <xsl:value-of select="$FirstRow" /> for showing first row .And<xsl:value-of select="$LastRowValue" />. how can ,I get total items of list usingj query
View 3 Replies
View Related
Feb 16, 2011
I have a task that needs to be written in Javascript. I need to change a date e.g. '07/05/2010' to a format of '07 May 2010'. How can I do this?
View 1 Replies
View Related
Sep 10, 2010
code to disable right click menu when we right click on "a" tag. But it doesn't work on elements created on the fly. Do you guys know how to tackle this?
View 9 Replies
View Related
Mar 23, 2011
as title, is there any way to clone certain html text by right click the context Menu?
View 2 Replies
View Related
Oct 25, 2011
I have a situation where a context menu is being added to the DOM dynamically when a user right clicks on a control on the page. The div that gets added does not have an id set but the div does have a unique class. WhatI need to do is intercept the addition of the div and add a hover affect to some child nodes. Specifically any children that are <a> nodes. So far this is whatI have for adding the hover affect, but i'm not sure where it needs to go or howI link it to the event raised whan a new element is added to the dom.
$(
'div.context_menu_main').find('div a').hover(function() { $(this).addClass('context_menu_hover');
}, function() {
$(this).removeClass('context_menu_hover');
});
I have no control over the div itself as its part of a third party control soI am unable to add an id.
View 4 Replies
View Related
Dec 12, 2005
I know how to disable the context menu (the right hand mouse button) and how to replace it by my own menu. I also know that not everybody likes this - so let's not discuss about that here.
What I can't figure out and what I would like to know, is:
1) How to ADD elements to it, i.e. keep the original contents and add something to it;
2) How to RESTORE it to its original contents.
Does anyone know the code for a simple working example of these things?
View 1 Replies
View Related
Aug 2, 2007
I am creating html pages with forms where I use Dynarch menu script in a
context menu mode. Their script needs to be initialized like this:
<body onload="DynarchMenu.setup('menu', { context: true });">
This is in the beginning of the html page.
But, in my webpages I have only few pages where I actually use this kind of
menu. Since I use smarty template engine, I have single html-header file for
all pages - it includes the same <html><head><bodyetc. for each page.
So I tried to initialize this dynarch script only within the page that
actually uses this menu. I do it like this:
<form>[...]</form>
<ul id="menu">
[context menu elements definition here]
</ul>
<script>window.onload=DynarchMenu.setup('menu',{ context: true });</script>
This thing works OK in Firefox, however when I load such page in IE6 it
aborts the operation without even showing the page, and the popup message
says:
"Internet Explorer cannot open the Internet site http://example.com.
Operation aborted."
Does anyone know a way how to initialize the DynarchMenu.setup not from the
<bodyelement but from anywhere else in the html page?
View 2 Replies
View Related
Apr 23, 2009
I have a problem with YUI context menu. I want the menu to show different links (with product_id) in every row. I have been struggling with this for days no without result.My code is as follow:
Code:
$result = dbquery("SELECT ..........
echo "<table id='dataset' style='vertical-align: bottom' cellpadding='0' cellspacing='0' width='".$laius."' class='table11'>";
echo "<tr><td >TABLE HEADER</td></tr>";
[code]....
As you can see table row takes menu items according to id (type1, type2 etc).But as my table is created from mysql database dynamically, it does'n work that way.
View 1 Replies
View Related
May 14, 2003
opens a new window on the right side. resizes the main window. good for online help and
guided tours over multiple websites. still improving it....
View 2 Replies
View Related
Dec 9, 2009
I am displaying my own context menu in response to a right-click on control (textbox) in my ASP.NET application. In IE, I can suppress the display of the browser's own context menu by simply returning false from the javascript that displays my context menu.How can I suppress the browser context menus from Chrome or Firefox?
View 2 Replies
View Related
Feb 16, 2005
I want to add a context-menu to a button only. The aontext menu has to be dynamic one. it can be configurable.
View 1 Replies
View Related
Apr 27, 2005
Assuming I have an image in my page
I would like to invoke the 'save as' context menu for that image when the user left-clicks the image
I will have a link embedding the image. Clicking the link should invoke the menu and allow the user to save the image
Assuming I have 2 images. Image A and image B.
Image B is a small thumbnail version of image A
Image B is displayed on the screen
When the user left-clicks it, the 'save as' context menu should open (see previous question) and will allow the user to save image A (this is right, the original image and not the thumbnail being display)
Is this possible?
View 1 Replies
View Related
Jun 29, 2006
I have a TEXTAREA element. A user right clicks within in to get the context menu and they select "paste". I want my javascript code to know that they selected "paste". I know you can capture the mouse click, but can we capture exactly what event that attempted?
View 3 Replies
View Related
Jan 11, 2007
I recently started on a tree-folder display and used the Yahoo treeview control. Again it works very well and I am happy with the results. However, after seeing the treeview folder structure, my client asked if it would possible to add a right mouse click context menu to allow users to modify the folder tree -- add new folders, upload files, rename folders, delete folders, etc.
Updating the tree with the new elements is simple enough, but my attempts to implement the context menu have failed miserably. I have studied the Yahoo documentation and I can identify the name of nodes and the label of the element clicked on. But I can't figure out how to add the right-click code to the nodes the YUI Treeview generates.
I have successfully used various right-click Javascript scripts in the past -- but in those cases I was adding the function to an actual HTML element. The YUI elements are generated by the script, and I am at a loss as how to add the code to the generated node elements.
The application is part of a corporate intranet, and will only be used with Internet Explorer 6.0+ on Windows. The new context menu would completely replace the standard Windows context menu.
I am tempted to hack the YUI Treeview script to see if I can add a right click function similar to the Expand, Collapse and Clicked node functions, but I suspect that there is probably a simpler and easier way to do it.
View 2 Replies
View Related
Jul 23, 2005
Is it possible? Say We have a list of suppliers link like
A supplier
B supplier
when right click on a supplier, a context menu(that has
"details","view products", etc) appears and click on "view products
for this supplier" this click will redirect users to products page
showing all products from the supplier.
So href should look some like this
<a href="RightClicked(ཆ')">A supplier</a>
<script>
function RightClicked(supplierID)
{
// don't know I am making this up here
if (viewDetailsClicked)
ShowDetails(supplierID);
else if (viewProducts)
ShowProducts(supplierID)
etc
..
}
</script>
Can it be done, does anyone have the script?
View 3 Replies
View Related
Aug 17, 2011
Using onclick=window.open function in js to open a pdf file link in a new popup window. Works fine to display the file onscreen, but not if the user wants to save the file client-side to their computer. The right-hand-button context menu for the mouse will allow the user to download, but the file saved will be a html dump file for the webpage and the name of the file will be that for the webpage. Of course I can use the easy <a href> method for download links and the mouse context menu options will be as expected, but I can only use target="-blank" or target="_self". I need a popup window to open.
Could use :
oncontextmenu="alert('Left click the link to open, and then SAVE from with the pdf viewer')
to advise users how to save the file, and could use:
"javascript: void(0)"
To eliminate most mouse context menu options, so the user won't bother try. So how can I get a link to a file which can be viewed in a popup window and downloaded using mouse right-hand context menu?
View 7 Replies
View Related
Oct 31, 2009
I'm thinking of using this plugin for my menus. Is there an easy way to display a menu item in a disabled state?
View 1 Replies
View Related
Dec 22, 2011
I have a sharepoint site which I am integrating into and I wrote a hundreds of custom functions on my HTML demoin oldschool plain javascript based on the Unique IDs of the elements, however sharepoint 2007/or ASP.NET seems toprepend unique IDS with a long string of crap, the string of crap ('which I shall now refer to as the crapstring') changes based on which page you are on ("eg txtNameValue becomes zctl00_ctl16_g_b132ca0b_b2ad_4e2b_a5e0_8babbb67ff22_ctl00_txtNameValue'"). I found a piece of code in oldschool javascript which works on a page by page basis however I need something I can include in the header that performs the same function across all pages. I was thinking of something in Jquery that works on id*=
[Code]...
View 1 Replies
View Related
Jul 26, 2011
I wasted over 15 hours now and found 2 good one but they fail with latest jquery [code]...
it uses 1.3.2 and get break down with latest one
Second cool plugin i was able to find is [url]...
I am looking for a menu plugin which will work with latest jquery, dynamic width size, dynamic positions , minimal image.
View 1 Replies
View Related
Apr 25, 2011
I am using the cycle plugin on the frontpage of my client's site: [URL](using Platform Pro theme). The plugin works great, but I needed to add a drop down menu to the navigation bar. I can see the drop down menu (Banquet Rooms --> Banquet Menu) on all the pages without a cycle plugin. I know that the z-index is an issue with slideshows and drop down menus, but I cannot find where I need to raise the z-index. I've tried several parts of the nav bar and nothing changed.
View 1 Replies
View Related
Jul 19, 2011
I'm trying to dynamically disable a Superfish menu when in mobile mode (using responsive design), so that only the main menu items are displayed. I want the Superfish menu to be re-enabled when the browser window is re-sized and the desktop CSS is re-served.
I've tried using detach() and append() to remove and restore the ULs, but I can't get that to work properly.
View 1 Replies
View Related
Mar 28, 2011
Is there any plugin available for creation of drop down menu's using jquery.
View 1 Replies
View Related
Oct 20, 2011
Can any one recommend a vertical menu plugin that could be used in a sidebar. I've used Superfish, but I don't care for fly-outs and would prefer a collapsable version that drops straight down on click or mouse over.
View 1 Replies
View Related
Jun 25, 2010
I am using a VERY simple jquery plugin for styling drop down select menus.. The installation and implementation was SUPER simple.. Drop code here, name your select area, call for the jquery and JS pages.. Got it all working but I need just one little fix and I thought i figured it out, but apparently not. The person who created it did so with a max height option that is calculated based on the length of the list (it seems). This, to me, is crazy.. so if i have a three item list, there will ALWAYS be a scroller because its calculating the max height at one line item less than what is there. I am not very good with javascript and was hoping someone could have a look. The files and all of the stuff you would need can be found on this page: [URL]
View 1 Replies
View Related