[Xerte] Calling a function

xerte at lists.nottingham.ac.uk xerte at lists.nottingham.ac.uk
Wed Aug 22 09:13:56 BST 2007


You need to modify rloObject.js and add your functions to the bottom of
it like this:

function myFunction(arg){
  alert('I am a function and my argument is ' + arg);
}

Then you can call the function from Xerte using getURL:

getURL('javascript:myFunction('a test');');

Julian

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of
xerte at lists.nottingham.ac.uk
Sent: 21 August 2007 22:37
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Calling a function

I am trying to minimize the active window from a button.  Although
javascript will not minimize the window, there is a workaround.  The
following code moves the current window off screen.

<script language="javascript">
show=1
function minimize(){
  moveBy(2000,2000)
  show=0
}
function reshow(){
  if(show==0){
    moveBy(-2000,-2000)
    show=1
  }
}
</script>

I plan to add the code onfocus=reshow() to the body tag.  When the focus
is passed back to the window, the code in the body tag will return the
screen to it's original location.

I also need to add code so the button calls the function:  minimize().
I need help here.  How can I call this function in Xerte?

Jim

James Bowman Associates
Customized Quality Management Services

701 Canterbury Drive
Appleton, WI 54915
Phone:  800-731-7488
Fax:  920-731-7193
james at jbassoc.biz
www.jbassoc.biz

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list