form submit - Blank page after submitting external HIT in MTurk -


If I submit my external HIT with the URL, then it is successfully sent to MTUCAK (my requestor sandbox I can see the result), but a blank / blank page appears for the worker, instead of confirming that he / she has successfully submitted to the HIT ...

I think my The verb-parameter in the form is incorrect ...

This blank page The HTML-code looks like this:

  & lt; Html & gt; & Lt; Head & gt; & Lt; Title & gt; & Amp; ln; Bean: Message key = "external_submit.title" / & amp; Gt; & Lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Function reloadpage () {var boxes = top document.gate elementsByanName ('autoexquired'); If (boxes length == 0 ||! Boxes [0].) {Top.location = top.document.getElementById ('HitXanNational Link'). Href; } And {top.location = top.document.getElementById ('hitExternalNextAcceptLink'). Href}}} & lt; / script & gt; & lt; / head & gt; body onload = "reloadoverpage () ; "& Gt; Bean: Message key =" external_submit.body ">   

form

  & gt; form target = "_ parent" name = "hitForm" style = "visibility: hidden "Id =" hitform "method =" post "action =" https://workersandbox.mturk.com/mturk/externalSubmit ">  gt; & lt; input type =" Input type = "hidden" id = "workerId" name = "worker id" /> input type = "hidden" id = "id =" hitId "name =" hitId "/> "Caption" name = "caption" value = "test" & gt; input type = "submit" name = "submit" id = "submitButton" value = "submit" disabled = "true" & gt; ; & Lt; / form & gt; & gt; button ng-show = "! Has accepted () "disabled", you have to accept HIT first to submit it! & Lt; / button & gt; Button; ng-click = "SubmitThat (InputText)" ng-show = "Accepted ()" & gt; Submit & lt; / button & gt;   

Where Submit Method looks like this I have checked this - I checked it):

  $ scope of SubmitHit = function (cap) {$ scope.form = document.getElementById ("hitForm"); $ Scope.assignmentId = " "; $ Scope.hitId =" "; $ Scope.workerId =" "; $ Scope.assignmentId = $ scope.turkGetParam (" As $ Scope.hitId = $ scope.turkGetParam ("hitId"); $ Scope.workerId = $ scope.turkGetParam ("Employee"); Document.getElementById ("Assignment ID"). Value = $ scope.assignmentId; Document.getElementById ("hitId"). Value = $ scope.hitId; Document.getElementById ("workerId"). Value = $ scope.workerId; $ Scope.form.submit ();}   

Thanks a lot for your help!

As always, this "bug" After working around 2 days and after asking over the stack overflow, finding a solution: I had to remove target = "_ parent" in my form and Now everything works fine!

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -