I have the newest version of Java and I have Java and JavaScript enabled.
HELP? What do I need to do to fix this ... I ve tried everything I know and have no idea where to go from here.
I have a form that has a <textarea></textarea>
I want curse words to be masked out with ***. For example...
var badwords = eval("/apple|grape|pear|orange|pineapple/ig");
document.myForm.message1.value = document.myForm.message1.value.replace(badwords- "***")
My form is set to onsubmit="badwords()" which loads the above function. When they click submit it s supposed to replace the words within the eval statement with ****. It works with onKeyDown or OnClick Onchange but not with OnSubmitt.
Do I need to make a cookie or something????? Why can t I simply reassign the value of the textarea and keep the text there upon submission.
var badwords = eval("/apple|grape|pear|orange|pineapple/ig");
document.myForm.message1.value = document.myForm.message1.value.replace(badwords- "***")
how do i check if my browser supports javascript?
also...im trying to download a song from youtube and everytime i try to type the code- i cant ( the code is like 8 letters and it only lets me type 4...)
this is the page im in http://rs299.rapidshare.com/files/111870815/Why_is_the_Rum_Gone_INST.mp3
any help is appreciated :)
<script lang = "JavaScript">
<!--
var head_counter = 0; var span_size = 0; var a = 0; var x = 10;
function main(){
var wordDoc = new ActiveXObject( Word.Application );
var file = wordDoc.Documents.Add();
var format = wordDoc.Selection;
var table;
wordDoc.Visible = true;
wordDoc.activate();
format.Font.Name = "Calibri";
var report = window.open("http://www.google.com");
var doc = report.document;
alert(x);
}
//-->
</script>
<html>
<body>
<FORM>
<p align = "left">Click the button to send current report to word!</p>
<INPUT TYPE="BUTTON" value = "Export Current Report" onClick = "main()">
</br>
<h6>Not Operational</h6>
</FORM>
</body>
</html>
everything works fine up to the alert(x); can anyone explain why alert(x) isnt being executed?
both windows are still open- and the alert box doesnt show up at all
No comments:
Post a Comment