Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Online experiment with showing picture + having a type box

Hello,

I'm trying to design the recall phase of my experiment, where participants view a picture, and they have to type in the word that was paired with the picture (This is after they learned the word-picture pairs).

The issue is, I do understand on osweb you cannot have the form_base item (which I initially tried to use and succeeded on desktop). I think in theory you'd need a inline javascript item with the picture embedded there, and a text input box below it. In my datafile, I only need to record the displayed picture, and what the participant typed (so no feedback).

Is there a way to do this? Javascript is a little beyond me so any help would be much appreciated.

Comments

  • Hi @sotake24 ,

    If I understand correctly you want to show a form that shows an image, presumably defined by a variable, and that also collects a text-input response from the participant. And you want to do that in OSWeb. Is that correct?

    If so, you can use the inline_html item along the lines shown below. Essentially, the idea is to add some JavaScript that retrieves an image from the file pool based on a variable my_image (which should be defined somewhere, typically in a loop ) and then assigns it to an HTML img element.

    <input type='text' name='text_response'>
    <img id='my_image_element'>
    <input type='submit' value='ok'>
    
    <script>
    document.getElementById('my_image_element').src = pool[my_image].data.src
    </script>
    

    See also:

    Is that helpful?

    — Sebastiaan

  • FabFab
    edited March 17

    Hi @sotake24,

    The form_base is indeed not currently supported in OSWeb. However, you can use the inline_javascript or the inline_html to achieve the same result.

    A simple way to show a picture and take a response frmo the participant is to use the html_inline and write your own html code (see https://osdoc.cogsci.nl/4.0/manual/forms/html/ for hints). Note that you can also insert some javascript scrtipting into the html document, which makskes it quite flexible. There are many resources out there if you're not familiar with html and javascript.

    I put an example together where the picture is taken from a variable in a loop.

    Note that the name property in input type='text' name='text_response' defines the variable in which the participant's response is stored. I added a feedback object to ilustrate it.

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

  • Dear @sebastiaan and @Fab

    Thank you so much for your help.

    It seems to have gotten me what I wanted!

    -sotake24

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games