Glowworm27
Programmer
Hello all java gurus,
Im a vb.net programmer, and am having trouble with this javascript.
I have a form with a textbox on it, and a button. when the user clicks the button another window opens with some values the user can select.
What I want to be able to do is when the user selects the value, insert that text back into the original forms textbox value.
I can do that, however the tricky part is I want the value to be appended with a preceding semicolon(
then the value the user selected, if the textbox already has some data in it, otherwise just insert the value the user selected.
I have been tinkering with some existing javascript I have here could you please tell my why its not working
Thanks in advance
George Oakes
Check out this awsome .Net Resource!
Im a vb.net programmer, and am having trouble with this javascript.
I have a form with a textbox on it, and a button. when the user clicks the button another window opens with some values the user can select.
What I want to be able to do is when the user selects the value, insert that text back into the original forms textbox value.
I can do that, however the tricky part is I want the value to be appended with a preceding semicolon(
I have been tinkering with some existing javascript I have here could you please tell my why its not working
Code:
<script> if (window.opener.document.forms[0].TextBox1.value == "") { window.opener.document.forms[0].TextBox1.value = 'Accounting'} else {window.opener.document.forms[0].TextBox1.value += '; Accounting'}';self.close()</script>
Thanks in advance
George Oakes
Check out this awsome .Net Resource!