developer sign in
where » create » reference » looping

custom functions


Within the script, developers can create custom functions to suit the specific needs of their JIN page. Like JavaScript, custom functions can handle more or less passed parameters then defined in the functions signature. If more parameters are passed, the custom function will ignore the additional parameters.

Note: there is no break directive.
         there is no return directive.


Syntax
function (var1, var2, ..., varN) {
}
Example
<script>
function doSomething(foo, foo2) {
  // in here foo == "hi" and foo2 == null
  //  you can still reference foo2 without defining it
  foo2 = foo;
}
</script>

...

<pr>
  <input type="button" value="Press Me" onSelect="doSomething('hi')" />
</pr>


terms of use | privacy policy | about | FAQ | blog | jobs | contact us
For 24/7 support email support@where.com or call 888-262-1150
WHERE™ is a product from uLocate Communications, Inc. ©2007 All Rights Reserved.