The web browser returned html errors when loading...


Author
Message
AnthonyFCollinsSussex
AnthonyFCollinsSussex
Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)
Group: Forum Members
Posts: 52, Visits: 250
Hi there

This is a minor issue. When participants finish the entire experiment and it closes, they are presented with the error log webpage that shows the following error messages:

The web browser returned html errors when loading https://scripts.millisecond.com/fmm28/ef/info.html
The web browser returned html errors when loading https://scripts.millisecond.com/fmm28/ef/consent.html


These relate to the consent script at the beginning of the experiment. However, they work perfectly fine during the running of the experiment: the htmls load without hassle every time. These logged errors are amber. Is there a way to resolve this such that there are no errors at all? This prevails regardless of whether you control + q through it quickly, or take your time on the particular script.

The script I have pasted below (that contain the htmls), in the event you may spot something. Attached is a compressed file containing the htmls themselves. Many thanks in advance.

**************************************
HTMLs
**************************************
<htmlpage consent>
/ file = "Consent.html"
</htmlpage>

<htmlpage Info>
/ file = "info.html"
</htmlpage>



<html Consent>
/items = ("Consent.html")
/ valign = center
/ halign = center
/position = (50%, 40%)
/ size = (70%, 70%)
</html>

<html Info>
/items = ("info.html")
/ valign = center
/ halign = center
/position = (50%, 40%)
/ size = (70%, 70%)
</html>

**************************************
STIMULI
**************************************
<text agree>
/items = ("I agree to participate")
/position = (75%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/ vjustify = center
</text>

<text disagree>
/items = ("I do not agree to participate")
/position = (25%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/vjustify = center
</text>

<text next1>
/items = ("NEXT")
/position = (90%, 90%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (black)
/ txbgcolor = (white)
/size = (3%, 3%)
/vjustify = center
</text>

<text back1>
/items = ("BACK")
/position = (10%, 90%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (black)
/ txbgcolor = (white)
/size = (3%, 3%)
/vjustify = center
</text>

<values>
/ itemnumber = 1
</values>

**************************************
TRIALS.
Next = next trial
Back = go back a trial
Do not consent = abort script, they cannot do exp.
Consent = moves on to the next script in batch
**************************************
<trial Info>
/inputdevice = mouse
/stimulustimes = [0 =Info; 0=next1]
/validresponse = (next1)
/ branch = [if(trial.Info.response == "next1")trial.Consent]
</trial>

<trial Consent>
/inputdevice = mouse
/stimulusframes = [1 = Consent, agree, disagree, back1]
/validresponse = (agree, disagree, back1)
/ correctresponse = ("agree")
/ontrialend = [if (trial.Consent.response == "disagree") script.abort()]
/ branch = [if(trial.Consent.response == "back1") trial.Info]
</trial>


**************************************
BLOCK
**************************************
<block Info>
/ stop = [values.itemnumber >=3;]
/ trials = [1=Info]
</block>

<expt>
/ blocks = [1 = Info]
</expt>

<data>
/separatefiles = true
/ columns = (time, subject, group, blockcode, response)
</data>

<defaults>
/ screencolor = white
/ txcolor = black
/ txbgcolor = white
/ fontstyle = ("Arial", 2.8%)
</defaults>


Attachments
Htmls.zip (217 views, 3.00 KB)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
AnthonyFCollinsSussex - 6/25/2021
Hi there

This is a minor issue. When participants finish the entire experiment and it closes, they are presented with the error log webpage that shows the following error messages:

The web browser returned html errors when loading https://scripts.millisecond.com/fmm28/ef/info.html
The web browser returned html errors when loading https://scripts.millisecond.com/fmm28/ef/consent.html


These relate to the consent script at the beginning of the experiment. However, they work perfectly fine during the running of the experiment: the htmls load without hassle every time. These logged errors are amber. Is there a way to resolve this such that there are no errors at all? This prevails regardless of whether you control + q through it quickly, or take your time on the particular script.

The script I have pasted below (that contain the htmls), in the event you may spot something. Attached is a compressed file containing the htmls themselves. Many thanks in advance.

**************************************
HTMLs
**************************************
<htmlpage consent>
/ file = "Consent.html"
</htmlpage>

<htmlpage Info>
/ file = "info.html"
</htmlpage>



<html Consent>
/items = ("Consent.html")
/ valign = center
/ halign = center
/position = (50%, 40%)
/ size = (70%, 70%)
</html>

<html Info>
/items = ("info.html")
/ valign = center
/ halign = center
/position = (50%, 40%)
/ size = (70%, 70%)
</html>

**************************************
STIMULI
**************************************
<text agree>
/items = ("I agree to participate")
/position = (75%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/ vjustify = center
</text>

<text disagree>
/items = ("I do not agree to participate")
/position = (25%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/vjustify = center
</text>

<text next1>
/items = ("NEXT")
/position = (90%, 90%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (black)
/ txbgcolor = (white)
/size = (3%, 3%)
/vjustify = center
</text>

<text back1>
/items = ("BACK")
/position = (10%, 90%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (black)
/ txbgcolor = (white)
/size = (3%, 3%)
/vjustify = center
</text>

<values>
/ itemnumber = 1
</values>

**************************************
TRIALS.
Next = next trial
Back = go back a trial
Do not consent = abort script, they cannot do exp.
Consent = moves on to the next script in batch
**************************************
<trial Info>
/inputdevice = mouse
/stimulustimes = [0 =Info; 0=next1]
/validresponse = (next1)
/ branch = [if(trial.Info.response == "next1")trial.Consent]
</trial>

<trial Consent>
/inputdevice = mouse
/stimulusframes = [1 = Consent, agree, disagree, back1]
/validresponse = (agree, disagree, back1)
/ correctresponse = ("agree")
/ontrialend = [if (trial.Consent.response == "disagree") script.abort()]
/ branch = [if(trial.Consent.response == "back1") trial.Info]
</trial>


**************************************
BLOCK
**************************************
<block Info>
/ stop = [values.itemnumber >=3;]
/ trials = [1=Info]
</block>

<expt>
/ blocks = [1 = Info]
</expt>

<data>
/separatefiles = true
/ columns = (time, subject, group, blockcode, response)
</data>

<defaults>
/ screencolor = white
/ txcolor = black
/ txbgcolor = white
/ fontstyle = ("Arial", 2.8%)
</defaults>


Technically these are warnings, not errors. Browsers throw errors and warnings when parsing HTML all the time. To see for yourself, open the files in IE on your Windows box and look at any warnings etc. logged to the console:



(You may see more / fewer errors or warnings depending on various browser settings.)

The only way to avoid that is to clean up the HTML code (which is rather messy in both files due to having been auto-generated by MS Word / Office). You'll get best results by just writing clean HTML from scratch.

AnthonyFCollinsSussex
AnthonyFCollinsSussex
Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)Partner Member (769 reputation)
Group: Forum Members
Posts: 52, Visits: 250
Dave - 6/25/2021
AnthonyFCollinsSussex - 6/25/2021
Hi there

This is a minor issue. When participants finish the entire experiment and it closes, they are presented with the error log webpage that shows the following error messages:

The web browser returned html errors when loading https://scripts.millisecond.com/fmm28/ef/info.html
The web browser returned html errors when loading https://scripts.millisecond.com/fmm28/ef/consent.html


These relate to the consent script at the beginning of the experiment. However, they work perfectly fine during the running of the experiment: the htmls load without hassle every time. These logged errors are amber. Is there a way to resolve this such that there are no errors at all? This prevails regardless of whether you control + q through it quickly, or take your time on the particular script.

The script I have pasted below (that contain the htmls), in the event you may spot something. Attached is a compressed file containing the htmls themselves. Many thanks in advance.

**************************************
HTMLs
**************************************
<htmlpage consent>
/ file = "Consent.html"
</htmlpage>

<htmlpage Info>
/ file = "info.html"
</htmlpage>



<html Consent>
/items = ("Consent.html")
/ valign = center
/ halign = center
/position = (50%, 40%)
/ size = (70%, 70%)
</html>

<html Info>
/items = ("info.html")
/ valign = center
/ halign = center
/position = (50%, 40%)
/ size = (70%, 70%)
</html>

**************************************
STIMULI
**************************************
<text agree>
/items = ("I agree to participate")
/position = (75%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/ vjustify = center
</text>

<text disagree>
/items = ("I do not agree to participate")
/position = (25%, 80%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (10%, 5%)
/vjustify = center
</text>

<text next1>
/items = ("NEXT")
/position = (90%, 90%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (black)
/ txbgcolor = (white)
/size = (3%, 3%)
/vjustify = center
</text>

<text back1>
/items = ("BACK")
/position = (10%, 90%)
/ fontstyle = ("Arial", 1.50%, false, false, false, false, 5, 1)
/ txcolor = (black)
/ txbgcolor = (white)
/size = (3%, 3%)
/vjustify = center
</text>

<values>
/ itemnumber = 1
</values>

**************************************
TRIALS.
Next = next trial
Back = go back a trial
Do not consent = abort script, they cannot do exp.
Consent = moves on to the next script in batch
**************************************
<trial Info>
/inputdevice = mouse
/stimulustimes = [0 =Info; 0=next1]
/validresponse = (next1)
/ branch = [if(trial.Info.response == "next1")trial.Consent]
</trial>

<trial Consent>
/inputdevice = mouse
/stimulusframes = [1 = Consent, agree, disagree, back1]
/validresponse = (agree, disagree, back1)
/ correctresponse = ("agree")
/ontrialend = [if (trial.Consent.response == "disagree") script.abort()]
/ branch = [if(trial.Consent.response == "back1") trial.Info]
</trial>


**************************************
BLOCK
**************************************
<block Info>
/ stop = [values.itemnumber >=3;]
/ trials = [1=Info]
</block>

<expt>
/ blocks = [1 = Info]
</expt>

<data>
/separatefiles = true
/ columns = (time, subject, group, blockcode, response)
</data>

<defaults>
/ screencolor = white
/ txcolor = black
/ txbgcolor = white
/ fontstyle = ("Arial", 2.8%)
</defaults>


Technically these are warnings, not errors. Browsers throw errors and warnings when parsing HTML all the time. To see for yourself, open the files in IE on your Windows box and look at any warnings etc. logged to the console:



(You may see more / fewer errors or warnings depending on various browser settings.)

The only way to avoid that is to clean up the HTML code (which is rather messy in both files due to having been auto-generated by MS Word / Office). You'll get best results by just writing clean HTML from scratch.

Okay this does make sense (I did indeed have them converted from word to html) I will try and just write these htmls without any conversion or finding a solution that avoids these warnings!

Many thanks for this Dave much appreciated!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search