/    Sign up×
Community /Pin to ProfileBookmark

Moved my website to new hosting co.

How my external JavaScript does not run. can you help? It Is the same JavaScript file and index file as before. Best I can tell the path to the external JavaScript is the same

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@tracknutMar 20.2020 — Give us a link to the site please, or all we can do is guess. But my guess is that the path to the external JavaScript is not correct :)
Copy linkTweet thisAlerts:
@JimMegauthorMar 20.2020 — awhisperofthunder.com look at line 33 and 174

// JavaScript Document

$(window).load(function() {

$('#my-email').html(function(){

var e = "talk";

var e2 = "tous";

var a = "@";

var d = "awhis";

var d2 = "perofth";

var d3 = "under";

var c = ".c";

var c2 = "om"

var s = "?subject="

var s2 = "Questions To A Whisper Of Thunder"

var b = "&body="

var b2 = "We have inserted the subject line for you because we are sorting our incoming email by the subject line. Don't change the subject line. You can delete this message before writing your question(s)."

var linktext = "We'd love to hear from you. Send us an email.";

var h = 'mailto:' + e + e2 + a + d + d2 + d3 + c + c2 + s + s2 + b + b2;

$(this).parent('a').attr('href', h);

return linktext;

});

});

Copy linkTweet thisAlerts:
@tracknutMar 20.2020 — The file at http://awhisperofthunder.com/js/2awot.js is not what you've listed above. It looks like this:
// JavaScript Document
$(window).load(function() {
$('#my-email').html(function(){
var e = "jim";
var e2 = "walt";
var e3 = "er757
var a = "@";
var d = "gm";
var d2 = "ail";
var c = ".c";
var c2 = "om"
var s = "?subject="
var s2 = "Questions To A Whisper Of Thunder"
var b = "$body="
var b2 = "We have inserted the subject line for you because we are sorting our incoming email by the subject line. Don't change the subject line. You can delete this message before writing your question(s)."
var linktext = "We'd love to hear from you. Send us an email.";
var h = 'mailto:' + e + e2 + e3 + a + d + d2 + c + c2 + s + s2 + b + b2;
$(this).parent('a').attr('href', h);
return linktext;
});
});

<i> </i>}
<i> </i>

And line 6 with the missing closing quote and semi-colon is causing it to terminate.
Copy linkTweet thisAlerts:
@JimMegauthorMar 20.2020 — I fixed line 6. that did not fix it. it may be in index.html file 33 or 174 lines. do you need a copy of the index file?
Copy linkTweet thisAlerts:
@tracknutMar 20.2020 — If you fixed this line, it has not been updated on the server that I'm looking at. Click on the link to 2awot.js that I put in the post above - does it show you the code you expect?
Copy linkTweet thisAlerts:
@JimMegauthorMar 20.2020 — I keep getting this mess "please enable javascript to view"

I'm sending more info I hope will help use

Thanks for your time

here is the javascript I have now

// JavaScript Document

$(window).load(function() {

$('#my-email').html(function(){

var e = "jim";

var e2 = "walt";

var e3 = "er757";

var a = "@";

var d = "gm";

var d2 = "ail";

var c = ".c";

var c2 = "om";

var s = "?subject="

var s2 = "Questions To A Whisper Of Thunder"

var b = "$body="

var b2 = "We have inserted the subject line for you because we are sorting our incoming email by the subject line. Don't change the subject line. You can delete this message before writing your question(s)."

var linktext = "We'd love to hear from you. Send us an email.";

var h = 'mailto:' + e + e2 + e3 + a + d + d2 + c + c2 + s + s2 + b + b2;

$(this).parent('a').attr('href', h);

return linktext;

});

});

}

here is the call to load the javascript from line 33 of the index file

<script type="text/javascript" src="http://awhisperofthunder.com/js/2awot.js"></script>

here is the call to run the javascript from line 174 of the index file

<a href="#"><span id="my-email">please enable javascript to view</span></a>
Copy linkTweet thisAlerts:
@JimMegauthorMar 21.2020 — I got it fixed. :)

Thanks for your help and time JimMeg
Copy linkTweet thisAlerts:
@JMRKERMar 25.2020 — @JimMeg#1616495 So what was wrong and what got "fixed"?

You asked a lot of questions but you didn't give a lot of solutions that worked to your satisfaction.
×

Success!

Help @JimMeg 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 4.25,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...