Click here to Skip to main content
15,887,485 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: toggleClass and hasClass Pin
Richard Deeming15-Mar-18 8:03
mveRichard Deeming15-Mar-18 8:03 
GeneralRe: toggleClass and hasClass Pin
VK1915-Mar-18 8:42
VK1915-Mar-18 8:42 
GeneralRe: toggleClass and hasClass Pin
Richard Deeming15-Mar-18 8:45
mveRichard Deeming15-Mar-18 8:45 
GeneralRe: toggleClass and hasClass Pin
ZurdoDev15-Mar-18 10:25
professionalZurdoDev15-Mar-18 10:25 
QuestionNo JavaScript! Pin
Member 137103915-Mar-18 13:17
Member 137103915-Mar-18 13:17 
AnswerRe: No JavaScript! Pin
Richard MacCutchan5-Mar-18 21:44
mveRichard MacCutchan5-Mar-18 21:44 
GeneralRe: No JavaScript! Pin
Nitin S28-Jun-18 1:23
professionalNitin S28-Jun-18 1:23 
QuestionWhat does ".then" mean in JavaScript? Pin
Xarzu22-Feb-18 14:27
Xarzu22-Feb-18 14:27 
What does ".then" mean in JavaScript?

Consider this snippet of code:

<pre lang="Javascript">
return ajaxService.request('post', 'api/{ticketId}/alt-forms/getSatelliteMapUrl', geoCodedata, { failureMessage: 'Failed to Geocode SatMap/PDF'})
.then(function (satelliteMapData, data) {
</pre>

Is the ".then" comment attached immediately to the previous "return" statement? If so, how? If not, then would the functionality of this JavaScript bit not be impacted if I put an "alert" statement immediately before the ".then" statement and immediately after the "return" statement?
AnswerRe: What does ".then" mean in JavaScript? Pin
Richard MacCutchan22-Feb-18 22:09
mveRichard MacCutchan22-Feb-18 22:09 
AnswerRe: What does ".then" mean in JavaScript? Pin
Richard Deeming23-Feb-18 0:58
mveRichard Deeming23-Feb-18 0:58 
QuestionHow do I make a pop-up window in JavaScript? Pin
Xarzu21-Feb-18 12:34
Xarzu21-Feb-18 12:34 
AnswerRe: How do I make a pop-up window in JavaScript? Pin
Peter_in_278021-Feb-18 17:16
professionalPeter_in_278021-Feb-18 17:16 
AnswerRe: How do I make a pop-up window in JavaScript? Pin
Richard Deeming22-Feb-18 0:40
mveRichard Deeming22-Feb-18 0:40 
Questionhow to add col dynamically using js and html Pin
Member 1368695921-Feb-18 1:03
Member 1368695921-Feb-18 1:03 
AnswerRe: how to add col dynamically using js and html Pin
Richard MacCutchan21-Feb-18 2:03
mveRichard MacCutchan21-Feb-18 2:03 
AnswerRe: how to add col dynamically using js and html Pin
ZurdoDev21-Feb-18 9:02
professionalZurdoDev21-Feb-18 9:02 
QuestionUsing JQuery on and off for events Pin
jkirkerx20-Feb-18 13:17
professionaljkirkerx20-Feb-18 13:17 
AnswerRe: Using JQuery on and off for events Pin
Richard Deeming21-Feb-18 8:07
mveRichard Deeming21-Feb-18 8:07 
GeneralRe: Using JQuery on and off for events Pin
jkirkerx22-Feb-18 7:31
professionaljkirkerx22-Feb-18 7:31 
Questionnodejs and WSDL Pin
dfgdsgjghiouyiouyol19-Feb-18 0:43
dfgdsgjghiouyiouyol19-Feb-18 0:43 
Question(NodeJS) ejs ignoring if statement if a css class is added to the element Pin
random_xyz12-Feb-18 5:08
random_xyz12-Feb-18 5:08 
QuestionJquery: How to conditionally attach/detach bootstrap datepicker with textbox Pin
Mou_kol7-Feb-18 8:17
Mou_kol7-Feb-18 8:17 
AnswerRe: Jquery: How to conditionally attach/detach bootstrap datepicker with textbox Pin
Mou_kol7-Feb-18 8:22
Mou_kol7-Feb-18 8:22 
Questionjquery addClass and removeClass not working Pin
Mou_kol5-Feb-18 22:47
Mou_kol5-Feb-18 22:47 
AnswerRe: jquery addClass and removeClass not working Pin
Richard Deeming6-Feb-18 2:29
mveRichard Deeming6-Feb-18 2:29 

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.