[Xerte] Re: Opening Vimeo videos in a new pop-up window

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Aug 17 10:57:46 BST 2011


DO this:

Your JS function isn't handling the parmaters:

function load(url){
  window.open(url, '', 'scrollbars=no', 'some more params)
}

Make sure you put quotes around the params you send to the function from xerte:

callJS('load', 'myURLInQuotes');

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Janis Ozols
Sent: 17 August 2011 10:54
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Re: Opening Vimeo videos in a new pop-up window

Thank you, Julian! It works but with a small but... However I am not sure if I am doing it right... Sorry for being so dull, but its complicated for video editor )) What I have done is:
I added a swf button to xerte + script to it -   
callJS('load', http://google.com);

in index.htm where my rlo is I added:
<Script Language="JavaScript">
function load() {
var load = window.open('http://google.com','','scrollbars=no', 'some more parameters');
}
</Script>

it works perfectly.... but then I want to add another link... and problems start!
in xerte I put callJS('load2', http://yahoo.com);

I tried several options in index.htm but they don't work...
I added a new script, or a new function to previous one... but it doesn't work... like
<Script Language="JavaScript">
function load2() {
var load = window.open('http://yahoo.com','','scrollbars=no', 'some more parameters');
}
</Script>

Is it possible to make 2 different links working? should I use different functions? or there should be one function for all links? 
Once again sorry for troubling )
Janis


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


More information about the Xerte mailing list