Click here to Skip to main content
15,507,526 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionConvert a number or numbers into spoken words using JavaScript? Pin
samflex24-Oct-16 10:31
samflex24-Oct-16 10:31 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
ZurdoDev24-Oct-16 11:21
professionalZurdoDev24-Oct-16 11:21 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
Nathan Minier25-Oct-16 2:50
professionalNathan Minier25-Oct-16 2:50 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
F-ES Sitecore26-Oct-16 5:18
professionalF-ES Sitecore26-Oct-16 5:18 
GeneralRe: Convert a number or numbers into spoken words using JavaScript? Pin
samflex26-Oct-16 10:38
samflex26-Oct-16 10:38 
Questionvariable undefined Pin
wfzen21-Oct-16 9:08
wfzen21-Oct-16 9:08 
AnswerRe: variable undefined Pin
Richard MacCutchan21-Oct-16 23:11
mveRichard MacCutchan21-Oct-16 23:11 
AnswerRe: variable undefined Pin
Rahul VB22-Oct-16 9:28
professionalRahul VB22-Oct-16 9:28 
Just try to fetch the value of "x" in the below code outside "myFunction"
C#
x = xmlDoc.getElementsByTagName("videoName")[0];


I am wondering, if the value of "x" is dying out. I also cant see the closing braces of "myFunction" or no return value of "x" from the function.

Is the below code a part of "myFunction" ?

C#
 var x, xmlDoc, videoName;
  xmlDoc = xml.responseXML;
  x = xmlDoc.getElementsByTagName("videoName")[0];
  videoName = (x.textContent);
  alert (videoName);
 
var playerURL = "http://" + getCookie("MediaServerGeneral") + "/IVP/demo.htm?XMLName=" + var2 + "&MediaFileName=" + videoName;



If so, just try out reading the value of the element out side the function and see.
Please let me know the result once.

Thanks
GeneralRe: variable undefined Pin
wfzen25-Oct-16 13:20
wfzen25-Oct-16 13:20 
Questiongenerate html on separate page Pin
dcof17-Oct-16 11:22
dcof17-Oct-16 11:22 
Rant[REPOST] generate html on separate page Pin
Richard Deeming18-Oct-16 3:00
mveRichard Deeming18-Oct-16 3:00 
QuestionSave form data without using Php Pin
LincolnMugasho16-Oct-16 7:21
professionalLincolnMugasho16-Oct-16 7:21 
AnswerRe: Save form data without using Php Pin
F-ES Sitecore17-Oct-16 0:21
professionalF-ES Sitecore17-Oct-16 0:21 
AnswerRe: Save form data without using Php Pin
Nathan Minier17-Oct-16 2:09
professionalNathan Minier17-Oct-16 2:09 
Questioncosmetic fix, get the spinner to show for a second Pin
jkirkerx14-Oct-16 10:43
professionaljkirkerx14-Oct-16 10:43 
AnswerRe: cosmetic fix, get the spinner to show for a second Pin
Richard Deeming17-Oct-16 3:00
mveRichard Deeming17-Oct-16 3:00 
GeneralRe: cosmetic fix, get the spinner to show for a second Pin
jkirkerx17-Oct-16 7:29
professionaljkirkerx17-Oct-16 7:29 
GeneralRe: cosmetic fix, get the spinner to show for a second Pin
jkirkerx17-Oct-16 7:53
professionaljkirkerx17-Oct-16 7:53 
GeneralRe: cosmetic fix, get the spinner to show for a second Pin
Richard Deeming17-Oct-16 8:38
mveRichard Deeming17-Oct-16 8:38 
GeneralRe: cosmetic fix, get the spinner to show for a second Pin
jkirkerx17-Oct-16 11:15
professionaljkirkerx17-Oct-16 11:15 
QuestionBig Data beginner, where do I start? Pin
roraaa_9-Oct-16 17:58
roraaa_9-Oct-16 17:58 
AnswerRe: Big Data beginner, where do I start? Pin
Richard MacCutchan9-Oct-16 22:52
mveRichard MacCutchan9-Oct-16 22:52 
GeneralRe: Big Data beginner, where do I start? Pin
Mycroft Holmes9-Oct-16 23:33
professionalMycroft Holmes9-Oct-16 23:33 
QuestionDealing with browser caching and updated script files Pin
Matt U.28-Sep-16 10:39
Matt U.28-Sep-16 10:39 
AnswerRe: Dealing with browser caching and updated script files Pin
User 171649228-Sep-16 13:31
professionalUser 171649228-Sep-16 13:31 

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.