Howdy, Stranger!

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

Supported by

Links to videos in OSWeb

Hi,

Is there a way to include a link in the middle of my experiment so that participants could click on it and watch a video.

Part of my experiment requires the presentation of videos. They need to be included at the beginning of each block. Since videos are not supported in Osweb, I'm thinking about providing the links to videos at the beginning of each block.

I vaguely remember that this inline script code could open up a browser.

open.window("https://www.qualtrics.com/")

But unfortunately, this code didn't work for me. When i run it i get this error

Details

item: new_inline_javascript

phase: run

item-stack: experiment[run].practice_loop[run].block_sequence[run].new_inline_javascript[run]

time: Tue Mar 2 22:23:48 2021

exception type: JsException

exception message: ReferenceError: open is not defined


Any help is greatly appreciated.

Thank you

Gazelle

Comments

  • Hi Gazelle,

    I think that might be possible, however, you are basically leaving the experiment then, that is, changing the window. So, in order to get back in to the experiment, your participants would have to manually click back and continue. I think this could be somewhat complicated, but it might work. (you'll definitely have participants that will get confused and screw up though ;)

    Perhaps an alternative would be split your blocks in the experiments in separate experiment and let your participants participate in a sequence of experiments?

    Sorry if this doesn't help.

    Eduard

    Buy Me A Coffee

  • @eduard Yea it's definitely a risky thing to do, but I'm gonna run a pilot study to see if it's feasible. Do you happen to know I need to include in the JAVA inline script to open a link in a browser?

  • Yes, I think so. Opening a link is not a standard operation in Opensesame/OsWeb, so you would need to trigger this action, once participants click in a certain region of the screen (location of the link). I am not sure whether it is possible with javascript to define something as hyperlink, so that clicking on it will trigger this action (or whether OsWeb allows for this to happen). If not, you need to use a ROI-based approach. Lotje made a video tutorial for that. Maybe it is useful to you:

    Eduard

    Buy Me A Coffee

  • Hi @Gazelle_M,

    You can actually open a web page using Javascript in your experiment. In fact you were very close in your first post but you just swapped "open" and "window". This will work:

    window.open("https://www.qualtrics.com/", "_blank")

    The "_blank" parameter will make sure that the new page is open in a new tab within the browser (that way the page where your online experiment is running won't disappear).

    Note that this Javascript code will only work out from within a browser (not if you try to run your task from OS using "Run fullscreen", "Run in a window" or "Quick run".

    Hope this helps.

    Fabrice.

  • PS: if you need your Qualtrics survey (or any other service) to receive information from the task (e.g., the participant's id, some score or anything else), the simplest way is to pass on that information within the URL. You can find information about how to handle query strings in Qualtrics on this page. The logic is the same whatever page you send your participants too but how you read the data passed through the URL will depend on what you're using (for example like this in Javascript).

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