Millisecond Forums

Custom launch page link

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

By Kacha - 8/3/2021

Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia
By Dave - 8/3/2021

Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a custom launch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
By Kacha - 8/3/2021

Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)
By Kacha - 8/5/2021

Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>
By Dave - 8/5/2021

Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.
By Kacha - 8/5/2021

Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html
By Dave - 8/5/2021

Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).

By Kacha - 8/5/2021

Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!
By Kacha - 8/6/2021

Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)
By Dave - 8/6/2021

Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.
By Kacha - 8/6/2021

Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.
By Dave - 8/6/2021

Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.

The thread you linked refers to the installer panel, it does not say anything about subject or group IDs. It's also referring to a different generation of launch pages (for Inquisit 5).

You still have not explained what you think it is you should do -- I cannot clear up any confusion as long as I do not know what exactly the confusion is. As I explained in my previous response to you ( https://www.millisecond.com/forums/FindPost32053.aspx ), what you need to do is *replace* the GetSubjectNumber() and GetGroupId() functions with your own.
By Kacha - 8/6/2021

Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.

The thread you linked refers to the installer panel, it does not say anything about subject or group IDs. It's also referring to a different generation of launch pages (for Inquisit 5).

You still have not explained what you think it is you should do -- I cannot clear up any confusion as long as I do not know what exactly the confusion is. As I explained in my previous response to you ( https://www.millisecond.com/forums/FindPost32053.aspx ), what you need to do is *replace* the GetSubjectNumber() and GetGroupId() functions with your own.

Hi Dave, 

Thanks a lot. No confusion, I just wanted to edit the launch page. But I found it is above my skills, to write functions like that, so was looking for any other solution.
By Dave - 8/6/2021

Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.

The thread you linked refers to the installer panel, it does not say anything about subject or group IDs. It's also referring to a different generation of launch pages (for Inquisit 5).

You still have not explained what you think it is you should do -- I cannot clear up any confusion as long as I do not know what exactly the confusion is. As I explained in my previous response to you ( https://www.millisecond.com/forums/FindPost32053.aspx ), what you need to do is *replace* the GetSubjectNumber() and GetGroupId() functions with your own.

Hi Dave, 

Thanks a lot. No confusion, I just wanted to edit the launch page. But I found it is above my skills, to write functions like that, so was looking for any other solution.

I can help you write those functions -- there's already a proposal for the GetSubjectId() function in https://www.millisecond.com/forums/FindPost32053.aspx

Why don't you start by integrating that into the start page and then we'll move on to the GetGroupId() function?
By Kacha - 8/6/2021

Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.

The thread you linked refers to the installer panel, it does not say anything about subject or group IDs. It's also referring to a different generation of launch pages (for Inquisit 5).

You still have not explained what you think it is you should do -- I cannot clear up any confusion as long as I do not know what exactly the confusion is. As I explained in my previous response to you ( https://www.millisecond.com/forums/FindPost32053.aspx ), what you need to do is *replace* the GetSubjectNumber() and GetGroupId() functions with your own.

Hi Dave, 

Thanks a lot. No confusion, I just wanted to edit the launch page. But I found it is above my skills, to write functions like that, so was looking for any other solution.

I can help you write those functions -- there's already a proposal for the GetSubjectId() function in https://www.millisecond.com/forums/FindPost32053.aspx

Why don't you start by integrating that into the start page and then we'll move on to the GetGroupId() function?

That would be amazing, as this is the last thing in this study and I got stuck :) 
I think I did with the GetSubjectId()
Launch page link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm
I did a test run, and I can see Subject ID: 422562688 in the data
By Dave - 8/6/2021

Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.

The thread you linked refers to the installer panel, it does not say anything about subject or group IDs. It's also referring to a different generation of launch pages (for Inquisit 5).

You still have not explained what you think it is you should do -- I cannot clear up any confusion as long as I do not know what exactly the confusion is. As I explained in my previous response to you ( https://www.millisecond.com/forums/FindPost32053.aspx ), what you need to do is *replace* the GetSubjectNumber() and GetGroupId() functions with your own.

Hi Dave, 

Thanks a lot. No confusion, I just wanted to edit the launch page. But I found it is above my skills, to write functions like that, so was looking for any other solution.

I can help you write those functions -- there's already a proposal for the GetSubjectId() function in https://www.millisecond.com/forums/FindPost32053.aspx

Why don't you start by integrating that into the start page and then we'll move on to the GetGroupId() function?

That would be amazing, as this is the last thing in this study and I got stuck :) 
I think I did with the GetSubjectId()
Launch page link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm
I did a test run, and I can see Subject ID: 422562688 in the data

As far as I can see, that start page still hardcodes a value.

What exactly did you do with the GetSubjectId() function?

For what it's worth, what you need to do is open the intropage.htm file you have somewhere on your computer in a text editor (e.g. Notepad). Then scroll down to the GetSubjectNumber() function. It'll look like this:



Then replace the function with the code in my previous response, so it looks like this:



Save the changes and then upload that new intropage.htm file to your experiment. We'll have to do something similar with the GetGroupId() function next -- how many groups do you have in your experiment?
By Kacha - 8/6/2021

Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.

The thread you linked refers to the installer panel, it does not say anything about subject or group IDs. It's also referring to a different generation of launch pages (for Inquisit 5).

You still have not explained what you think it is you should do -- I cannot clear up any confusion as long as I do not know what exactly the confusion is. As I explained in my previous response to you ( https://www.millisecond.com/forums/FindPost32053.aspx ), what you need to do is *replace* the GetSubjectNumber() and GetGroupId() functions with your own.

Hi Dave, 

Thanks a lot. No confusion, I just wanted to edit the launch page. But I found it is above my skills, to write functions like that, so was looking for any other solution.

I can help you write those functions -- there's already a proposal for the GetSubjectId() function in https://www.millisecond.com/forums/FindPost32053.aspx

Why don't you start by integrating that into the start page and then we'll move on to the GetGroupId() function?

That would be amazing, as this is the last thing in this study and I got stuck :) 
I think I did with the GetSubjectId()
Launch page link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm
I did a test run, and I can see Subject ID: 422562688 in the data

As far as I can see, that start page still hardcodes a value.

What exactly did you do with the GetSubjectId() function?

For what it's worth, what you need to do is open the intropage.htm file you have somewhere on your computer in a text editor (e.g. Notepad). Then scroll down to the GetSubjectNumber() function. It'll look like this:



Then replace the function with the code in my previous response, so it looks like this:



Save the changes and then upload that new intropage.htm file to your experiment. We'll have to do something similar with the GetGroupId() function next -- how many groups do you have in your experiment?

This is exactly what I did, and it looks like it should in your example
 
I have 2 groups only. So I understand the group ID needs to assign 1 or 2 based on the even or odd subject number. The batch script takes it from there.
The session is just the count of the sessions?
Thanks!!
By Dave - 8/6/2021

Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.

The thread you linked refers to the installer panel, it does not say anything about subject or group IDs. It's also referring to a different generation of launch pages (for Inquisit 5).

You still have not explained what you think it is you should do -- I cannot clear up any confusion as long as I do not know what exactly the confusion is. As I explained in my previous response to you ( https://www.millisecond.com/forums/FindPost32053.aspx ), what you need to do is *replace* the GetSubjectNumber() and GetGroupId() functions with your own.

Hi Dave, 

Thanks a lot. No confusion, I just wanted to edit the launch page. But I found it is above my skills, to write functions like that, so was looking for any other solution.

I can help you write those functions -- there's already a proposal for the GetSubjectId() function in https://www.millisecond.com/forums/FindPost32053.aspx

Why don't you start by integrating that into the start page and then we'll move on to the GetGroupId() function?

That would be amazing, as this is the last thing in this study and I got stuck :) 
I think I did with the GetSubjectId()
Launch page link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm
I did a test run, and I can see Subject ID: 422562688 in the data

As far as I can see, that start page still hardcodes a value.

What exactly did you do with the GetSubjectId() function?

For what it's worth, what you need to do is open the intropage.htm file you have somewhere on your computer in a text editor (e.g. Notepad). Then scroll down to the GetSubjectNumber() function. It'll look like this:



Then replace the function with the code in my previous response, so it looks like this:



Save the changes and then upload that new intropage.htm file to your experiment. We'll have to do something similar with the GetGroupId() function next -- how many groups do you have in your experiment?

This is exactly what I did, and it looks like it should in your example
 
I have 2 groups only. So I understand the group ID needs to assign 1 or 2 based on the even or odd subject number. The batch script takes it from there.
The session is just the count of the sessions?
Thanks!!

Okay -- so far, so good.

On to the function GetGroupId() function. With two groups and condition assignment based on group number, you need a function that randomly returns either "1" or "2". So, define an array groups with "1" and "2" as its elements, and then you can have the function randomly pick one of those two elements and return it.

function GetGroupId()
{
var groups = ["1","2"];
var randomGroup = groups[Math.floor(Math.random() * groups.length)];
return randomGroup;
}


The session ID we will have to ignore; it'll always return "1" in your case -- session numbers require the server to keep track / database involvement, and we can't have that with a custom launch page set up like this.
By Kacha - 8/6/2021

Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Dave - 8/6/2021
Kacha - 8/6/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Dave - 8/5/2021
Kacha - 8/5/2021
Kacha - 8/3/2021
Dave - 8/3/2021
Kacha - 8/3/2021
Hi, 

I am wondering if there is a way to customize the link itself for a custom launch page. For now, it refers to the name of the account and the experiment, both not ideal.

Thanks a lot,
Kasia

You can host the script and launch page on your own server. That will give you full control over how the link looks.

https://www.millisecond.com/products/inquisit6/webhosting.aspx

For a customlaunch page hosted in your millisecond.com account, however, no, there is no way to customize the link.
That is very helpful, thanks a lot :)

I went with a custom, hosted launch page. What changed that my group assignment does not work as previously (with the default launch page).
Does Inquisit assign a random ID with a custom launch page as well?

My main script looks like that:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "experiment_final_control.iqx"
</batch>

That depends entirely on how you set up and coded the custom launch page. I don't have any information on that from you, nor any link, so I cannot say anything about that.

A fair point, this has to coded in the page itself.
To be honest, I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable. Hope that is fine.
This is the link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.html

> I just copied the code of the default page and changed the text as I needed a different language and added one more link, to be clickable.

Yeah, that's not the way to do it, I'm afraid.

The launch page is responsible for passing subject and group ids on to the script. There are two functions in the page for this purpose,

function GetSubjectNumber()

and

function GetGroupId()

When using the default launch page, run on the millisecond servers, the server's data base takes care of subject and group ids, i.e. those functions will return a value from the respective database, and that is what wil be visible in in the source code.



What you did when copying the pages source is effectively hardcoding those values above. Your page now always returns "721755398" as the subject ID and always returns "1" as the group ID.

You need to fix that. You can either do things how they're intended to be done, i.e. a custom launch page that embeds the default launch page as an iframe, thereby keeping all its functionality intact. This is what you get when you click on "Download Launch Page" in the setting's summary:



Alternatively, you need to substitute the two functions in the page you have with your own, i.e. write some JavaScript code that generates a large random integer for use as the subject ID, i.e. something like 

function GetSubjectNumber()
{
var snum = Math.floor(Math.random() * 1000000000);
return snum.toString();
}


and returns a random value from an array of however many groups you have as the group ID (see e.g. https://stackoverflow.com/questions/42211863/pick-a-random-item-from-a-javascript-array ).


wow, Dave, this help is invaluable!

Hi,
I still fail with this element.
I found in a different thread, that "View page source" should give the functions not hardcoded. But I copied it and does not work as intended.
Also, I do not know how to take the advantage of having the iFrame. Can I insert my modified launch page into it, keeping the participants numbers and groups assignment functions?
This is the current link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm

Sorry for asking so many questions. I do not code, and just modifying the launch page brought such a challenge ;)

I'm confused. The page you have up there still hardcodes return values for the two functions. I do not see you having made any modifications to those functions. Can you explain what you did or what you think you should do? It's entirely unclear to me what this

> I found in a different thread, that "View page source" should give the functions not hardcoded.

is supposed to mean.

Sorry for the confusion
I meant: https://www.millisecond.com/forums/Topic23768.aspx

And you are right, I still copy the hardcoded values.

The thread you linked refers to the installer panel, it does not say anything about subject or group IDs. It's also referring to a different generation of launch pages (for Inquisit 5).

You still have not explained what you think it is you should do -- I cannot clear up any confusion as long as I do not know what exactly the confusion is. As I explained in my previous response to you ( https://www.millisecond.com/forums/FindPost32053.aspx ), what you need to do is *replace* the GetSubjectNumber() and GetGroupId() functions with your own.

Hi Dave, 

Thanks a lot. No confusion, I just wanted to edit the launch page. But I found it is above my skills, to write functions like that, so was looking for any other solution.

I can help you write those functions -- there's already a proposal for the GetSubjectId() function in https://www.millisecond.com/forums/FindPost32053.aspx

Why don't you start by integrating that into the start page and then we'll move on to the GetGroupId() function?

That would be amazing, as this is the last thing in this study and I got stuck :) 
I think I did with the GetSubjectId()
Launch page link: https://scripts.millisecond.com/rbalas/zerka1_1/intropage.htm
I did a test run, and I can see Subject ID: 422562688 in the data

As far as I can see, that start page still hardcodes a value.

What exactly did you do with the GetSubjectId() function?

For what it's worth, what you need to do is open the intropage.htm file you have somewhere on your computer in a text editor (e.g. Notepad). Then scroll down to the GetSubjectNumber() function. It'll look like this:



Then replace the function with the code in my previous response, so it looks like this:



Save the changes and then upload that new intropage.htm file to your experiment. We'll have to do something similar with the GetGroupId() function next -- how many groups do you have in your experiment?

This is exactly what I did, and it looks like it should in your example
 
I have 2 groups only. So I understand the group ID needs to assign 1 or 2 based on the even or odd subject number. The batch script takes it from there.
The session is just the count of the sessions?
Thanks!!

Okay -- so far, so good.

On to the function GetGroupId() function. With two groups and condition assignment based on group number, you need a function that randomly returns either "1" or "2". So, define an array groups with "1" and "2" as its elements, and then you can have the function randomly pick one of those two elements and return it.

function GetGroupId()
{
var groups = ["1","2"];
var randomGroup = groups[Math.floor(Math.random() * groups.length)];
return randomGroup;
}


The session ID we will have to ignore; it'll always return "1" in your case -- session numbers require the server to keep track / database involvement, and we can't have that with a custom launch page set up like this.

Dave, beautiful. It is working, I checked it and checked the data. Thanks a million!
I do not need the session ID, as I can identify by the subject ID.