/    Sign up×
Community /Pin to ProfileBookmark

Script not working on certain pages

My website is [url]www.usatroopcare.com.[/url] I have a refer-a-friend script that I installed, and it was working fine. Now, it is working on some pages and not others. For instance, on the menu at the top, the “tell a friend” link is not working on the home or about pages, but it IS working on the ‘contact us’ page. I tried copying the Javascript code in the <head> tags and the code from the link directly from the “contact us” page, seeing as that one is functional, and pasting into the pages that are not, but it still is not working. Any ideas? Thank you to anyone who can help.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@scragarJan 07.2005 — erm that's because it's not a valid link, remove the second ocurance of the script(you have the same code in twice which is ruining your functions) and drop the spaces from the links and your sorted("<a href = #" ==> "<a href=#").
Copy linkTweet thisAlerts:
@mickapooauthorJan 07.2005 — I tried both of those things, and it still is working fine on the "contact us" page, but not working on the "about us" page and a few others. I removed the duplicate code and the spaces, as you suggested.
Copy linkTweet thisAlerts:
@scragarJan 07.2005 — works fine for me although it's a little delayed...
Copy linkTweet thisAlerts:
@mickapooauthorJan 07.2005 — Are you sure the "tell a friend" link is working from the "about us" page?
Copy linkTweet thisAlerts:
@scragarJan 07.2005 — it opens a new window(which is what I asume the window.open script was for) with the right page in it(http://www.usatroopcare.com/cgi-bin/applyrefer.cgi?job=refer&URL=http://www.usatroopcare.com). you could make this faster just by having a normal link with a target=_blank property and strip the script but then the location in the top would not be dynamicly filled.
×

Success!

Help @mickapoo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...