[Xerte-dev] Re: Proof of concept test - Revisited

Ron Mitchell ronm at mitchellmedia.co.uk
Fri Nov 9 10:14:09 GMT 2012


Thanks for looking John
you wouldn't believe how much time I've spent on this - I've tried different
JS functions, building in delays, adding a button as Julian suggested. It
has to be some kind of conflict with something in or linked from play.php
but it beats me why it would only be a problem with IE.

The difference in code is simply that one is just a stand-alone LO whereas
the other has all the XOT code.

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 09 November 2012 09:49
To: xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

Hi

I spent a good hour or more looking at the code delivered via both links to
the 3 main different browsers but couldn't see anything obvious. Why is the
html and rlo.js so different for both links?

Regards

John Smith
Learning Technologist
School of Health and Life Sciences

Sent from Samsung Galaxy SII



Ron Mitchell <ronm at mitchellmedia.co.uk> wrote:


It's very odd but there's clearly something missing or clashing...

It works from XOT via a typical play link like
/play.php?template_id=29&page=2 in all browsers apart from IE The same LO
works locally in all browsers including IE via a link like
/index.htm?template_id=29&page=2 Obviously in the latter the template=x
isn't doing anything but I've been replicating the xot link in case the
extra param was causing a problem

The JS works
The xerte code works
So I'm thinking it's either a problem with the callJS function unique to IE
when used via XOT or some kind of clash with something else in play.php or
linked from play.php?

From: xerte-dev-bounces at lists.nottingham.ac.uk
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 09 November 2012 09:10
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

So the function is getting called for sure in IE, but you can't access the
params?

From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of
Pat Lockley
Sent: 08 November 2012 16:35
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

url encoding of the values in the parameter?

On Thu, Nov 8, 2012 at 4:35 PM, Ron Mitchell
<ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>> wrote:

Thanks Pat, John, Julian

I've been testing this further (using IE9) and as far as I can see
document.location.search, location.search, and window.location.search all
work with IE9. To try to isolate the problem I've tried two things:



1. Created the attached test file and then used
http://localhost/deep_link_test2.php?page=3&pageID=three and the alert shows
the correct values with each of above options



2. I tried adding a button to the xerte function as Julian suggested to
ensure everything had loaded and then displaying one of the variables on
click of the button which shows as undefined when viewing the lo via
play.php?page=3 but works fine when viewing the LO via index.htm?page=3



So I'm stumped! :-(





From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Pat Lockley
Sent: 08 November 2012 16:17

To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

i thought i said this :)

On Thu, Nov 8, 2012 at 3:58 PM, Smith, John
<J.J.Smith at gcu.ac.uk<mailto:J.J.Smith at gcu.ac.uk>> wrote:
And this one says you should use window.location.search and not
document.location.search as it has the broadest browser support.

http://stackoverflow.com/questions/763044/removing-from-document-location-se
arch

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University


-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Smith, John
Sent: Thursday, November 08, 2012 3:48 PM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

Hi,

Sorry, just reading these emails... could it be this:

http://www.winvistatips.com/null-document-location-search-ie7-launching-loca
l-file-t300545.html

W3Schools website states that it is location.search that is supported in all
browsers?

http://www.w3schools.com/jsref/prop_loc_search.asp

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University


-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Julian Tenney
Sent: Thursday, November 08, 2012 1:52 PM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

What happens if you put button on the interaction, and then click that, when
you're damn sure the page has loaded up to execute the function call? Does
it just not work, or is it timing?

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Ron Mitchell
Sent: 08 November 2012 13:09
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

in oninitComplete with the script below attached.

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Julian Tenney
Sent: 08 November 2012 11:31
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

OK, then possibly the other way around:
http://stackoverflow.com/questions/11846560/as-2-0-externalinterface-call-no
t-calling-javascript-functions<http://stackoverflow.com/questions/11846560/a
s-2-0-externalinterface-call-not-calling-javascript-functions>

suggest the DOM may not be filly loaded when you call the function: where is
the callJS call being made from in the xerte file? In onInit, or something
that happens 'later'?

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Ron Mitchell
Sent: 08 November 2012 11:27
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

callJS e.g.

/code for page=x
// only want to redirect once so check if redirect already done if
(rootIcon.urlRedirectDone == undefined){
  // only check if not in preview mode
  if (_level0jumpData.fileType == undefined){
    // is there a pageID or page value in the url?
   destinationPage = callJS("getUrlParam","page");
    //check for a page number first
    //debug('destinationPage= '+destinationPage);
    if (destinationPage != "null" && destinationPage !=undefined){
    //debug('we are here 1');
      // we have a page number
      if (rootIcon.pages.length > 1){
        // we have a fully populated page list
        //reduce number found in url by 1 to match array
         destinationPage = destinationPage-1;
           // flag redirect as done then go to destination page
               rootIcon.urlRedirectDone = 1;
           rootIcon.gotoPage(destinationPage);
                       break;
        }
      }
    }
   }

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Julian Tenney
Sent: 08 November 2012 11:17
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

Forgive my ignorance, is this being called from Flash?

Is it being called via ExternalInterface, or the xerte function callJS()
that wraps it?

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Ron Mitchell
Sent: 08 November 2012 11:18
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

Yeah I think we've established that a link like
http://vle.jisctechdis.ac.uk/xot/play.php?template_id=22&page=12 works in
all browsers apart from IE - the question is why!? ;-)

Seems it must be the JS that IE treats differently - anyone got any ideas or
an alternative?

function getUrlParam(pairName){
var searchString = document.location.search; var pairVal = "";

searchString = searchString.substring(1);

var nvPairs = searchString.split("&");

  for (i = 0; i < nvPairs.length; i++)
  {
     var nvPair = nvPairs[i].split("=");
         if (nvPair[0] == pairName){
           pairVal = nvPair[1];
         }
  }
  return pairVal;
}

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Julian Tenney
Sent: 08 November 2012 11:07
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

I did, no dice.

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Ron Mitchell
Sent: 08 November 2012 11:10
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

Looks like the 2nd and 3rd links below have wrapped and therefore broken so
to test please re-add the e or 557 when testing.

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Ron Mitchell
Sent: 08 November 2012 11:03
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Proof of concept test - Revisited

Hi Jonathan/all
prompted by a couple of recent discussions I've been revisiting this desire
to enable 'deep linking' to pages within LO's especially online XOT LO's....

Firstly before anyone chips in with a whole load of why's and wherefore's
again read the previous thread - not all of which is included below. In
short there is agreed value in enabling this so it would be good to focus
any new discussion here on getting it to work as well as possible.

I've been updating the previous test file and we have a new oninnitComplete
function to remove the need for an additional delay. I should add that my
focus for this is primarily XOT so that's what I've been testing with.
There's also a separate discussion about possibly changing the use of pageID
used by the connectors to use linkID instead but in a way that's a separate
issue and in any case I've updated the code to work with page=x, pageID=x
and linkID=x

The code inside Nottingham.rlt can no doubt be simplified because at the
moment there is some duplication for each parameter but this bit of the
solution works what I've not been able to identify is why the additional
Javascript Jonathan was using isn't working in IE via a toolkits URL even
though it's working in FF, Safari, Chrome & Opera and also working in IE via
/index.htm?page=x just not in IE via /play.php?template_id=22&page=12

So for me at least all of these work in FF, Safari, Chrome & Opera but not
IE
http://vle.jisctechdis.ac.uk/xot/play.php?template_id=22&page=12
http://vle.jisctechdis.ac.uk/xot/play.php?template_id=22&pageID=cHotspotImag
e
http://vle.jisctechdis.ac.uk/xot/play.php?template_id=22&linkID=PG1334782342
557

Do any of these work for you in IE?

The function in rloObject.js is as follows:

function getUrlParam(pairName){
var searchString = document.location.search; var pairVal = "";

searchString = searchString.substring(1);

var nvPairs = searchString.split("&");

  for (i = 0; i < nvPairs.length; i++)
  {
     var nvPair = nvPairs[i].split("=");
         if (nvPair[0] == pairName){
           pairVal = nvPair[1];
         }
  }
  return pairVal;
}

clearly the XOT code works else it wouldn't work in the other browsers and
the JS works for all browsers apart from IE except that it work in IE via
index.htm

Anyone go any ideas why a link like /play.php?template_id=22&page=12 isn't
working in IE?
Or perhaps an alternative JS function that would work?

Cheers
Ron

-----Original Message-----
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at li
sts.nottingham.ac.uk>] On Behalf Of Julian Tenney
Sent: 10 May 2012 09:16
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test

Let's leave it for now. Priority now is getting the release done, and
there's still a bit to do, ________________________________________
From:
xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nott
ingham.ac.uk>
[xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.not
tingham.ac.uk>] On Behalf Of Pat Lockley
[patrick.lockley at googlemail.com<mailto:patrick.lockley at googlemail.com>]
Sent: 09 May 2012 20:53
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Proof of concept test

Well you could do it on page title?

if(startpage){

Cover LO while LO loads
move to startpage
uncover LO

}


On Wed, May 9, 2012 at 8:24 PM, Ron Mitchell
<ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>>
wrote:
> firstly yes I always encourage people to think granular and not build 
> one big LO but sometimes original plans change and even with a 
> relatively small LO linking to a specific page can be very useful.
>
> It obviously hasn't ever been available in XOT but for me the simplest 
> would be if authors could simply append something like &page=5  or 
> just #page=5 to link to page 5. e.g. similar to what you can do with 
> pdf's
> http://www.example.com/myfile.pdf#page=5
>
> Before anyone says "that's not reliable what happens when pages are 
> moved around" it's no different to other self-authored resources - the 
> author would know the implications of that and re-send or update the 
> deep link if pages are re-ordered and in most cases would only be 
> sending deep links to established resources unlikely to change or when 
> the deep link is an individualised point inWel time reference rather 
> than needing to be a permalink etc.
>
> -----Original Message-----
> From: 
> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at list
> s.nottingham.ac.uk> 
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-boun
> ces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley
> Sent: 09 May 2012 20:05
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Proof of concept test
>
> i can't recall where the deep link is shown? how does a teacher find it?
>
> On Wed, May 9, 2012 at 8:01 PM, Dave Burnett 
> <d_b_burnett at hotmail.com<mailto:d_b_burnett at hotmail.com>>
> wrote:
>>
>> One objection:
>> Your deep linking examples "moodle resources, pages with websites, 
>> specific blog posts etc" are support materials correct?
>>
>> So in the flow of a coherent LO, you can pop up some backup or 
>> exploratory material.
>> They generally aren't "Abandon the current learning object, jump to 
>> this blog post and continue the lesson from there".
>>
>> I see the use of being able to send a link via email.
>> As you say, it's all in context. The needs hierarchy. :-)
>>
>> Dave
>>
>>
>>
>> ________________________________
>> From: ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>
>> To: 
>> xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac
>> .uk>
>> Date: Wed, 9 May 2012 19:47:38 +0100
>>
>> Subject: [Xerte-dev] Re: Proof of concept test
>>
>> I demonstrated the online copy of the test file today as an example 
>> of possible features of the upcoming 1.8 release and as expected 
>> delegates thought it very useful. In my experience it's something 
>> people have wanted for a long time e.g. they often use deep linking 
>> to moodle resources, pages with websites, specific blog posts etc and 
>> particularly in an FE and ACL context and have often voiced 
>> frustration at not being able to do so with Xerte LO's. There are 
>> limitations in having to say "follow this link to the first page of 
>> this LO and then navigate to page x" especially in areas such a SFL 
>> etc. The ability to send a direct link via email or to add a link in 
>> another resource to a page within an LO would be very useful in many 
>> cases - if it's possible and reliable. It's not a game changer but 
>> useful
> on the occasions where it might be used for a particular reason e.g.
>> differentiation and for instance if you take the 560 example
>> http://www.nottingham.ac.uk/toolkits/play_560 there are many 
>> occasions where it would be useful to link to a specific page when 
>> providing CPD support etc.
>>
>>
>>
>> So if it's unreliable or likely to delay the release then in that 
>> context it's not so important but if it can be made to work in a 
>> satisfactory way then I can see it being a very useful including the 
>> ability to link to new page types within an updated 560 example when 
>> highlighting what's new in 1.8.
>>
>>
>>
>> From: 
>> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lis
>> ts.nottingham.ac.uk> 
>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bou
>> nces at lists.nottingham.ac.uk>] On Behalf Of Dave Burnett
>> Sent: 09 May 2012 13:08
>> To: 
>> xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac
>> .uk>
>> Subject: [Xerte-dev] Re: Proof of concept test
>>
>>
>>
>>
>>
>> Always value in pure research, but just to be a negative Nellie, I've 
>> real doubts about a feature like this actually being used, even if 
>> the technical issues are addressed.
>>
>>
>>
>> Authorware had "jumpfile", which seamlessly segued between files.
>>
>> It was used if you had a router style architecture.
>>
>>
>>
>> Don't remember anyone asking for the ability to jump to a specific page.
>>
>> That sounds like a glossary or definition type structure requirement 
>> and there's easier ways to accomplish those.
>>
>> And without the ability to return to the same place in the calling 
>> module (Call and Return), I don't see huge numbers of folks using it.
>>
>>
>>
>> But like I said, futzing around is a great way to stumble across 
>> other nuggets.
>>
>> :-)
>>
>>
>>
>>
>>
>> ________________________________
>>
>> Date: Wed, 9 May 2012 12:23:32 +0100
>> From: johnathan.kemp at ntlworld.com<mailto:johnathan.kemp at ntlworld.com>
>> To: 
>> xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac
>> .uk>
>> Subject: [Xerte-dev] Re: Proof of concept test
>>
>> According to my Xerte desktop installation it generates a linkID and 
>> not a pageID
>>
>>
>>
>> phew you had me worried there for a minute :-)
>>
>>
>>
>> I know you have referred to "deep linking" before but I was never 
>> sure what you meant.
>>
>>
>>
>> The idea here was to create a link using a value known to the 
>> learning object author.
>>
>>
>>
>> It was just an experiment. Maybe if it works without the delay in XOT 
>> then it would be more acceptable.
>>
>>
>>
>> I can shorten the delay in Xerte but in the absence of a means of 
>> knowing when the page array has been fully populated it will always 
>> be guess work as to how short the delay can be.
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Johnathan
>>
>>
>>
>> On 9 May 2012 12:05, Julian Tenney 
>> <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk
>> >>
wrote:
>>
>> No, the wizard automatically produces a pageID in the xml - you'll 
>> have seen it I'm sure. The intention for this was to facilitate deep
> linking, i.e.
>> ?pageID=321234524
>>
>>
>>
>> But when Pat and I tried to get it to work nicely we couldn't and 
>> parked
> it.
>> It may well be we hit the same issue you have hit: the need for the 
>> delay, which I don't think is acceptable to the end user.
>>
>>
>>
>> From: 
>> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lis
>> ts.nottingham.ac.uk> 
>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bou
>> nces at lists.nottingham.ac.uk>] On Behalf Of Kemp Johnathan
>> Sent: 09 May 2012 11:54
>>
>>
>> To: For Xerte technical developers
>> Subject: [Xerte-dev] Re: Proof of concept test
>>
>>
>>
>> The javascript routine used matches a name to data, so you could just 
>> as easily use ?name=titlePage as you could ?pageID=titlePage
>>
>>
>>
>> The problem with using name is that the page name is more likely to 
>> be "Title Page" and the use of spaces might cause a problem.
>>
>>
>>
>> It was never intended that this should be an alternative routing 
>> internally within a learning object to another page in that learning 
>> object. It was only intended to be a means of opening a different 
>> learning object, which you can do already using a URL. The only 
>> difference here was that someone on one of the postings was lamenting 
>> the inability to open a new learning object at a specific page.
>>
>>
>>
>> The version for XOT would have to use the extXML which, from memory, 
>> did not suffer the need for a delay before it could be used. But I am 
>> quite happy to leave it out of this release as once people were happy 
>> it would work OK then it could be added later.
>>
>>
>>
>> I need a little time to finish the XOT demo version anyway and right 
>> now I am focusing on an update to the scenario page to make it easier 
>> to implement scenarios like the Farmer, the Goose, the Fox and the 
>> Bag of Grain on one side of the river.
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Johnathan
>>
>>
>>
>> On 9 May 2012 10:31, Julian Tenney 
>> <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk
>> >>
wrote:
>>
>> The need for that delay may well be why we decided to leave it last time.
>> It's disorienting to see the page for that long and then suddenly be 
>> moved on. Let's leave this for another time.
>>
>>
>>
>> From: 
>> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lis
>> ts.nottingham.ac.uk> 
>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bou
>> nces at lists.nottingham.ac.uk>] On Behalf Of Kemp Johnathan
>> Sent: 05 May 2012 10:17
>>
>>
>> To: For Xerte technical developers
>> Subject: [Xerte-dev] Re: Proof of concept test
>>
>>
>>
>> The delay is because I have had to put a timer in to give Xerte the 
>> time to build the rootIcon.pages array - it's a bit of guess work as 
>> to how long I need to give it. It would be nice if the onInit event 
>> didn't fire until the array had completed being built, then I could 
>> remove the timer and the delay would be reduced to the minimum required.
>>
>>
>>
>> In XOT you use a different array so I think the time delay will be 
>> insignificant as if I recall correctly the array was already fully 
>> available.
>>
>>
>>
>> I'll run some further tests in XOT now that I have the javascript 
>> sorted out and then post something for you to try out.
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Johnathan
>>
>>
>>
>> On 5 May 2012 09:44, Ron Mitchell
<ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>> wrote:
>>
>> Working fine here too
>> http://vle.jisctechdis.ac.uk/xot/urlTest/index.htm?pageID=menu
>>
>> Win 7 64bit
>>
>> IE 8.0
>>
>> Chrome 18.0
>>
>> Safari 5.1.5
>>
>> Opera 10.60
>>
>> Firefox 12.0
>>
>>
>>
>> Great job Jonathan this will be a very popular feature.
>>
>>
>>
>> From: 
>> xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lis
>> ts.nottingham.ac.uk> 
>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bou
>> nces at lists.nottingham.ac.uk>] On Behalf Of Tom Reijnders
>> Sent: 05 May 2012 08:23
>> To: For Xerte technical developers
>> Subject: [Xerte-dev] Re: Proof of concept test
>>
>>
>>
>> Working fine here (although with a noticeable lag, first page is 
>> shown and after 1 second the menu page is opened)
>>
>> Windows 7, 64 bit IE9, FF12, Chrome 18
>>
>> Op 4-5-2012 23:36, Kemp Johnathan schreef:
>>
>> Hello Everyone,
>>
>>
>>
>> I have been working (between beta version stuff) on a means of making 
>> it possible to open a Xerte project at a specific page, rather than 
>> always have them open at the title page.
>>
>>
>>
>> Attached is a simple 3 page desktop Xerte project as a proof of concept.
>>
>>
>>
>> Do not open it in Xerte (at least until you have finished testing
>> it!) If you publish the project, in Xerte, your local copy of 
>> rloObject.js will overwrite the one in the project and the code that 
>> supports the redirection will be lost.
>>
>>
>>
>> Would you mind unzipping it and then opening index.htm in a web 
>> browser - not Xerte.
>>
>>
>>
>> For it to work you will need to set up the folder in which you place 
>> it as a trusted location in the Flash player settings (otherwise 
>> javascript calls will not work).
>>
>>
>>
>> It should open at a title page.
>>
>>
>>
>> Then add to the url in your browser
>>
>>
>>
>> ?pageID=menu
>>
>>
>>
>> and press enter to reload the page.
>>
>>
>>
>> After a short delay the project should redirect from the title page 
>> to the menu page.
>>
>>
>>
>> I have tested this in Firefox, IE8, and Opera.
>>
>>
>>
>> If anyone has other browsers at their disposal I would be keen to 
>> know if the redirection works. e.g. Chrome, Safari,
>>
>>
>>
>> Should you examine the project the key stuff that makes it work is a 
>> function at the end of rlsObject.js and some code running off the 
>> onInitHandler interaction in the entry frame. Because 
>> rootIcon.pages.length has not finished being built when the onInit 
>> event fires I have added a timer to create a delay to allow time for 
>> the array to be built - hence the delay before redirection takes place.
>>
>>
>>
>> Should this prove reliable in your testing I believe the same 
>> approach should be applicable to XOT (albeit using a different array 
>> to source the page information)
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Johnathan
>>
>>
>>
>>
>>
>>
>>
>> This message and any attachment are intended solely for the addressee 
>> and may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete 
>> it. Please do not use, copy or disclose the information contained in 
>> this message or in any attachment. Any views or opinions expressed by 
>> the author of this email do not necessarily reflect the views of the
> University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an 
>> attachment may still contain software viruses which could damage your
> computer system:
>> you are advised to perform your own checks. Email communications with 
>> the University of Nottingham may be monitored as permitted by UK
> legislation.
>>
>>
>>
>> _______________________________________________
>>
>> Xerte-dev mailing list
>>
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac
>> .uk>
>>
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>>
>>
>> This message and any attachment are intended solely for the addressee 
>> and may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete
>> it.   Please do not use, copy or disclose the information contained in
>> this message or in any attachment.  Any views or opinions expressed 
>> by the author of this email do not necessarily reflect the views of 
>> the
> University of Nottingham.
>>
>>
>>
>> This message has been checked for viruses but the contents of an 
>> attachment
>>
>> may still contain software viruses which could damage your computer
> system:
>>
>> you are advised to perform your own checks. Email communications with 
>> the
>>
>> University of Nottingham may be monitored as permitted by UK legislation.
>>
>>
>>
>>
>>
>> --
>>
>> --
>>
>>
>>
>>
>>
>> Tom Reijnders
>>
>> TOR Informatica
>>
>>
>>
>> Chopinlaan 27
>>
>>
>>
>> 5242HM Rosmalen
>>
>> Tel: 073 5226191
>>
>> Fax: 073 5226196
>>
>>
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac
>> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> This message and any attachment are intended solely for the addressee 
>> and may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete
>> it.   Please do not use, copy or disclose the information contained in
>> this message or in any attachment.  Any views or opinions expressed 
>> by the author of this email do not necessarily reflect the views of 
>> the
> University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an 
>> attachment may still contain software viruses which could damage your
> computer system:
>> you are advised to perform your own checks. Email communications with 
>> the University of Nottingham may be monitored as permitted by UK
> legislation.
>>
>>
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac
>> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> This message and any attachment are intended solely for the addressee 
>> and may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete
>> it.   Please do not use, copy or disclose the information contained in
>> this message or in any attachment.  Any views or opinions expressed 
>> by the author of this email do not necessarily reflect the views of 
>> the
> University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an 
>> attachment may still contain software viruses which could damage your
> computer system:
>> you are advised to perform your own checks. Email communications with 
>> the University of Nottingham may be monitored as permitted by UK
> legislation.
>>
>>
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac
>> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> This message and any attachment are intended solely for the addressee 
>> and may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete
>> it.   Please do not use, copy or disclose the information contained in
>> this message or in any attachment.  Any views or opinions expressed 
>> by the author of this email do not necessarily reflect the views of 
>> the
> University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an 
>> attachment may still contain software viruses which could damage your
> computer system:
>> you are advised to perform your own checks. Email communications with 
>> the University of Nottingham may be monitored as permitted by UK
> legislation.
>>
>>
>>
>> _______________________________________________ Xerte-dev mailing 
>> list 
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac
>> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev This 
>> message and any attachment are intended solely for the addressee and 
>> may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete 
>> it.
>> Please do not use, copy or disclose the information contained in this 
>> message or in any attachment. Any views or opinions expressed by the 
>> author of this email do not necessarily reflect the views of the 
>> University of Nottingham. This message has been checked for viruses 
>> but the contents of an attachment may still contain software viruses 
>> which could damage your computer system: you are advised to perform 
>> your
own checks.
>> Email communications with the University of Nottingham may be 
>> monitored as
> permitted by UK legislation.
>>
>>
>> _______________________________________________ Xerte-dev mailing 
>> list 
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac
>> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev This 
>> message and any attachment are intended solely for the addressee and 
>> may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete 
>> it.
>> Please do not use, copy or disclose the information contained in this 
>> message or in any attachment. Any views or opinions expressed by the 
>> author of this email do not necessarily reflect the views of the 
>> University of Nottingham. This message has been checked for viruses 
>> but the contents of an attachment may still contain software viruses 
>> which could damage your computer system: you are advised to perform 
>> your
own checks.
>> Email communications with the University of Nottingham may be 
>> monitored as
> permitted by UK legislation.
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac
>> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> This message and any attachment are intended solely for the addressee 
>> and may contain confidential information. If you have received this 
>> message in error, please send it back to me, and immediately delete
>> it.   Please do not use, copy or disclose the information contained in
>> this message or in any attachment.  Any views or opinions expressed 
>> by the author of this email do not necessarily reflect the views of 
>> the
> University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an 
>> attachment may still contain software viruses which could damage your
> computer system:
>> you are advised to perform your own checks. Email communications with 
>> the University of Nottingham may be monitored as permitted by UK
> legislation.
>>
>>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.
> uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.
> uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

Glasgow Caledonian University is a registered Scottish charity, number
SC021474

Winner: Times Higher Education's Widening Participation Initiative of the
Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en
.html

Winner: Times Higher Education's Outstanding Support for Early Career
Researchers of the Year 2010, GCU as a lead with Universities Scotland
partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,e
n.html
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

Glasgow Caledonian University is a registered Scottish charity, number
SC021474

Winner: Times Higher Education's Widening Participation Initiative of the
Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en
.html

Winner: Times Higher Education's Outstanding Support for Early Career
Researchers of the Year 2010, GCU as a lead with Universities Scotland
partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,e
n.html
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev



This message and any attachment are intended solely for the addressee and
may contain confidential information. If you have received this message in
error, please send it back to me, and immediately delete it. Please do not
use, copy or disclose the information contained in this message or in any
attachment. Any views or opinions expressed by the author of this email do
not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

This message and any attachment are intended solely for the addressee and
may contain confidential information. If you have received this message in
error, please send it back to me, and immediately delete it.   Please do not
use, copy or disclose the information contained in this message or in any
attachment.  Any views or opinions expressed by the author of this email do
not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


Glasgow Caledonian University is a registered Scottish charity, number
SC021474

Winner: Times Higher Education's Widening Participation Initiative of the
Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en
.html

Winner: Times Higher Education's Outstanding Support for Early Career
Researchers of the Year 2010, GCU as a lead with Universities Scotland
partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,e
n.html

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




More information about the Xerte-dev mailing list