Stump the Panel: Forum: jQuery for Everyone - Recent Topics http://www.endusersharepoint.com/STP/ Paul Grenier, Lead Moderator en Thu, 23 Apr 2009 16:05:11 +0000 eric on "Create an email all link with jQuery" http://www.endusersharepoint.com/STP/topic/create-an-email-all-link-with-jquery#post-6084 Thu, 23 Apr 2009 09:27:18 +0000 eric 6084@http://www.endusersharepoint.com/STP/ <p>I've got a a customized DispForm that pulls in data from a registration list. This displays people who have registered for an event and displays it with the details of the event.</p> <p>What I'd like to be able to do, is create a hyperlink or button on the page that iterates through the list of users and when clicked, opens a mailto: href that is populated with all the users. </p> <p>Any ideas on how this could be accomplished with jQuery? </p> krishnet on "SPGridView Group By Count using JQuery" http://www.endusersharepoint.com/STP/topic/spgridview-group-by-count-using-jquery#post-6058 Wed, 22 Apr 2009 12:48:58 +0000 krishnet 6058@http://www.endusersharepoint.com/STP/ <p>Hello,</p> <p>I have a custom search web part written using C# that queries one or more document/form libraries and displays the resultset using SPGridView Control(not a view). </p> <p>I have enabled grouping in SPGridView control based on the user selected field.</p> <p>I don't know how to display group count at the header row. For e.g.</p> <p>What I wanted is to display # of child elements for each group. </p> <p>Group1 (3)&lt;--- where (3) is the number of elements in this group.</p> <p>...Child1</p> <p>...Child2</p> <p>...Child3</p> <p>Group2 (2)&lt;--- where (2) is the number of elements in this group.</p> <p>..Child1</p> <p>..Child2</p> <p>Here is the structure of my HTML:</p> <p>&lt;table&gt;</p> <p>&lt;tr class='ms-gb'&gt;<br /> &lt;td&gt;Parent1 &lt;/td&gt;<br /> &lt;/tr&gt;</p> <p>&lt;tr&gt;<br /> &lt;td&gt;child1&lt;/td&gt;<br /> &lt;/tr&gt;</p> <p>&lt;tr&gt;<br /> &lt;td&gt;child2&lt;/td&gt;<br /> &lt;/tr&gt;</p> <p>&lt;tr&gt;<br /> &lt;td&gt;child3&lt;/td&gt;<br /> &lt;/tr&gt;</p> <p>&lt;tr class='ms-gb'&gt;<br /> &lt;td&gt;Parent2 &lt;/td&gt;<br /> &lt;/tr&gt;</p> <p>&lt;tr&gt;<br /> &lt;td&gt;child1&lt;/td&gt;<br /> &lt;/tr&gt;</p> <p>&lt;tr&gt;<br /> &lt;td&gt;child2&lt;/td&gt;<br /> &lt;/tr&gt;</p> <p>&lt;/table&gt;</p> <p>If a &lt;tr&gt; has 'ms-gb' class then it is header or group by record. I need to count all the other &lt;tr&gt;s that are under the &lt;tr class ='ms-gb'&gt; and append the count to &lt;tr class ='ms-gb'&gt;. </p> <p>I know it can be done with Jquery but I'm very new to this technology and don't know how to start with.</p> <p>I'd appreciate if anyone can provide a code snippet of how to accomplish this task. </p> <p>Thanks a lot. </p> 27palms on "Dressing up hyperlinks" http://www.endusersharepoint.com/STP/topic/dressing-up-hyperlinks#post-5993 Mon, 20 Apr 2009 09:16:41 +0000 27palms 5993@http://www.endusersharepoint.com/STP/ <p>Paul, I think I may be barking up the wrong tree and using attempting to use jQuery to address my knowledge gap, who knows...</p> <p>I have a workflow that runs when new items are added to a list. One step in the workflow builds a dynamic string that points back to a list item. The string built is a relative url that is then stored in hyperlink field within the list. </p> <p>Fields that are typed as hyperlink have two pieces of informaiton. The URL and the description. I'm writing into the URL but I really want the list to say "View Item" as its description. </p> <p>I'm able to do that when editing myself but I don't see how you write something to the description field when you are creating a record through a workflow. </p> <p>To cust a long story short....when my list is rendered on the screen I simply want it to say:</p> <p>"View Item" rather than "/Lists/History/AllItems.aspx?&#38;FilterField1=CID&#38;FilterValue1=17" </p> Dave T on "Preview pane causing pain" http://www.endusersharepoint.com/STP/topic/preview-pane-causing-pain#post-5954 Fri, 17 Apr 2009 14:27:48 +0000 Dave T 5954@http://www.endusersharepoint.com/STP/ <p>Paul,<br /> I have used many of your jquery solutions without a problem. But the preview pane is not working at all. I have tried both list and calendar. When I hover over an item, nothing happens. Any suggestions? </p> <p>Thanks!!<br /> Dave </p> maounde on "Quick launch accordion" http://www.endusersharepoint.com/STP/topic/quick-launch-accordion#post-5433 Fri, 27 Mar 2009 08:15:27 +0000 maounde 5433@http://www.endusersharepoint.com/STP/ <p>I attended the workshop and got the custom web parts. I followed the steps for the localized version as I am on a https url. I created a "javascripts" library, put the jquery.min.js in it), put the webpart, but no result :-(<br /> Mark Miller on his demo, had other stuff on is javascripts library (3 folders... if I recall correctly). What am i missing?<br /> Olivier </p> kirgisk on "List Settings Choice Column" http://www.endusersharepoint.com/STP/topic/list-settings-choice-column#post-5948 Fri, 17 Apr 2009 12:02:36 +0000 kirgisk 5948@http://www.endusersharepoint.com/STP/ <p>I have created a list to request appointment times. Data collected is name, email, phone number and Appointment time. The Appointment time are in 15 minutes intervals (e.g 1:00 - 1:15, 1:15 - 1:30) is there any way to prohibit a new entry from using on of the choices that have already been selected. </p> FranKaWaKiaK on "Ranking Items in a List" http://www.endusersharepoint.com/STP/topic/ranking-items-in-a-list#post-5939 Thu, 16 Apr 2009 18:06:47 +0000 FranKaWaKiaK 5939@http://www.endusersharepoint.com/STP/ <p>Here is what I am trying to do with a SharePoint list:</p> <p>I am using out of the box SharePoint 2007, no SharePoint developer available..</p> <p>I have a column called 'priority' which is currently a choice column (1-50)</p> <p>Is there a way to have it so when the user selects an item to be of priority '1' it will take the existing priority '1' item and bump it down to '2' and so on. If you've ever changed column ordering or the views it uses this same process.</p> <p>Any tips or suggestions would be beneficial, thank you! </p> Bellivo on "Changing time frame on gantt chart..." http://www.endusersharepoint.com/STP/topic/changing-time-frame-on-gantt-chart#post-5903 Wed, 15 Apr 2009 15:00:43 +0000 Bellivo 5903@http://www.endusersharepoint.com/STP/ <p>Currently, the time basis for the gantt chart is days and I have the need to schedule in hours. Is there a way to do this..? </p> RUANAPE on "When mouse over field in form, how change text displayed" http://www.endusersharepoint.com/STP/topic/when-mouse-over-field-in-form-how-change-text-displayed#post-5867 Tue, 14 Apr 2009 15:26:36 +0000 RUANAPE 5867@http://www.endusersharepoint.com/STP/ <p>I am using MOSS 2007, and I am trying to have it so when a user puts the cursor over a field in a form they need to fill out, text will show explaining what is needed in that particular field. Ultimately, I would love to bind each field to a coresponding description located in a 'field help' list. The list has only 2 columns; a name column and a description column. I only have access to SP designer 2007. Hopefully I gave enough info for someone to help me....I'm stumped. </p> mparter on "Customise Quick Launch Link using jQuery" http://www.endusersharepoint.com/STP/topic/customise-quick-launch-link-using-jquery#post-5881 Wed, 15 Apr 2009 09:57:04 +0000 mparter 5881@http://www.endusersharepoint.com/STP/ <p>I'd link to customise a link in the Quick Launch in a custom site definition to show a modal dialog box instead of a default hyperlink. Doing it programmatically in .NET doesn't look do-able because the object model for navigation nodes expects a Url.</p> <p>My next thought was to modify the link using jQuery when the page loads. However I've not done much with jQuery so how do I go about removing the current hyperlink and add an onclick event handler to open up a modal dialog box, e.g. window.showModalDialog("http://url?tempId=123");</p> <p>I've already tried as a test to embed the following into the page PlaceholderMain placeholder using SharePoint Designer but the code didn't seem to fire.</p> <p> $(document).ready(function() {<br /> $('#zz2_QuickLaunchMenun1 &gt; a:first').attr("href", "#");<br /> $('#zz2_QuickLaunchMenun1 &gt; a:first').click(function() {<br /> window.showModalDialog("http://server/class/Pages/CoreMaterials.aspx?siteId=b1ce2e86-27bd-4134-9760-e0ba96a3bb1f&#38;unit=F1C612", "", "dialogHeight:400px;dialogWidth:400px;scroll:no;status:no");<br /> }); </p> cepes on "Preview/Thumbnail of document in Library?" http://www.endusersharepoint.com/STP/topic/previewthumbnail-of-document-in-library#post-5871 Tue, 14 Apr 2009 17:11:15 +0000 cepes 5871@http://www.endusersharepoint.com/STP/ <p>Hi:<br /> Does anyone know if it's possible to have a thumbnail preview (or the like) of various documents in a Document Library?</p> <p>I see products like those below and I would love to show a preview of what a spreadhseet or a PDF looks like by hovering over it.</p> <p>Charlie Epes<br /> Buffalo, NY</p> <p>Dynamic Image Preview: <a href="http://components.developers4web.com/dynamic-image-preview" rel="nofollow">http://components.developers4web.com/dynamic-image-preview</a><br /> Thumbshots: <a href="http://www.thumbshots.com" rel="nofollow">http://www.thumbshots.com</a> </p> suzyshush on "Search a specific list using jquery "quickSearch" plugin" http://www.endusersharepoint.com/STP/topic/search-a-specific-list-using-jquery-quicksearch-plugin#post-5792 Fri, 10 Apr 2009 15:50:55 +0000 suzyshush 5792@http://www.endusersharepoint.com/STP/ <p>Would someone please nudge me in the right direction? I feel like I'm all over the map in trying to invent a way to make this work. This is for my hospital's Registration Manual.</p> <p>I have a very large list with three key columns: Initial Visit Code, Second Visit Code, and Action. My goal was to provide a look-up search for our Registration staff to quickly look up an action based upon two other codes. They don't want to have the results displayed out of the box because that will take the user to another search results page, and they want to stay on the "Same Day Visit Look-up" page. They also prefer not to use Views because they want the staff to identify the first code, then the second code specifically, and have the page display only one action.</p> <p>I found an example of something I'd like implement. It's the Table example found here: <a href="http://rikrikrik.com/jquery/quicksearch/." rel="nofollow">http://rikrikrik.com/jquery/quicksearch/.</a> The title of the article is "jQuery quickSearch plug-in". I would like to try to search for the Initial Visit Code at the minimum, but ideally have another search box for the Second Visit Code (and of course tie them to my code list to only give the user the available codes as options). I would like the list to miraculously shrink to the only available option in the list!</p> <p>Is this possible, or am I going to be limited to Views? I'm presently in the Advanced Search box avenue....don't know how long I will stay there, but is that my only option?</p> <p>Thanks very much for any input.<br /> Suzanne </p> bensch on "Setting the base url for one web part." http://www.endusersharepoint.com/STP/topic/setting-the-base-url-for-one-web-part#post-5777 Thu, 09 Apr 2009 07:47:45 +0000 bensch 5777@http://www.endusersharepoint.com/STP/ <p>Hi all,</p> <p>I've just stumbled across YQL as a means of screen scraping HTML content from one site and displaying it in an XML web part on a SharePoint page. </p> <p><strong><em>...It is Awesome!</em></strong></p> <p>Try whacking the following URL in an XML web part to get an idea of what can be done:</p> <p><a href="http://query.yahooapis.com/v1/public/yql?q=SELECT%20" rel="nofollow">http://query.yahooapis.com/v1/public/yql?q=SELECT%20</a>*%20FROM%20html%20WHERE%20url%3D%22http%3A%2F%2Fpublic.ukcrn.org.uk%2FSearch%2FPortfolio.aspx%3Flevel1%3D2%22%20AND%20xpath%3D%22%2F%2Ftable%5B%40id%3D'ctl00_contentMain_gvStatsLevel2'%5D%22&#38;format=xml</p> <p>[You'll need to copy the entire URL there]</p> <p>Now this table displays just fine, but the links in the source html page are all relative and are therefore broken in the context of the SP site.</p> <p>If I knew XSL even a bit I am sure I could amend this XML output to prepend the URL of the source site. </p> <p>BUT I am thinking this could also be an interesting use of JQUERY too? </p> <p>Any ideas on a clever workaround here?</p> <p>Cheers<br /> Ben </p> WHakos on "Freezing Columns in Custom Lists" http://www.endusersharepoint.com/STP/topic/freezing-columns-in-custom-lists#post-5811 Mon, 13 Apr 2009 15:03:45 +0000 WHakos 5811@http://www.endusersharepoint.com/STP/ <p>I have been tasked with putting together a central list in SharePoint combining together a number of different spreadsheets currently held in Excel. While there is a great deal we can do with views, I did get a request to see whether or not it is possible to freeze columns similar to the Excel Freeze Panes.</p> <p>I see that there was some work done with the Gantt Chart in particular, can this sort of thing be applied to to a generic list as well? </p> eric on "Add a button to a page" http://www.endusersharepoint.com/STP/topic/add-a-button-to-a-page#post-5140 Fri, 13 Mar 2009 15:08:11 +0000 eric 5140@http://www.endusersharepoint.com/STP/ <p>This is a counter to hiding the survey button thread we had a couple weeks ago, <a href="http://www.endusersharepoint.com/STP/topic/incomplete-surveys-not-visible#post-4491." rel="nofollow">http://www.endusersharepoint.com/STP/topic/incomplete-surveys-not-visible#post-4491.</a></p> <p>In the Employee Training template, I'd like to add a button on the DispForm for courses that calls a calculated column I created that is a hyperlink to an iCal export so I can remove the toolbar.</p> <p>With JQuery Paul was able to hide the button so that leads me to believe one could be added. I'm sure it is a lot more difficult. Any pointers would be great.</p> <p>Edit:<br /> Or is there a way to format a calculated column so that it displays a pretty URL instead of something like <a href="https://MyDomain/sites/register/_vti_bin/owssvr.dll?CS=109&#38;Cmd=Display&#38;List=%7B64C70AD0%2D7150%2D4B4F%2DAB71%2D2BF8688916B3%7D&#38;CacheControl=1&#38;ID=1&#38;Using=event.ics" rel="nofollow">https://MyDomain/sites/register/_vti_bin/owssvr.dll?CS=109&#38;Cmd=Display&#38;List=%7B64C70AD0%2D7150%2D4B4F%2DAB71%2D2BF8688916B3%7D&#38;CacheControl=1&#38;ID=1&#38;Using=event.ics</a> </p> kayjay on "jQuery - Open link in new window for view using Groupings" http://www.endusersharepoint.com/STP/topic/jquery-open-link-in-new-window-for-view-using-groupings#post-5295 Fri, 20 Mar 2009 07:32:00 +0000 kayjay 5295@http://www.endusersharepoint.com/STP/ <p>Hi,</p> <p>The SharePoint "Link to a Document" content type allows you to easily add links into document libraries. The HTML code for a "Link to a Document" looks like this:</p> <p><code>&lt;a href=&quot;/sites/Nest/V3Training/Onboarding.aspx&quot;&gt;Onboarding&lt;img width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;Use SHIFT+ENTER to open the menu (new window).&quot; class=&quot;ms-hidden&quot; src=&quot;/_layouts/images/blank.gif&quot;/&gt;&lt;/a&gt;</code></p> <p>I have been using the jQuery code below to open these links into a new window.<br /> The code works fine on library views that DO NOT use the <strong>grouping</strong> feature. It also works fine for views with grouping that initially display ALL Groups EXPANDED.</p> <p>However, it <strong>refuses to work when the library view uses grouping and ALL Groups are COLLAPSED</strong>.<br /> The grouping feature in SharePoint uses Javascript functions and I guess it conflicts with the jQuery code somehow. I just can't figure out how!</p> <p><strong>Any ideas? Thanks!</strong></p> <pre><code>&lt;script src=&quot;http://mysp/sites/Nest/JQuery/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; $(document).ready(function() { $(&#39;a[onclick*=SharePoint.Link]&#39;).attr(&#39;target&#39;,&#39;_blank&#39;); var test = $(&#39;a[onclick*=SharePoint.Link]&#39;); alert(test); }); &lt;/script&gt;</code></pre> 27palms on "Calling a centrally located jQuery master from all pages" http://www.endusersharepoint.com/STP/topic/calling-a-centrally-located-jquery-master-from-all-pages#post-5475 Fri, 27 Mar 2009 20:49:06 +0000 27palms 5475@http://www.endusersharepoint.com/STP/ <p>Like most people I have been collecting Paul's excellent jQuery scripts. I have added a few of them together into one script that I use on all pages and views. You could think of it as my "default master file" as it does a host of features for all pages like accordian menu, print friendly list etc. </p> <p>I'm at a stage now where I'd like to put that script in one central place and have all pages and views reference it instead of copying it out to all pages again if I updated it. The idea is that I make one change to the master and it flows through the site, rather than revisiting every page and making the update. Each page would carry a webpart with a small script that applies whatever is in the master file to the page. </p> <p>What's the best way to go about this? </p> patrick.abel on "Embedding AJAX/PHP page into a Page Viewer Web-Part" http://www.endusersharepoint.com/STP/topic/embedding-ajaxphp-page-into-a-page-viewer-web-part#post-5666 Fri, 03 Apr 2009 11:21:49 +0000 patrick.abel 5666@http://www.endusersharepoint.com/STP/ <p>Hey guys,</p> <p>I have had quite alot of problems trying to figure out how to create effective form solutions for WSS 3.0. I have learned how to use workflows tied to lists, but getting some of the features of validation, redirect upon submission, and easy editing have led me away from what sharepoint has to offer.</p> <p>I have created a AJAX form that is driven by PHP you can see at:</p> <p><a href="http://spaceclub-hsv.org/contact_form/Copy%20of%20contact.html" rel="nofollow">http://spaceclub-hsv.org/contact_form/Copy%20of%20contact.html</a></p> <p>It validates on a field by field basis and reports errors and completion with AJAX without a need for a page refresh. My problem is that, when I try and tie this website into a Page Viewer web-part, it doesn't know how to handle it. I was under the impression that the Page Viewer web-part was merely a "viewer" and all the interaction was still taking place on the host site, but this may not be the case with using AJAX. Is there a solution for this? Thanks</p> <p>Patrick </p> laura67 on "Hide the Approve/Reject Item button" http://www.endusersharepoint.com/STP/topic/hide-the-approvereject-item-button#post-4734 Mon, 02 Mar 2009 12:01:39 +0000 laura67 4734@http://www.endusersharepoint.com/STP/ <p>Hi panel!<br /> I've got a custom list, and I have content approval turned on. I'm using SPD workflows to control the approval process, so I don't really want the "Approve/Reject Item" button displaying on the DispForm page because it's confusing the end users.</p> <p>Is there a way via scripting in the CQWP to hide this button?<br /> I've read that there's a way to have a developer custom-develop my own toolbar, and install it on the server, etc, but I don't have that kind of resource right now.</p> <p>Laura Rogers </p> JoyceMR on "Change al urls to invoke Lytebox?" http://www.endusersharepoint.com/STP/topic/change-al-urls-to-invoke-lytebox#post-5099 Thu, 12 Mar 2009 00:13:33 +0000 JoyceMR 5099@http://www.endusersharepoint.com/STP/ <p>Is there a way with jQuery to be able to modify all urls in a particular web part to have the parameters to invoke the url in a Lytebox? </p> eric on "Left nav arrow replacement on a publishing site" http://www.endusersharepoint.com/STP/topic/left-nav-arrow-replacement-on-a-publishing-site#post-5045 Tue, 10 Mar 2009 16:59:32 +0000 eric 5045@http://www.endusersharepoint.com/STP/ <p>I come in search of a question that I'm hoping jquery or css can fix. I'm stylizing my left nav panel in our publishing portal page. I'd like to replace the black arrow with my own. Is there CSS or JQuery that I can use to replace the server largearrowright.gif with my own when the page is loaded? </p> rwhitworth on "Rounded corners for web parts" http://www.endusersharepoint.com/STP/topic/rounded-corners-for-web-parts#post-4611 Wed, 25 Feb 2009 16:20:41 +0000 rwhitworth 4611@http://www.endusersharepoint.com/STP/ <p>I know this has been asked on here previously, but found some info that I hoped you could use to help solve the problem. This link on the ShareTheLearning blog talks about using the jquery.round plugin (http://sharethelearning.blogspot.com/2008/11/jquery-in-sharepoint-example-rounded.html)</p> <p>Is there a way to reference this plug-in using the google api so I do not have to download the plug-in? If not, where is the best place to store the downloaded plug-in in sharepoint?</p> <p>And, with all that said, do you see a way to do web part rounded corners using this method? </p> lkidd on "jquery.min.js" http://www.endusersharepoint.com/STP/topic/jqueryminjs#post-4945 Fri, 06 Mar 2009 14:22:47 +0000 lkidd 4945@http://www.endusersharepoint.com/STP/ <p>I attended the Jan 30 "SharePoint Superstar" training and am finally getting around to implementing some of the web parts. I don't want to call jquery.min.js from Google. Where do I find a copy of jquery.min.js to host on my own site? </p> dkirkham on "Resizing SQL Report Webpart" http://www.endusersharepoint.com/STP/topic/resizing-sql-report-webpart#post-4941 Fri, 06 Mar 2009 13:36:46 +0000 dkirkham 4941@http://www.endusersharepoint.com/STP/ <p>I apologize if this has been answered, but I couldn't find it.</p> <p>Like most webparts, the SQL Reports webpart will grow dynamically to fill the screen horizontally, but not vertically. If you do not specify the vertical size of the webpart the default is too short to be usable. Specifying a vertical size helps, but Microsoft put the "Apply" button at the bottom of the Parameters panel and is often not visible without scrolling down. What I would like is to have the webpart resized to the available screen area, keeping the Apply button in view and allowing users with bigger screen to not be limited to a short report view. Based on what I have seen done in JQuery on other webparts, I'm sure this is possible. I just don't know JQuery well enough to figure it out. Thanks </p> brunosworld on "Opening documents in a new window" http://www.endusersharepoint.com/STP/topic/opening-documents-in-a-new-window#post-4816 Tue, 03 Mar 2009 17:17:58 +0000 brunosworld 4816@http://www.endusersharepoint.com/STP/ <p>OK i got so far as to edit the ONET file ( I did make a copy of it first :-&gt; ) to add the code that jonathon frost used in<br /> <a href="http://www.jjfblog.com/2006/12/one-issue-that-came-up-during-recent.html" rel="nofollow">http://www.jjfblog.com/2006/12/one-issue-that-came-up-during-recent.html</a></p> <p>This works for the Document Librabries, but what about content query web parts, that does not work. Has anyone found a solution to opening documents in new windows across all sites and pages. </p>