The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
I want to use a variable in a Javascript routine. Here's the bit, if I leave the part in red off, it works ... but users have to know the path:
Code:
function avi() {
var text = getText();
if (helpstat) {
alert("Plays various media formats.\n\nUSE: [avi]"& strForumURL & "/player.swf[/avi]");
} else if (basic) {
AddTxt="uploads/"+<%=cStr(MEMBERID)%>+"/[/red]"+ text + "\]Play Media";
AddText(AddTxt);
} else {
if (text) {
txt=prompt("URL Link to media file.",text);
} else {
txt=prompt("URL Link to media file.","Text");
}
if (txt!=null) {
AddTxt="Play Media";
AddText(AddTxt);
}
}
}
