2023 N5 Web assignment

  • Kirsteen Nakau
    Participant

    When do we assume that errors in a task are errors that candidates are supposed to spot and fix or are they actual errors that should not be there?

    Instructions state that file names should not be altered (although you need to change the filename of the webpage as index is required for home page) , candidates are asked to evaluate the website so clearly they should spot the error and fact that one of the images does not load but they then have to describe how java script makes the web page interactive – but the java script does not work because of the error in the code provided, making it difficult to explain any interactivity if the images don’t actually load.

    Would the candidates be expected to spot and fix the errors then evaluate the site based on fixing the mistake or leave the error and evaluate based on the interactive feature not working?

    derek_s
    Participant

    I would double check the files you have.

    The Javascript works on the start versions I have.

    Also not sure what you mean about the need to change the filename – it all works fine without changing the name. Yeah a home page is normally an index.html, but it can be anything.

    Dugal McCrow
    Participant

    Greg Reid assured me that the mismatch between file extensions in some zips downloaded is not intentional at N5. It’s a weird fault that the zip application SQA uses seems to cause that happened in previous years.
    Renaming file extensions to the correct, matching case solves the Javascript not working issue in replit and trinket.

    Dugal McCrow
    Participant

    In replit it has to be index.html so changing home to index is fine.

    Mark Hay
    Participant

    incase it ever causes woes in replit we use a meta redirect to keep the filenames the same, have attached the code below if its useful. Means that when the pupils hit run they see whichever page you specify below.

    <head>
    <meta http-equiv=”refresh” content=”0;URL=’babyshop.html'” />
    </head>

    </html>

    • This reply was modified 3 months ago by Mark Hay. Reason: tried to make code visible
    Kirsteen Nakau
    Participant

    The error with the file extensions prevents the java script from working as the files are.JPG but the code has .jpg so the images do not load. Hence the confusion as to whether the candidates are expected to spot the error and fix it or if I am allowed to fix the error so that the candidates can then go on to describe the working java script.

    Kirsteen Nakau
    Participant

    The code does not use jpg through out which has me questioning if this is a deliberate error that the pupils are expected to spot and fix. The other images all display with the capitalised extension.

    I will check with SQA and see if they can she light on the issue but the kids start tasks on Monday.

    Dugal McCrow
    Participant

    In the N5 the mismatch between jpg and JPG is NOT deliberate and should be corrected. It is an issue that Greg is aware of and has advised us to correct the extensions.
    It is an issue to do with their zip software that has been around a few years.

    derek_s
    Participant

    I have not altered any of the file names the images all have .JPG at the end.

    For me on Chrome, Edge, Internet Explorer – the javascript still works even though the javascript uses .jpg.

    I appreciate that Javascript is a case sensitive language, but what are people using that prevents this from working? Is it Replit?

    Dugal McCrow
    Participant

    It seems that replit and trinket can’t cope with the differences. Browsers don’t seem to care if working locally.

    Peter Thoresen
    Participant

    File names on Linux systems are case sensitive – photo.jpg and photo.JPG are two different files.
    File names on Windows are not case sensitive.

    If trinket/replit are running on Linux this would explain problem.

    derek_s
    Participant

    Apache webserver on Windows definitely does not care and allows the different File tails to work.

    So I agree, a Linux running service must be the issue.

    Dugal McCrow
    Participant

    To directly quote Greg Reid when I queried the mismatch with the extensions in this N5 WDD assignment:

    “It definitely wasn’t deliberate. ☹”

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.