tag:blogger.com,1999:blog-4768615780556150.comments2023-04-14T11:50:59.738+02:00Sharing to the PointUnknownnoreply@blogger.comBlogger66125tag:blogger.com,1999:blog-4768615780556150.post-71661999198225273302018-02-23T17:40:05.829+01:002018-02-23T17:40:05.829+01:00This still works great, thanks.This still works great, thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-14605461293711195042017-08-09T09:33:50.776+02:002017-08-09T09:33:50.776+02:00Hi,
I get the same 'ReferenceError' even ...Hi,<br /><br />I get the same 'ReferenceError' even though I referenced the jquery library in the masterpage. Any ideas why this might happen?Anonymoushttps://www.blogger.com/profile/13596456077419139701noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-47716072529313341402017-08-02T21:14:34.250+02:002017-08-02T21:14:34.250+02:00Create a form (Infopath / Nintex)Create a form (Infopath / Nintex)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-16065273017961418322017-06-28T14:19:09.139+02:002017-06-28T14:19:09.139+02:00Did you put the references to the jquery library i...Did you put the references to the jquery library in your page? It sounds like you're missing the jquery library since it fails at the $(document) part.Magalinoreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-57794288024894918792017-06-28T14:17:15.429+02:002017-06-28T14:17:15.429+02:00Hi! I can't really help much more than what...Hi! I can't really help much more than what's said in this post, the SaveInContact function is a good example of how to save data to a SharePoint list. You just need to get the values of the fields you want to save and pass them to that function. Magalinoreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-81976038762432060182017-06-28T14:14:14.440+02:002017-06-28T14:14:14.440+02:00Are you sure the clickMe function is called? Or ma...Are you sure the clickMe function is called? Or maybe the url of a new discussion isn't newform.aspx but something else?Anonymoushttps://www.blogger.com/profile/03734086715771261723noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-70147383833652916252017-06-26T17:43:36.730+02:002017-06-26T17:43:36.730+02:00Hey Magali,
I have tested your solution and got &...Hey Magali,<br /><br />I have tested your solution and got "ReferenceError: $ is not defined" line "$(document).ready(function()". Any suggestions?<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/07670969372734627501noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-52842745844796298742017-05-19T19:25:18.940+02:002017-05-19T19:25:18.940+02:00Not sure why but changing out the OpenDialog funct...Not sure why but changing out the OpenDialog function to:<br /><br />function openDialog(url) {<br /> var pageUrl=url;<br /> var title="New Discussion";<br /> SP.UI.ModalDialog.showModalDialog(<br /> {<br /> url: pageUrl,<br /> autoSize: true,<br /> title: title,<br /> dialogReturnValueCallback: function (result){<br /> if(result== SP.UI.DialogResult.OK){<br /> //refresh parent window<br /> window.location.href=window.location.href;<br /> }<br /> }<br /> }<br /> );<br />}<br /><br /><br />from https://social.technet.microsoft.com/Forums/en-US/f18062ed-2e17-440e-8e00-2904f5316802/discussion-board-forum-opens-in-other-page?forum=sharepointdevel<br /><br />and keeping the "(script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script)" piece fixed this for me on Sharepoint 2013.Anonymoushttps://www.blogger.com/profile/10992119105214065604noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-5278502645606478722017-03-29T07:29:30.005+02:002017-03-29T07:29:30.005+02:00Hi Magali,
i'm new in Sharepoint JS, plz help...Hi Magali,<br /><br />i'm new in Sharepoint JS, plz help me, i have a simple contact form only 4 field i want save all field data in SharePoint list.<br />how to save . <br /><br /> <br />Tahirhttps://www.blogger.com/profile/00720922175623891900noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-44940284475537668302017-03-06T21:47:47.054+01:002017-03-06T21:47:47.054+01:00Hi Magali, so glad i found this page! I'm tryi...Hi Magali, so glad i found this page! I'm trying to do the same thing but cannot get it to work. I have a page with a discussion web part but when i click on "new discussion" or the title of a thread, it still goes to the discussion list page instead of opening a modal. I changed the URL from forums.aspx to the url of the page where the discussion board web part is located but no luck. nateandechohttps://www.blogger.com/profile/00752751379375206967noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-70956029027464823032016-04-13T07:34:53.417+02:002016-04-13T07:34:53.417+02:00Hi Mangali,
I am stuck almost at the same point, h...Hi Mangali,<br />I am stuck almost at the same point, however I have tried the same steps as you mentioned. However following is the result. Below is sample navigation path<br />Level1<br /> -Level1.1<br /> -Level1.1.1<br /> -Level1.1.2<br /><br />First issue is that I am unable to show expanded levels like above, what I see is<br />Level1<br /> -Level1.1<br /> -Level1.1.1<br /> -Level1.1.2<br /><br />Second issue is that Whenever I click on child node.e.g. Level1.1.1 then all I see is<br /> -Level1.1<br /> -Level1.1.1<br /> -Level1.1.2<br />and root node which is Level 1 disappears altogether.<br />Can you pleas help, I am using simplelink or header setting<br />Thanks in advance,<br />Haroonchttps://www.blogger.com/profile/06457666218865152976noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-66309070809994943892016-03-09T17:53:04.125+01:002016-03-09T17:53:04.125+01:00Thank you so much for this code! One thing to note...Thank you so much for this code! One thing to note, Jquery is required. I made the mistake of not including it on my first attempt at using your solution and was confused for a bit xD Donald Nguyenhttps://www.blogger.com/profile/12677739150986714576noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-49984674139793389862016-02-15T17:15:40.954+01:002016-02-15T17:15:40.954+01:00I'm assuming your custom menu has a parent ele...I'm assuming your custom menu has a parent element with an ID, in which case you just replace the code on line 24 and add the ID of your element there (instead of "#NavRootAspMenu"). It will then look at each list item it encounters inside of that parent element. You may want to remove or replace the a.static part though, as a custom menu will probably use different classnames. Anonymoushttps://www.blogger.com/profile/03734086715771261723noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-77510346571837898762016-02-15T17:11:59.332+01:002016-02-15T17:11:59.332+01:00For the top navigation: to make the section headin...For the top navigation: to make the section headings work without using an actual link you can give them "/" as href. In my term store, top terms that have underlying terms all have a "simple hyperlink or header" as their type of navigation (I might get lost in translation here, my environment is in Dutch) and I just fill in "/". It's been a while since I looked at that code again but I think I've updated it last time, I will need to look at it soon to see if it is still up-to-date here.Anonymoushttps://www.blogger.com/profile/03734086715771261723noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-6883102192766388342016-02-11T12:06:03.305+01:002016-02-11T12:06:03.305+01:00Good day
How do u achieve the same results with a...Good day<br /><br />How do u achieve the same results with a custom menu?<br /><br />TmanAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-14662838904049069012016-02-04T04:51:00.111+01:002016-02-04T04:51:00.111+01:00This seems to attach to the top navigation too, an...This seems to attach to the top navigation too, and there's another problem - they only expand if your section heading is a link, and the link then doesn't work. If it's not a link, it won't expandAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-60576518260068723422015-12-07T20:29:13.294+01:002015-12-07T20:29:13.294+01:00Hi Bret,
Did you got any fix for DisplayForm.aspx?...Hi Bret,<br />Did you got any fix for DisplayForm.aspx?ID=42 , I am also getting same, I tried as Magali De shown here , but didn't find anything,MAFhttps://www.blogger.com/profile/02755725265607538798noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-64338264143109498582015-12-07T20:27:13.764+01:002015-12-07T20:27:13.764+01:00Hi Brent,
I have same problem as you had it- I am ...Hi Brent,<br />I have same problem as you had it- I am also getting DisplayForm.aspx?ID=12, did you got any fix as Magali De mentioned ,MAFhttp://google.comnoreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-76177708077185955622015-11-27T11:47:46.697+01:002015-11-27T11:47:46.697+01:00I'm glad to hear my script was of use to you!....I'm glad to hear my script was of use to you!. Also thank you for sharing your code! Anonymoushttps://www.blogger.com/profile/03734086715771261723noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-19398698792139769952015-11-20T13:03:56.801+01:002015-11-20T13:03:56.801+01:00Hello,
I tried exactly the same steps
1. Created...Hello,<br /><br />I tried exactly the same steps<br /><br />1. Created new folder in Style library named 'Scripts' and put this JS file<br />2. Created one more txt file for javascript and placed in site assests<br />3. Put the second file in calendar page below the calendar in Content editor webpart<br />4. Saving the page and clicking on Event link in Monthly view<br /><br />It did not work for me. Can you let me know if I need to do something here to get this work<br />Anonymoushttps://www.blogger.com/profile/07685551671720250581noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-5965739253253703332015-10-14T17:42:50.464+02:002015-10-14T17:42:50.464+02:00I've used a variation of this excellent script...I've used a variation of this excellent script - many thanks, it's very much appreciated! However I was finding that as I was using calendar overlays, I was getting default times added in (which I didn't want), so I added this in to the ClickMe function to get rid of them:<br />$('.ms-acal-sdiv').each( function(){ $(this).html($(this).html().replace(/12:00 am/g,''));});<br />And also this css to get rid of other time fields: <br />.ms-acal-time {display:none;} Notty Dreadhttp://www.thenaturalmystic.comnoreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-29162276072303908742015-09-15T10:22:11.155+02:002015-09-15T10:22:11.155+02:00I'm sorry for my late reply! I've been neg...I'm sorry for my late reply! I've been neglecting my blog again...<br />I never add code directly to a page using SPD, so I'm not familiar with that. But usually the script editor web part does the trick. Do make sure you put the script tag on one line, I've split it up in two lines in my post here but that was because I wanted to improve the readability. Other than that, check if your jQuery is working properly. <br />About the object expected error, I'd think it's due to either bad HTML syntax or an invalid source. Check if you're calling the function properly.Anonymoushttps://www.blogger.com/profile/03734086715771261723noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-679323437576436372015-09-15T10:14:22.194+02:002015-09-15T10:14:22.194+02:00That's true, it won't work when you're...That's true, it won't work when you're on a document library or a list. I didn't program it that way, but I suppose with a bit of tweaking you can get it to work the way you want it to.Anonymoushttps://www.blogger.com/profile/03734086715771261723noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-35404589779206068272015-08-19T08:35:02.923+02:002015-08-19T08:35:02.923+02:00if i at document library or list. breadcrumb not w...if i at document library or list. breadcrumb not working.. :(gih nihhttps://www.blogger.com/profile/04560616219002009435noreply@blogger.comtag:blogger.com,1999:blog-4768615780556150.post-2815488768656793002015-07-31T15:33:44.327+02:002015-07-31T15:33:44.327+02:00Hi! Thanks a lot for the code. I have tried adding...Hi! Thanks a lot for the code. I have tried adding it to the page both with the script editor and by adding the code directly on the page (with SPD). None of these ways seem to make it work.<br /><br />I have checked the browser's debugger and I get an error on the the ClickMe() function saying "Object expected" and on the first line of this function ( $('a[href*="DispForm.aspx"]').each(function() { ) I get "$:undefined".<br /><br />Any ideas? <br /><br />Thanks a lot!!!j o t ahttps://www.blogger.com/profile/06770356121138835480noreply@blogger.com