Jump to content
Sign in to follow this  
Jonnym53

Linking to a functioning .JS file

Recommended Posts

Hi all. I'm still trying to make sense of a problem I have with a web page which does not function as it should. It is a squeeze page and should be linked to an auto responder.The auto responder package is not held on the same server as the squeeze page but I uploaded some files into the same folder to give the 'look' of the page, which was successful and, I thought, the function.To illustrate.This is the page in question.http://www.canwork-fromhome.com/Cash-inIn the header there is a line that mentions source= function.js, or something similar. So, I copied to the holding folder the function.js file, thinking it would work but it does not. I believe there must be more going on that I thought.Now, if you visit;http://www.yourfuture2012.co.uk/future/register.php?list_id=3this is the original page which I copied over. This one is held on the same server as the whole auto responder package, and it works as it should.So, my problem is, do I try and find out if the function.js file is actually linked to more files in the auto responder package, copy them over to my holding folder and see if that works or could there be some way to link the page in the 1st url above with the second so I have the look and the functionality that I am striving to achieve.You'll have to go to each page and use so you can see what I mean.Hope someone can make sense of this.ThanksJ.M.

Share this post


Link to post
Share on other sites

You left the "e" off "future" in the URL of the script. I discovered this in Firefox by viewing your source and clicking the script's URL, which Firefox renders as a link. (A very handy feature.) What appeared was an error message. So I figured the URL was incorrect.

Share this post


Link to post
Share on other sites

Hi. If you just click on the links in the above message you get to the pages I am trying to explain about. The url was correct when I pasted it in, you don't think I wrote it in long hand?I've just tried by clicking on both lonks and I can get to the pages just fine.Hope you can too.RegardsJ.M.

Share this post


Link to post
Share on other sites

I did not say "page." I said "script." Your page loads just fine. The script you're trying to link to doesn't load because the URL is malformed. Look at this line, which I found in your document:

<script src=http://www.yourfuture2012.co.uk/futur/lib/functions.js javascript></script>

The "e" is missing from /future/. The original code did not use the complete path because the script is on their own site. So you may not have noticed that when you typed or pasted the missing parts of the path that the "e" did not get carried over. It's a common mistake. You should also notice the word javascript just sitting there doing nothing. The original has a language attribute that seems not to have been pasted correctly, but a language attribute is no longer good HTML, so let's get rid of it anyway. It's not part of the problem, but we want to be virtuous. :dirol: Your tag should look like this:

<script src=http://www.yourfuture2012.co.uk/future/lib/functions.js type='text/javascript'></script>

Edited by Deirdre's Dad

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...