Is there a way to be able to transport the value of a local variable to a function that is out of scope? I welcome any suggestions.
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript">
- function some_Function() {
- somecode....;
- var_Local = some_Value;
- }
- </script>
- <script type="text/javascript">
- function some_Other_Function() {
- somecode....;
- }
- </script>
- <form action="http://www.mydomain.com/results.php" method="post"
- name="form" onsubmit="return (some_Other_Function(var_Local))">
- </form>
Thanks