Jump to content

Recommended Posts

Posted

Thanks for that, I suppose it quite obvious in the end!

 

Now I've managed to uncompress the jar file (to restrict what they can browse to) but now can't figure out to compress back to a jar file - tried both WinZip and Winrar

 

Thanks,

 

Rob

Posted

7zip works..

right click on .jar file > open with 7zip

go to browser.js and drag it to the desktop. then drag the file from the desktop into firefox to edit (because notepad is crap and screws up the spacings). In firefox select all and copy the text into notepad, to retain the correct spacing. Edit the file and save the file in notepad as browser.js Now drag that file back into 7zip (the overwrite the browser.js) and click close.

 

probably a decent text editor might overcome the firefox copy and paste workaround

Posted

Ok, thanks that's worked.

 

Another question...

 

I'm currently trying to restrict the locations they can browse - the example in the wiki provides me a way to restrict it to everything bar the web, but I need them to access the N:\ (the home folder). I think i've gathered how to put the exception in for this but when I load up Firefox it displays nothing at all, taking out the offending line makes it works again. I've attached below...

 

if (

(!location.match(/^file:///N://^) && location.match(/^file:/)) ||

location.match(/^\//) ||

location.match(/^resource:/) ||

(!location.match(/^about:blank/) && location.match(/^about:/))

)

{loadURI("about:blank");}

 

Thanks,

 

Rob

Posted

The problem is that most students will naturally just double-click on the file in their my documents which would open up in IE/Firefox as N:\ in the address bar, or preview in Dreamweaver again which would open up as N:\ etc

 

Thanks anyway.

 

Rob

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...