Millisecond Forums

Ping Website In the Middle of Experiment

https://forums.millisecond.com/Topic29174.aspx

By Connorrr - 6/3/2020

Hi,

This is a bit of a long shot but I want to set up a webpage that will send an SMS to the participant.  This part I know how to do just fine but what I would like to do is have the participant reach a certain point in the experiment and then have Inquisit 'ping' that website to trigger the sms.  I know we can connect to FTP servers with the <data> element but is it possible to connect to other URLs while in the experiment?

Kind Regards,

Connor
By Dave - 6/3/2020

Connorrr - 6/3/2020
Hi,

This is a bit of a long shot but I want to set up a webpage that will send an SMS to the participant.  This part I know how to do just fine but what I would like to do is have the participant reach a certain point in the experiment and then have Inquisit 'ping' that website to trigger the sms.  I know we can connect to FTP servers with the <data> element but is it possible to connect to other URLs while in the experiment?

Kind Regards,

Connor

You can possibly do something with the <html> stimulus element

https://www.millisecond.com/support/docs/v5/html/language/elements/html.htm

as in

<trial ping>
/ stimulusframes = [1=pingsite]
/ validresponse = (0)
/ trialduration = 500
</trial>

<html pingsite>
/ items = ("https://www.google.com/search?q=test")
...
</html>

By Connorrr - 6/3/2020

Dave - 6/4/2020
Connorrr - 6/3/2020
Hi,

This is a bit of a long shot but I want to set up a webpage that will send an SMS to the participant.  This part I know how to do just fine but what I would like to do is have the participant reach a certain point in the experiment and then have Inquisit 'ping' that website to trigger the sms.  I know we can connect to FTP servers with the <data> element but is it possible to connect to other URLs while in the experiment?

Kind Regards,

Connor

You can possibly do something with the <html> stimulus element

https://www.millisecond.com/support/docs/v5/html/language/elements/html.htm

as in

<trial ping>
/ stimulusframes = [1=pingsite]
/ validresponse = (0)
/ trialduration = 500
</trial>

<html pingsite>
/ items = ("https://www.google.com/search?q=test")
...
</html>


This worked perfectly!  Thank you.