Ping Website In the Middle of Experiment


Author
Message
Connorrr
Connorrr
Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)
Group: Forum Members
Posts: 19, Visits: 107
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
Dave
Dave
Supreme Being (817K reputation)Supreme Being (817K reputation)Supreme Being (817K reputation)Supreme Being (817K reputation)Supreme Being (817K reputation)Supreme Being (817K reputation)Supreme Being (817K reputation)Supreme Being (817K reputation)Supreme Being (817K reputation)
Group: Administrators
Posts: 10K, Visits: 56K
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>


Connorrr
Connorrr
Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)Partner Member (932 reputation)
Group: Forum Members
Posts: 19, Visits: 107
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search