Page 1 of 1

java script blocked in Kiosk

Posted: 15 Oct 2013, 04:01
by firehazard
How can I make a Kiosk ISO that has javascript enabled?

I use phptimeclock and use the Kiosk as a timeclock for employees

The time is incorrect on the timeclock pc for employees because it is unable to get the time from the system using java script.

I notice in porteus desktop java script works fine since it has the correct time for my timeclock.

Can someone please tell me how to modify this iso so that java script is enabled?

I know it introduces some security vonerabilities but I don't care since this system is on a static ip on it's own logical network with the timeclock server being the only other thing on that network with no internet access.

Thank you

Re: java script blocked in Kiosk

Posted: 15 Oct 2013, 07:42
by fanthom
javascript is enabled in kiosk by default. you can check it by going on this page:
http://www.javatester.org/javascript.html

maybe firewall is blocking something - please disable it and check again.

Re: java script blocked in Kiosk

Posted: 17 Oct 2013, 00:02
by firehazard
Thank you for the suggestion.

I made a new Kiosk iso with firewall disabled and the time is still wrong on the website. I went to the JavaScript test website and it is working.

I think my problem may be caused by not setting the timezone.

I am using the Kiosk Wizard to create the iso and I notice there is no way to set timezone. How can I set the timezone? I am using a burned CD so I would need to modify the timezone before creating the iso.

Re: java script blocked in Kiosk

Posted: 17 Oct 2013, 00:17
by fanthom
looks like i'll have to add 'set timezone' feature to the kiosk wizard. will try to do it in the next couple of days and drop something for testing.
stay tuned.

Re: java script blocked in Kiosk

Posted: 17 Oct 2013, 01:39
by firehazard
Thank you for all your work. Adding the set timezone to the kiosk wizard will make it perfect :-)

I'm sure that will fix the issue. I have tested a javascript clock on the Kiosk using http://www.uize.com/examples/digital-clock.html which works but is 5 hours off from my timezone CST. I have also checked my BIOS clock and confirmed it is correct ;-)

I look forward to making a new iso.

Thank you for your help.

Re: java script blocked in Kiosk

Posted: 19 Oct 2013, 14:27
by fanthom
here is a testing ISO which is timezone aware:
http://dl.porteus.org/i486/testing/port ... a-i486.iso

please update /boot/isolinux/isolinux.cfg with following cheatcode:

Code: Select all

timezone=Europe/Warsaw

(ofc please use your own timezone) create new iso with /porteus/make_iso.sh script and check if it's working correctly.
if yes then i'll update kiosk wizard and release kiosk 2.1.2

thanks

Re: java script blocked in Kiosk

Posted: 22 Oct 2013, 08:25
by firehazard
It works! I set timezone=US/Central and it works fine with my timeclock and the test java clock link. My concern now is how it will handle daylight savings time?

Thank you.

Re: java script blocked in Kiosk

Posted: 22 Oct 2013, 08:39
by fanthom
My concern now is how it will handle daylight savings time?
it should work out of the box. please check next Monday and let me know if it wont.

Re: java script blocked in Kiosk

Posted: 03 Nov 2013, 19:26
by firehazard
Yes it works with DST. Please update the Kiosk wizard. I need to fix my timeclock machine ;-)

Re: java script blocked in Kiosk

Posted: 03 Mar 2014, 09:17
by Zoom
Sorry for piggy-backing on this thread - I'm also looking at using the Kiosk for timeclock purposes, but my problem is a little bit different.

I can get to the login page (on our timeclock servers homepage), but when the user has logged in the icedtea plugin crashes instead of showing the clock in and out buttons - is it in any way possible (without a lot of work) to use Oracle Java, instead of OpenJRE?

If I can solve this it would be very easy for me to deploy new timeclocks everywhere...

Best regards,
/Thomas

Re: java script blocked in Kiosk

Posted: 03 Mar 2014, 15:34
by fanthom
hi Thomas,

i have tested kiosk's java plugin on:
http://www.java.com/en/download/installed.jsp
http://javatester.org/version.html

and seems to be ok. could be that an applet from your website is not compatible with openjre? if yes then you'll have to generate kiosk ISO then remaster it and replace 007-java-extension.xzm with module created from Oracle's java.
remastering procedure is described in the Kiosk FAQ so please follow it.