Click here to Skip to main content
15,394,635 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionReact.Js Pin
Regis Valoch Tangou1-May-22 6:14
MemberRegis Valoch Tangou1-May-22 6:14 
AnswerRe: React.Js Pin
timDeHof3-Jul-22 3:30
MembertimDeHof3-Jul-22 3:30 
QuestionAngular exceljs adding an image gives the error: u.readFile is not a function at exceljs.min.js:3:449768 Angular application Pin
Stephen Holdorf25-Apr-22 8:54
MemberStephen Holdorf25-Apr-22 8:54 
AnswerRe: Angular exceljs adding an image gives the error: u.readFile is not a function at exceljs.min.js:3:449768 Angular application Pin
Richard Deeming25-Apr-22 21:10
mveRichard Deeming25-Apr-22 21:10 
QuestionDisappearing linked drop-down menus Pin
gosipp24-Apr-22 11:59
Membergosipp24-Apr-22 11:59 
AnswerRe: Disappearing linked drop-down menus Pin
Richard MacCutchan24-Apr-22 21:39
mveRichard MacCutchan24-Apr-22 21:39 
GeneralRe: Disappearing linked drop-down menus Pin
gosipp24-Apr-22 21:42
Membergosipp24-Apr-22 21:42 
QuestionReloading a wav file after ended Pin
Burketa219-Apr-22 7:24
MemberBurketa219-Apr-22 7:24 
After the file is played, you need to load a new file and start playback.

According to my plan, I did this:


the file "au.js"

JavaScript
function replay()
{
	var aud = document.getElementById("audio_label");
	aud.src = "cap.wav?cb=" + new Date().getTime();
	aud.load();
	aud.play();
}

function hproc(e)
{
	replay();
}

var x = document.getElementById("audio_label");
x.addEventListener('ended',hproc,false);


the "index.html"


HTML
<pre><script src="au.js"></script>
<body>
<audio id="audio_label" autoplay controls src="cap.wav"
type="audio/wav"></audio>


...plays only once...
AnswerRe: Reloading a wav file after ended Pin
Richard Deeming19-Apr-22 21:30
mveRichard Deeming19-Apr-22 21:30 
QuestionHow to convert tagged text into html formatted text? Pin
Alex Dunlop18-Apr-22 19:25
MemberAlex Dunlop18-Apr-22 19:25 
QuestionLoops, someone to help me Pin
FranciscaNunes200412-Apr-22 10:30
MemberFranciscaNunes200412-Apr-22 10:30 
AnswerRe: Loops, someone to help me Pin
Richard MacCutchan12-Apr-22 21:16
mveRichard MacCutchan12-Apr-22 21:16 
AnswerRe: Loops, someone to help me Pin
Member 1562749529-May-22 21:29
MemberMember 1562749529-May-22 21:29 
QuestionReact date formatting Pin
Simon_Whale7-Apr-22 3:25
professionalSimon_Whale7-Apr-22 3:25 
AnswerRe: React date formatting Pin
Peter_in_27807-Apr-22 3:34
professionalPeter_in_27807-Apr-22 3:34 
AnswerRe: React date formatting Pin
Richard Deeming7-Apr-22 4:01
mveRichard Deeming7-Apr-22 4:01 
Questionjava project Pin
Turki F773-Apr-22 15:30
MemberTurki F773-Apr-22 15:30 
AnswerRe: java project Pin
Richard Deeming3-Apr-22 21:26
mveRichard Deeming3-Apr-22 21:26 
QuestionAsync call inside loop finishes later than loop itself Pin
Bohuslav Parenica2-Apr-22 0:51
MemberBohuslav Parenica2-Apr-22 0:51 
AnswerRe: Async call inside loop finishes later than loop itself Pin
Richard Deeming3-Apr-22 21:33
mveRichard Deeming3-Apr-22 21:33 
QuestionTransforming Excel to Html (javascript) Pin
Member 1554681528-Mar-22 0:09
MemberMember 1554681528-Mar-22 0:09 
GeneralMessage Closed Pin
23-Mar-22 19:02
MemberRichardrussel23-Mar-22 19:02 
QuestionMessage Closed Pin
23-Mar-22 19:00
MemberRichardrussel23-Mar-22 19:00 
QuestionFormulario js Pin
Member 155607559-Mar-22 7:18
MemberMember 155607559-Mar-22 7:18 
AnswerRe: Formulario js Pin
RedDk9-Mar-22 7:33
MemberRedDk9-Mar-22 7:33 

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.