- Update 4 months 4 weeks ago
- Reply: code for get cookie 5 months 3 weeks ago
- Probably so. It's not a huge 6 months 1 week ago
- They might work, but they 6 months 1 week ago
- Spoke too soon.. the new 6 months 1 week ago
- A quick addendum... 6 months 1 week ago
- We can update to the new 6 months 1 week ago
- David, 6 months 1 week ago
- Existing IAT Tasks 6 months 1 week ago
- Video player with automatic actions on video complete (coded up) 6 months 1 week ago
Comments
Steven Lehr
Mon, 08/15/2011 - 14:09
Permalink
Sliders?
I can't tell you folks how much I appreciate all the new, clean templates for types of questions. My life just got a lot easier.
However, there's at least one type that might prove useful but which seems to be missing. Specifically, in one of the studies I'm hoping to design this week, I'll need a "slider" (measuring immediate happiness). My reason for using this question type is that I'll be measuring happiness at two different points in the experiment (before and after a gambling game), and I was thinking that this format might help minimize anchoring effects.
Do we have any templates for this type of question? (Or a suggestion for why I might not need one?)
Steve
Jeffrey Spies
Mon, 08/15/2011 - 15:54
Permalink
Hi, Steve, there may be a PI
Hi, Steve, there may be a PI pre-built solution, and perhaps one of the other developers can comment on that, but sliders have been implemented nicely by a variety of javascript libraries; I like the jQuery User Interface library:
http://jqueryui.com/demos/slider/
N. Sriram
Tue, 08/16/2011 - 01:54
Permalink
No, I am not aware of
No, I am not aware of sliders.. This google code project looks interesting. The trick would be understand the appropriate html and making sure that the value is stored in a form variable
http://code.ovidiu.ch/dragdealer/
http://code.google.com/p/dragdealer/ download zipfile that has 2 small files on left.
David Dobolyi
Tue, 08/16/2011 - 13:50
Permalink
Firefox 6.0 and httpfox (compatible version provided)
Firefox 6.0 just went public today. This version breaks compatibility with httpfox, but it can be fixed by editing the .xpi file that contains the add-on. Here is a link of a pre-edited version I created that is tested, working in Firefox 6.0.
http://db.tt/NChyn4z
David Dobolyi
Tue, 08/16/2011 - 13:54
Permalink
How to install this .xpi file
I forgot to mention, to install httpfox from the .xpi file, just go to File -> Open File... in the Firefox menu.
David Dobolyi
Tue, 08/16/2011 - 14:34
Permalink
Working with data in R
I overheard that there is some work-in-progress towards having R scripts for working with PI data outside of SAS and SPSS. Is there a wiki page or repo available to access/contribute to this development?
Jeffrey Spies
Wed, 08/17/2011 - 08:55
Permalink
HI, David, an R package is
HI, David, an R package is being developed to handle the scoring; we're in the validation stages of that, but will be welcoming alpha testers very shortly.
There is some work that needs to be done on handling data that comes specifically from PI and would be a sizable contribution to the group. If you are interested in that sort of development, email me, and we can talk about what would need to be done.
David Dobolyi
Tue, 08/16/2011 - 14:37
Permalink
Reporting bugs and trouble issues
Sorry for having so many posts, but I think mine didn't go through from yesterday. A few weeks ago I found a bug with the handling of the 'pid' cookie. I was wondering if there is a place to report bugs/issues like this one to save other people from having to figure out such weird instances (description below):
---
I wanted to add something to the wiki or suggest an update for the xGetCookie function on PI.
Specifically, I spent several hours debugging an issue that turned out to do with how the 'tid' cookie is being called using xGetCookie. Specifically, I had another cookie that happened to be called 'correctid' and since xGetCookie scans all cookies for the name 'tid' it was returning the value from 'correctid' rather than the actual 'tid' (for which I'm not sure what the path is). Changing 'correctid' to 'corrid' immediately fixed the bug.
Anyway, it turns out this is a known bug with xGetCookie, for which they have released an update (namely xCookie, in second link):
http://cross-browser.com/forums/viewtopic.php?id=504
http://cross-browser.com/x/lib/view.php?s=xCookie
I'm sure this is the first time this has ever come up, but in case anyone else loses hours to it, this is why.
David Dobolyi
Wed, 08/17/2011 - 10:46
Permalink
Nags that explain which questions are unanswered + focus on them
I wrote a version of the dropdown nag that will tell the participant which questions are unanswered, focus on the first unanswered question, and simplify adjusting the code to your specific form name (you only need to name the form once at the top, rather than for each individual question).
Here is the version for dropdown. Would it be useful to do these for the other formats?
http://db.tt/w4CzfZG
Demo:
http://people.virginia.edu/~dd2es/dropdown-nag-adv.htm
David Dobolyi
Wed, 08/17/2011 - 15:01
Permalink
Video player with automatic actions on video complete (coded up)
Demo: http://people.virginia.edu/~dd2es/video/video.html
Code: http://db.tt/K7Qqg1c
This is written for the current jwplayer version 4.1 being used on PI. New versions will use different code, so I created this for 4.1 to ensure compatibility.
N. Sriram
Wed, 08/17/2011 - 22:44
Permalink
We can update to the new
We can update to the new version.. are you saying that the edits you made wont work on the new version as well?
David Dobolyi
Fri, 08/19/2011 - 00:33
Permalink
They might work, but they
They might work, but they changed the javascript API for the newer versions. If we do upgrade to 5.7+, I would keep the old one around as well and just use different filenames while leaving the old ones intact (for things like the .swf file).
Becca Frazier
Wed, 08/17/2011 - 22:40
Permalink
Existing IAT Tasks
I was wondering if we could create a page with information listing all (or most) of the already existing IAT tasks with templates, sample testing links, and/or contact information for the people who have created them.
I often get an idea for an IAT that I would like to run, for example, a implicit political self-identification IAT (Rep-Dem, Me-Not Me) but I have no idea if someone else has already created that task or not. In this case, for instance, I think someone said that Carlee may have created a similar task at one point but I have no idea if she did or not, where i can find the files, or what it looked like. Ideally, I think it would be great for us to have a listing of the existing IAT tasks with templates, the name of the person who created them, and a sample link to view each IAT (maybe from the showfiles.jsp link). That way, someone who was thinking about creating a new IAT or wanting to use a less familar IAT could go to the wiki page, take the IAT to see if it was what they wanted, then look over the template, and then contact the creator if they had any issues.
Becca Frazier
Wed, 08/17/2011 - 22:44
Permalink
A quick addendum...
And I just want to mention that I recognize that creating an IAT is a lot of work and some people might have concerns about putting their templates out there for just anyone to use. So, perhaps posting the templates themselves should be optional?
However, it would still be really nice to be able to take the different IATs that currently exist and to know who to contact should you want to reuse or update an already existing IAT.
N. Sriram
Wed, 08/17/2011 - 22:42
Permalink
David,
David,
Excellent contributions. Yes, we can update to the new version of the cookie function as this one must be quite old. Thanks. Let me begin by putting this on the pi site which is only for training currently.
N. Sriram
Wed, 08/17/2011 - 22:55
Permalink
Spoke too soon.. the new
Spoke too soon.. the new version is object oriented and the old one is not. but the old version is being used in many files. I guess we need to patch the old version, else chaos may ensue?
David Dobolyi
Fri, 08/19/2011 - 00:36
Permalink
Probably so. It's not a huge
Probably so. It's not a huge issue, as I don't think most people will ever encounter it. Perhaps we could adjust the old one and force it to only work on the 'tid' as an entire-word string. I think the current matching just picks the first alphabetical match from the cookie list. Do you mind sharing the .js file for xCookie for the version being used on PI so I can take a look? Thanks!
N. Sriram
Sat, 08/20/2011 - 12:42
Permalink
Reply: code for get cookie
function xGetCookie(name) { var value=null, search=name+"="; if (document.cookie.length > 0) { var offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; var end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; value = unescape(document.cookie.substring(offset, end)); } } return value; }