03/02 - Therapeutic Thursday!

Status
Not open for further replies.

Squatty

.
Contributor
Crowd Pleaser
HIT Poster
Joined
Mar 17, 2016
Messages
21,286
Reaction score
44,989
Points
2,538
Age
35
Gender
Female
Code:
window.open(document.getElementsByTagName(`a`)[0].href);
This wouldn't work for me?

I tried

Code:
window.open(document.getElementsByTagName("a")[0].href);
and it would open a new tab, but it was blank.
 
  • Like
Reactions: Kerek

Kerek

Red Cat-Bear
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
64,808
Reaction score
145,369
Points
2,088
Gender
Male
This wouldn't work for me?

I tried

Code:
window.open(document.getElementsByTagName("a")[0].href);
and it would open a new tab, but it was blank.
HITs with the "Click to expand" instructions use an 'a' tag to do that. So the code should be

Code:
window.open(document.getElementsByTagName("a")[1].href);
 

Kadauchi

Well-Known Member
Master Pleaser
Crowd Pleaser
Joined
Jan 12, 2016
Messages
7,098
Reaction score
21,951
Points
1,263
This wouldn't work for me?

I tried

Code:
window.open(document.getElementsByTagName("a")[0].href);
and it would open a new tab, but it was blank.
Cause I meant.
Code:
window.open(document.getElementsByTagName(`a`)[1].href);
I instinctively do [0]
 
  • Like
Reactions: Squatty and Kerek

SweetiePuff

No Lifer
Contributor
Crowd Pleaser
HIT Poster
Joined
Oct 10, 2016
Messages
19,283
Reaction score
34,574
Points
1,838
Location
Jersey Girl
Gender
Female
Title: Life Events Study(~ 13 minutes) | PANDA
Requester: Rebecca Ferrer [A2XJDQCVUF6Y2D] (Contact)
TO: [Pay: 3.33] [Fair: 5.00] [Comm: 5.00] [Fast: 5.00] [Reviews: 56] [ToS: 0]
Description:
This study involves taking a survey that should take 10-15 minutes. You will receive $1 for participating.
Time: 45 minutes
HITs Available: 1
Reward: $1.00
Qualifications: Exc: [-1697408346-35370] DoesNotExist ; Location In US;
HIT posted from Mturk Suite v1.11.7
 

Sathington Willoughby

Member
Contributor
Joined
Jan 9, 2017
Messages
440
Reaction score
628
Points
418
Gender
Male
Title: Cyclist Intent | PANDA
Requester: Avery [A1VOBEB3SPYL4U] (Contact)
TO: [Pay: 3.00] [Fair: 5.00] [Comm: 1.00] [Fast: 3.33] [Reviews: 3] [ToS: 0]
Description:
The surveys will ask you to figure out what the cyclist is thinking. Please follow the instructions in the attached survey link.
Time: 60 minutes
HITs Available: 422
Reward: $0.06
Qualifications: HIT approval rate (%) is greater than 92;
 

Squatty

.
Contributor
Crowd Pleaser
HIT Poster
Joined
Mar 17, 2016
Messages
21,286
Reaction score
44,989
Points
2,538
Age
35
Gender
Female
HITs with the "Click to expand" instructions use an 'a' tag to do that. So the code should be

Code:
window.open(document.getElementsByTagName("a")[1].href);
Amazing as always red fox bear :)
 
  • Like
Reactions: Kerek and Jaded

Kadauchi

Well-Known Member
Master Pleaser
Crowd Pleaser
Joined
Jan 12, 2016
Messages
7,098
Reaction score
21,951
Points
1,263
Would probably be better to do something like.
Code:
document.querySelector(`a[href^="http"]`)
//or
document.querySelectorAll(`a[href^="http"]`)[0]
That would make sure its a real link.
 
  • Like
Reactions: Kerek and Squatty

Starslip

Well-Known Member
Contributor
Crowd Pleaser
Joined
Jan 19, 2016
Messages
13,351
Reaction score
35,529
Points
1,588
Age
124
Gender
Male
Title: read articles, answer questions | PANDA
Requester: Michelle Gielan [A2ISUBDPX3RMBF] (TO)
TO Ratings:
★★★★★ 3.67 Communicativity
★★★★ 4.60 Generosity
★★★★ 4.43 Fairness
★★★★ 4.00 Promptness
Number of Reviews: 10 | TOS Flags: 0
Submit a new TO review
Description: Read article and answer questions, 10-15 minutes
Time: 40 minutes
HITs Available: 1
Reward: $2.50
Qualifications: Masters has been granted;Location is US
 

SweetiePuff

No Lifer
Contributor
Crowd Pleaser
HIT Poster
Joined
Oct 10, 2016
Messages
19,283
Reaction score
34,574
Points
1,838
Location
Jersey Girl
Gender
Female
Title: Life Events Study(~ 13 minutes) | PANDA
Requester: Rebecca Ferrer [A2XJDQCVUF6Y2D] (Contact)
TO: [Pay: 3.33] [Fair: 5.00] [Comm: 5.00] [Fast: 5.00] [Reviews: 56] [ToS: 0]
Description:
This study involves taking a survey that should take 10-15 minutes. You will receive $1 for participating.
Time: 45 minutes
HITs Available: 1
Reward: $1.00
Qualifications: Exc: [-1080015791-35385] DoesNotExist ; Location In US;
HIT posted from Mturk Suite v1.11.7
 

MindNumbing

Well-Known Member
Contributor
Joined
Jan 12, 2016
Messages
5,971
Reaction score
10,565
Points
1,013
Gender
Female
Title: Gay Men and Coming Out - PLEASE IDENTIFY AS A GAY WHITE MAN(~ 20 minutes) | PANDA
Requester: University of Kansas - Adrian Villicana [AQZ378OSIIXQY] (Contact)
TO: [Pay: 4.15] [Fair: 5.00] [Comm: 5.00] [Fast: 5.00] [Reviews: 13] [ToS: 0]
Description:
A survey to get opinions about some information relating to "coming out" norms
Time: 45 minutes
HITs Available: 1
Reward: $1.00
Qualifications: Total approved HITs is not less than 100; Exc: [-345521415-35375] has not been granted; HIT approval rate (%) is not less than 85; Location is one of: US;
HIT posted from Mturk Suite v1.11.7
 
Status
Not open for further replies.