Web script - played wrong file and data file saving on local


Author
Message
claw
claw
Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)
Group: Forum Members
Posts: 17, Visits: 1

Hi, I've test my script on the PC and quite happy with it. I've then loaded it to my own hosting server and found these two issues:


1. Trying to submit data back to my own server. Probably not a big deal but I'll share my experience here.


(i) ftp gave me this error http://www.millisecond.com/forums/Topic760.aspx#760 even when I used subdirectory.


(ii) http gave me another similar error


(iii) when tested with Firefox on a Mac a blank screen took out the whole page and there's no way to close it.


(iv) with (i) & (ii) on Windows 7 / IE it forced me to save the data locally before giving me those errors.


In the end I just use the default option, which is to save my data on the millisecond server. So, if there's no solution to the reported issues I'm okay.


2. I have multiple sound stimuli and have tested my replace logic extensively. I have 5 folders, and all of them contain 3 different audio files. That is, I have a total of 15 files stored in 5 different folders. The file names are identical in all 5 folders, and I'm guessing this is the issue. When played from the web, files from the first folder were always played - BUT when I look into the response data, it was reported that files from different folders were used instead. To better illustrate this, here's my items:



<item trivias>


/1   = "ma_f1/fi01.mp3"


/2   = "br_m2/fi01.mp3"


/3   = "au_f1/fi01.mp3"


/4   = "au_f2/fi01.mp3"


/5   = "au_m2/fi01.mp3"



/6   = "ma_f1/fi02.mp3"


/7   = "br_m2/fi02.mp3"


/8   = "au_f1/fi02.mp3"


/9   = "au_f2/fi02.mp3"


/10  = "au_m2/fi02.mp3"



/11  = "ma_f1/fi03.mp3"


/12  = "br_m2/fi03.mp3"


/13  = "au_f1/fi03.mp3"


/14  = "au_f2/fi03.mp3"


/15  = "au_m2/fi03.mp3"


</item>


This is what I heard: au_m2/fi01.mp3 au_m2/fi02.mp3 au_m2/fi03.mp3 


This is what the data file says:



stimulusitem1


au_m2/fi01.mp3


au_f2/fi02.mp3


br_m2/fi03.mp3


Is it a problem with reusing file names even thou they were in different folders?



Thanks in advance!!!!





Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

(ii) http gave me another similar error


I can't speak to the FTP issue without any information re. your server's configuration. Re. HTTP, note that you need some web programming to capture the HTTP POST request and extract the data. For details see https://millisecond.com/products/Inquisit4/webhosting.aspx.


As to your folder issue: You cannot pull files from subfolders in web experiments because it is not possible to reliably recreate the folder structure on the client machines. All files need to be in the same root folder as the script which in your case also implies they need to have different names.


claw
claw
Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)Partner Member (886 reputation)
Group: Forum Members
Posts: 17, Visits: 1

Thanks for the clarifications :)


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search