0
votes
2answers
27 views

Speedometer gauge using calculated columns?

My idea is implement a speedometer gauge at the top of my page that will change dynamically based on the average of a column, what i'm thinking is to use three speedometer images (low/med/high) and ...
0
votes
1answer
22 views

How to create a verticle cascading menus in sharepoint

Can anybody suggest a code to create a verticle cascading dropdown lists in sharepoint using content editor?
1
vote
2answers
79 views

jQuery not working properly

In the editform.aspx of an item, I am trying to use jQuery to cause a pop up to go off anytime a field is changed (sort of silly, but once I get this to work, I plan on moving to doing more). However, ...
0
votes
0answers
71 views

400 (Bad Request) ERROR while trying to use JS files in Content Editor Web Part

So, I added some code in Content Editor Web Part and code is started like this: <script src="/<MyURL>/_layouts/15/SP.Runtime.js" type="text/javascript"></script> <script ...
2
votes
3answers
187 views

How to put an iFrame with a QueryString appended in its src in the ContentEditorWebPart?

I have a SharePoint site Page in which i need to put an iFrame element to display a web page.To achieve that I wrote some html and javascript within CDATA tag inside the Content section of a ...
0
votes
1answer
59 views

Some JS files are included at rendered page but I cannot find how

I am migrating a site from SP2010 to SP2013. The old site is not built by me so I am not familiar with the old design. After migrated to SP2013 (run in SP2013 mode already) In one of the page ...
0
votes
2answers
873 views

Javascript in content editor web part not working after publishing the page

I have a publishing page in which I have placed content editor web part which contains the link to redirect the user to application page. Code in the content editor web part is: <script ...
1
vote
1answer
394 views

Get selected items from JavaScript in the document library view

I have a page in which I have placed XsltListView web part to show the view of the picture library. Above that view I have placed a link using Content Editor Web Part which redirects to other web ...
0
votes
2answers
881 views

Reference to javascript file in Content Editor Webpart

I have site which is non root site i.e. url of site is: http:///sites/xxx I want to place a content editor web part and refer a link to javascript file which is stored in the Style Library. My code ...
0
votes
1answer
119 views

Edit Items in DVWP using ECMAscript from CEWP

Is it possible to edit items in a dataview webpart using javascript from a content editor webpart on the same page. What methods would I use? What I want to do is manipulate certain columns in a list ...
2
votes
0answers
125 views

SharePoint Edit Mode Javascript error in edit mode

I am not able to edit the page from the browser. I used to change and edit webparts when suddenly in the edit mode everything looks like it is locked/stalled. When I open the debugger tool, I saw a ...
0
votes
1answer
375 views

Javascript in CEWP on EditForm.aspx not kicking off in Chrome

In our SharePoint 2010 Enterprise environment I tried adding Javascript into a Content Editor Web Part on a custom List's EditForm.aspx page, and for some reason the code only runs when the form is in ...
0
votes
1answer
158 views

I have to create the pivot table and pivot chart based on the sharepoint list data 2010

I need to create the pivot table and pivot chart based on the sharepoint list data 2010. Please help. Thanks!
0
votes
2answers
475 views

getElementById javascript in a cewp

Please bear with me as I am still learning sharepoint and web technologies in general. I have put a rotator on my sharepoint page using the easy to use script generated by ...
0
votes
0answers
44 views

Script File and Calculated Column Format/Data Types

This may be a bit of a best practices question, but today I made a few changes to the site/lists I'm developing to facilitate development and data rendering. In CEWPs I've begun using .aspx files ...
1
vote
2answers
356 views

How to include a 'yes' and 'no' button on the PreSaveAction() on the EditForm.aspx to return true/false accordingly?

I am simply looking to use the PreSaveAction() in a content editor web part as an extra cautionary step prior to saving a list item. Here is what I have: function PreSaveAction() { alert('Are ...
1
vote
0answers
499 views

Javascript in CEWP queries a list every time dropdown is changed on NewForm.aspx not working

I am trying to apply javascript in a CEWP to a NewForm.aspx page of a simple custom list. Basically, the idea is to auto-populate a text field on the new item form whenever a dropdown column's ...
1
vote
0answers
78 views

Update CEWP without refreshing page

I have a webpart which contains 3 charts. The charts are built using google's chart API and SPJS Chart The problem I face is that I'm trying to get the charts to seamlessly update as the list gets ...
0
votes
1answer
88 views

How many files can I link in the CEWP

I have a CEWP which contains HTML button and JS for functionality. The html editor of the cewp keeps removing certain links from my code and I'd rather just link to the source file. How do I link to a ...
0
votes
1answer
112 views

Show/Hide button based on User Email. Error: Unexpected identifier

I have a JavaScript which I use to hide or show a button based on the logged in user. Button: <a id="customAddNew" ...
1
vote
2answers
426 views

Is it possible for a html textbox to populate a sharepoint column in a list?

Here is the scenario: SharePoint 2010 doesn't have a back button, this makes it difficult when a user messes up in a branched survey. I have created a little JavaScript embedded html page that I ...
2
votes
3answers
2k views

How to Create Piechart in sharepoint 2010 Based on the List item Values? Only using Javascript/jquery

I have a CustomList in Sharepoint 2010 as Mentioned Below.have two columns Team and Values of Team List A Team ValuesofTeam A 9 A 6 B 7 C ...
0
votes
4answers
340 views

How to get the list item column values based on the html drop down and display in the alert box using Javascript?

I have a html dropdown list(team name) which contains three values A,B,C I have a sharepoint 2010 List A which contains Team name and Email. List A Teamname Email A A@test.com B ...
0
votes
2answers
342 views

Enlarge a Choice column's “specify your own value” text area?

Can anyone suggest a way to make the "specify your own value" text box larger in the Edit Form of a list item's Choice column? I would like to make it look more like a multi-line text field type, ...
3
votes
2answers
3k views

Disable a form text field with jquery in CEWP not working in Chrome/Firefox

I want to simply disable a text field (specifically a "person/group" field text box) from being editable on the edit form page of my list item. I have it working in IE using a Content Editor Web Part ...
0
votes
1answer
392 views

Grabbing a filter value via CEWP code behind

I have employed a Query String Filter to parse a value and send it to a chart web part. now I would like to use this value in a CEWP to provide an explaination/clarification for the chart, but the ...
1
vote
1answer
120 views

Web Part JS ToggleMe not running

I want to add toggled visible / invisible divs to a SharePoint wiki page, and put the function for the toggling in a web part. My toggling script works fine testing outside of SharePoint, but inside ...
1
vote
1answer
1k views

JavaScript in CEWP does not execute

After putting a small script together and pasting it into the Content Editor Web part all my breakpoints show the following warning in IE 8's debugger: "The breakpoint is not valid. No executable code ...
0
votes
3answers
2k views

JavaScript window.location doesn't work in content editor webpart

my issue is, that the following script with its window.location function doesn't work in a sharepoint content editor webpart. I've tested it as a standalone and it worked fine, but as soon I inserted ...
2
votes
1answer
654 views

Javascript is changing in Content Editor WebPart

I want to add this a Widget in my sharepoint site. But every time someone edit the page, it mess the script. Someome knows why sharepoint is changing the script? And how to avoid it? The script that ...
0
votes
2answers
1k views

Javascript How can I return a value for document.write in CEWP with javascript

I am new to this, and I am just trying to understand how to use some of the javascript I have learned in different ways. This may be a question of context, but an examples or explanation is always ...
2
votes
2answers
1k views

JavaScript with CEWP using ClientContext, do I need to add src to tag?

I am new to SP Dev and I am trying to add some CEWPs that reference javascript I have placed in text files and uploaded to a document library. For bland functions it seems to work fine, however for ...
0
votes
1answer
947 views

Javascript in Content Editor will not run unless our URL is a trusted site

We have a client that have their systems set up so that the Javascript in a Content Editor on a page does not seem to run unless they add the url of the site to the list of Trusted Sites in Internet ...
0
votes
1answer
588 views

Put Easy-Tabs in page layout rather than CEWP

Another question about the fantastic Christophe Humbert Easy Tabs library: Can the library be included in a page layout for a publishing site rather than in a content editor web part? This way it's ...
3
votes
5answers
2k views

Why am I unable to save JavaScript in a Content Editor Web Part?

I am trying to follow this link and put all the code in a CEWP as suggested. After saving the page the code goes away (except for the gear part, top line). I could really use some help if possible.
0
votes
1answer
435 views

JavaScript code block messing with drop-downs in Menu

I am using SharePoint 2010 and I need to place the following JavaScript code on a page to give me time in Rome <SCRIPT LANGUAGE="JavaScript"> function GetTime() { var dt = new Date(); ...
0
votes
5answers
5k views

Expand 1st Group and collapse 2nd Group in list view

I have a list view Grouped by Status column. Status Contains Active and closed values. now i want the default view to open with, Status:Active group to be Expanded and Status:Closed group to be ...
1
vote
2answers
2k views

Preventing Duplicate Items in list (sharepoint 2007)

Is it possible to restrict, creation of duplicate list item in the Sharepoint 2007, using Javascript in content editor webpart to validate when an list item is added?
4
votes
4answers
10k views

“the HTML source you entered might have been modified”

"the HTML source you entered might have been modified" In SharePoint 2010, this is the scary message you get everytime you use the "edit HTML source" button with the Content Editor Web Part. In ...
3
votes
4answers
4k views

jQuery and SharePoint 2010 - How can I tell is the page is in edit mode, using javascript?

I have some javascript in a CEWP that I want to execute only when the page is in display mode. I've used firebug to scour the page for some "msEditMode" type of variable or something I can rely on. ...
1
vote
2answers
1k views

Content Editor Webpart Javascript Issue

I have recently upgrade our test environment to SP 2010 (using DB detach and attach approach). And also we did not do the Visual Upgrade. We have few CEWP's which is now starting throwing JS script ...