07/22 - Forrest Gump Friday!

Status
Not open for further replies.

Kerek

Red Cat-Bear
Contributor
Crowd Pleaser
Joined
Jan 12, 2016
Messages
65,296
Reaction score
145,838
Points
2,088
Gender
Male
hi guys. does anyone know how I can use javascript to fire a javascript event/function on a different webpage? in situations where onclick can't be used. and the url doesn't change on firing the event.

I'm posting a message to this webpage which puts the location in the search box.
http://findanadvisor.napfa.org/Home.aspx

this doesn't work to click the search button
Code:
document.getElementById("addressSearch").getElementsByTagName("a")[0].click();
I have googled all the things
Seems to work fine, but I'd need to see what you're doing in context probably. Does it populate the location into the field properly? That line you have there, inside the message receiver function, after the input is filled in, should work to click the button.
 

Squatty

.
Contributor
Crowd Pleaser
HIT Poster
Joined
Mar 17, 2016
Messages
21,286
Reaction score
44,989
Points
2,538
Age
36
Gender
Female
Today has been full of surveys. I need some batches
 

Tini

I'm an angel
Contributor
Joined
Jan 23, 2016
Messages
112
Reaction score
479
Points
388
Gender
Female
This fix may take a bit. I will update the "ad" for the HIT when the problem is resolved. You may just want to check back tomorrow! (though it will probably be resolved in the next few hours).
Received your email, Thank you for helping us out you've been great.
 

bxpretzel

Ari Gold
Contributor
HIT Poster
Joined
Jan 14, 2016
Messages
11,163
Reaction score
24,621
Points
1,438
Location
Appalachia
  • Like
Reactions: seventhaxis

Squatty

.
Contributor
Crowd Pleaser
HIT Poster
Joined
Mar 17, 2016
Messages
21,286
Reaction score
44,989
Points
2,538
Age
36
Gender
Female
Status
Not open for further replies.