Answer the question
In order to leave comments, you need to log in
How to make array output js split?
Hello.
Please fix how to do it right...
if( typeof respond.error === 'undefined' ){
var files_path = respond.files;
console.log("HELLO 2");
var html = '';
$.each( files_path, function( key, val ){ html += val +'<br>'; } )
var str = html;
var re = str.split("/home/user/www/");
html = "https://" + re[1];
$('.ajax-respond').html( html );
}
Answer the question
In order to leave comments, you need to log in
I think it's a generic background with two radial gradients. And in front of 3 gradients make translucent.
//...начиная со строки с $.each:
$.each( files_path, function( key, val ){
html += "https://" + val.replace(/^\/home\/user\/www\//, "") +'<br>';
} )
//... остальное убираем и далее:
$('.ajax-respond').html( html );
/.*\/home\/user\/www\//
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question