I have the following generateLink function which say creates the page for LPE
but when I click the button in the LPE page it asks me if I want to open the IAT.php
file instead of showing the gInstruct1.html for it which is shown in the following. Can you please guide me what I am doing wrong?
So I expect the following page with the following html
to show up when I click on the Concepts and Images Study
:
<html>
<!-- Thin People Fat People -->
<p style="margin-left:30px">In this task, you will be classifying concepts and images 1. Each concept or image will appear in the center of the screen, for example,</p>
</br>
</br>
</br>
<img src="GSE-GPE-02.png" class ='instrItem' style="margin-left:33%;"/>
</br>
</br>
</br>
<div style="text-align:center">Press the <b>space bar</b> to continue.</div></html>
However when I click on that button I receive the following :
Here's the index2_4.html generateLink function:
function generateLink() {
var linktext;
if (Math.random() < 0.5) {
if (Math.random() < 0.5) {
//GSE
//linkText = "<p>In this study, you will complete a reaction-time GSE task using your computer. You can find the task at this link: </p><a href='http://langcomplab.net/Concepts&Images/GSE_new/IAT.php' target='_blank'> Concepts and Images Study</a>";
linkText = "<p>In this study, you will complete a reaction-time GSE task using your computer. You can find the task at this link: </p><a href='GSE_new/IAT.php' target='_blank'> Concepts and Images Study</a>";
} else {
//GPE
linkText = "<p>In this study, you will complete a reaction-time GPE task using your computer. You can find the task at this link: </p><a href='GPE_new/IAT.php' target='_blank'> Concepts and Images Study</a>";
// linkText = "<p>In this study, you will complete a reaction-time GPE task using your computer. You can find the task at this link: </p><a href='http://langcomplab.net/Concepts&Images/GPE_new/IAT.php' target='_blank'> Concepts and Images Study</a>";
}
} else {
if (Math.random() < 0.5) {
//LSE
//linkText = "<p>In this study, you will complete a reaction-time LSE task using your computer. You can find the task at this link: </p><a href='http://langcomplab.net/Concepts&Images/LSE_new/IAT.php' target='_blank'> Concepts and Images Study</a>";
linkText = "<p>In this study, you will complete a reaction-time LSE task using your computer. You can find the task at this link: </p><a href='LSE_new/IAT.php' target='_blank'> Concepts and Images Study</a>";
} else {
//LPE
linkText = "<p>In this study, you will complete a reaction-time LPE task using your computer. You can find the task at this link: </p><a href='LPE_new/IAT.php' target='_blank'> Concepts and Images Study</a>";
// linkText = "<p>In this study, you will complete a reaction-time LPE task using your computer. You can find the task at this link: </p><a href='http://langcomplab.net/Concepts&Images/LPE_new/IAT.php' target='_blank'> Concepts and Images Study</a>";
}
}
$('#iatLink').html(linkText);
}