Click here to Skip to main content
15,888,351 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: How to Load Content Without Refreshing Menu Bar. Pin
Nathan Minier20-Sep-16 0:59
professionalNathan Minier20-Sep-16 0:59 
AnswerRe: How to Load Content Without Refreshing Menu Bar. Pin
W Balboos, GHB21-Sep-16 6:07
W Balboos, GHB21-Sep-16 6:07 
Questionunexpected identifier: quick question Pin
shoysmTP19-Sep-16 1:59
shoysmTP19-Sep-16 1:59 
AnswerRe: unexpected identifier: quick question Pin
Richard Deeming19-Sep-16 2:20
mveRichard Deeming19-Sep-16 2:20 
GeneralRe: unexpected identifier: quick question Pin
shoysmTP19-Sep-16 3:56
shoysmTP19-Sep-16 3:56 
Questionjavascript message on web app Pin
dcof16-Sep-16 15:07
dcof16-Sep-16 15:07 
AnswerRe: javascript message on web app Pin
Nathan Minier19-Sep-16 1:39
professionalNathan Minier19-Sep-16 1:39 
QuestionAdding New Button using java script Pin
Member 1274349616-Sep-16 1:29
Member 1274349616-Sep-16 1:29 
Hi All,

I am very new to java script , actually I have one HTML page and I am using it in SAP that page contains buttons like 'Save' Bold' 'Italic' Etc all word formatting options.

Like in this editor above we have B I U , Small and BIG and ETC..

when I open that code in note page I have observers that below code has written to create a button.

JavaScript
/* START CONFIG */
var nicSaveOptions = {
	buttons : {
		'save' : {name : __('Save this content'), type : 'nicEditorSaveButton'}
	}
};
/* END CONFIG */

var nicEditorSaveButton = nicEditorButton.extend({
	init : function() {
		if(!this.ne.options.onSave) {
			this.margin.setStyle({'display' : 'none'});
		}
	},
	mouseClick : function() {
		var onSave = this.ne.options.onSave;
		var selectedInstance = this.ne.selectedInstance;
		onSave(selectedInstance.getContent(), selectedInstance.elm.id, selectedInstance);
	}
});

nicEditors.registerPlugin(nicPlugin,nicSaveOptions);


with the above code Save button is displaying in the tool bar.
Now I want to add another button in the tool bar with different logo EX : To send email

Can you please help me how to add new button and it's event for that button.( the above button having even I copied the same code and paste I got that save option two times )
AnswerRe: Adding New Button using java script Pin
Nathan Minier16-Sep-16 1:49
professionalNathan Minier16-Sep-16 1:49 
QuestionChatbot js code Pin
SolidSnake71-Sep-16 7:26
SolidSnake71-Sep-16 7:26 
AnswerRe: Chatbot js code Pin
Dominic Burford6-Sep-16 2:51
professionalDominic Burford6-Sep-16 2:51 
AnswerRe: Chatbot js code Pin
ZurdoDev6-Sep-16 6:06
professionalZurdoDev6-Sep-16 6:06 
QuestionHTML and javascript dashboard Pin
Member 1271309731-Aug-16 3:21
Member 1271309731-Aug-16 3:21 
SuggestionRe: HTML and javascript dashboard Pin
Nathan Minier31-Aug-16 8:12
professionalNathan Minier31-Aug-16 8:12 
AnswerRe: HTML and javascript dashboard Pin
W Balboos, GHB14-Sep-16 4:48
W Balboos, GHB14-Sep-16 4:48 
SuggestionRe: HTML and javascript dashboard Pin
Harpreet05Kaur26-Sep-16 1:50
Harpreet05Kaur26-Sep-16 1:50 
AnswerRe: HTML and javascript dashboard Pin
Harpreet05Kaur26-Sep-16 1:24
Harpreet05Kaur26-Sep-16 1:24 
QuestionHow can I swap only body element between HTML pages? Pin
lino_7630-Aug-16 8:08
lino_7630-Aug-16 8:08 
AnswerRe: How can I swap only body element between HTML pages? Pin
Richard Deeming30-Aug-16 8:34
mveRichard Deeming30-Aug-16 8:34 
AnswerRe: How can I swap only body element between HTML pages? Pin
Nathan Minier31-Aug-16 1:55
professionalNathan Minier31-Aug-16 1:55 
QuestionCollect text and images from image pdf using JS or AngularJS Pin
Member 1270857628-Aug-16 22:47
Member 1270857628-Aug-16 22:47 
AnswerRe: Collect text and images from image pdf using JS or AngularJS Pin
Richard MacCutchan28-Aug-16 23:00
mveRichard MacCutchan28-Aug-16 23:00 
GeneralRe: Collect text and images from image pdf using JS or AngularJS Pin
Member 1270857629-Aug-16 0:18
Member 1270857629-Aug-16 0:18 
QuestionJavascript reverse help Pin
313help23-Aug-16 3:29
313help23-Aug-16 3:29 
AnswerRe: Javascript reverse help Pin
Richard Deeming23-Aug-16 4:35
mveRichard Deeming23-Aug-16 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.