javascript - Why the .php gets saved/opened instead of the new page being showned when I click on a button? -


i have following generatelink function creates page lpe when click button in lpe page asks me if want open iat.php file instead of showing ginstruct1.html shown in following. can please guide me doing wrong?

enter image description here

so expect following page following html show when click on concepts , images study : enter image description here

<html> <!-- thin people         fat people --> <p style="margin-left:30px">in task, classifying concepts , images 1. each concept or image appear in center of screen, 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 <b>space bar</b> continue.</div></html> 

however when click on button receive following : enter image description here

here's index2_4.html generatelink function:

function generatelink() {     var linktext;     if (math.random() < 0.5) {         if (math.random() < 0.5) {             //gse             //linktext = "<p>in study, complete reaction-time gse task using computer. can find task @ link: </p><a href='http://langcomplab.net/concepts&images/gse_new/iat.php' target='_blank'> concepts , images study</a>";             linktext = "<p>in study, complete reaction-time gse task using computer. can find task @ link: </p><a href='gse_new/iat.php' target='_blank'> concepts , images study</a>";          } else {             //gpe              linktext = "<p>in study, complete reaction-time gpe task using computer. can find task @ link: </p><a href='gpe_new/iat.php' target='_blank'> concepts , images study</a>";              //   linktext = "<p>in study, complete reaction-time gpe task using computer. can find task @ link: </p><a href='http://langcomplab.net/concepts&images/gpe_new/iat.php' target='_blank'> concepts , images study</a>";         }     } else {         if (math.random() < 0.5) {             //lse             //linktext = "<p>in study, complete reaction-time lse task using computer. can find task @ link: </p><a href='http://langcomplab.net/concepts&images/lse_new/iat.php' target='_blank'> concepts , images study</a>";              linktext = "<p>in study, complete reaction-time lse task using computer. can find task @ link: </p><a href='lse_new/iat.php' target='_blank'> concepts , images study</a>";         } else {             //lpe             linktext = "<p>in study, complete reaction-time lpe task using computer. can find task @ link: </p><a href='lpe_new/iat.php' target='_blank'> concepts , images study</a>";              //                        linktext = "<p>in study, complete reaction-time lpe task using computer. can find task @ link: </p><a href='http://langcomplab.net/concepts&images/lpe_new/iat.php' target='_blank'> concepts , images study</a>";         }     }     $('#iatlink').html(linktext); } 

looking @ browser url input, seems not using http server, rather accessing file straight desktop. use web server http protocol , fcgi victory pointed out. apache or if like, go wamp or lamp or mamp depending on platform using.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -