New to coding, "noob" question!


#1

I recently purchased a website that is easy to edit with little to no coding skills. It is basically plug and play, much like editing a power point. My problem is that I am trying to link an advertisement from Amazon to my site, yet it will only accept HTML code. Here is the script:

<script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=9f67d968-b590-4b87-af11-69c9b2fdb465"></script>

Is this something that can be converted to HTML successfully, or am I just out of luck? Thanks in advance!


#2

<script></script> is HTML. Nothing to convert. Is this being inserted inline in the page?


#3

Hmm, I looked at the "app" that accepts code in the website editor. It only accepts HTTPS code, i'm guessing what I linked before is not? Sorry I know very little about this.


#4

This is what I suspected. Just add the protocol to the URL...

src="https://

#5

Ok, I switched my code to: script src="HTTPS://z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=2962025b-f554-4e42-b1aa-b9c243a78e7b"></script

Still no luck. I've looked through pages of support articles for the website i'm using, i'm starting to think it won't work,


#6

Try removing the leading //. I was able to access the link that way, but I'm not sure it will work with your hosting provider.


#7

That will never do. It's part of TCP-IP.


#8

Lowercase is the standard.

https://

#9

That portion of the URI is case-insensitive. He could HtTpS if he really wanted to and he would get to the same spot. The browser would set it to lowercase for convention sake, but that's about it. I don't remember the RFC for it but I do remember the case does not matter.

So far as the leaving off the // part, I am willing to bet Amazon servers will automatically route to an https connection once the request hits the server and really he's got nothing to lose by trying. Plus, as I mentioned, I was able to access the link by removing the leading //.


#10

Love your response; as much as I love being called out; really, I do, and live for it. By this means we get truly useful information to rise to the surface. It never just happens. The minute we get pedantic we lose, and so does the reader. Stuff like this you couldn't buy.


#11

I appreciate all your help, I tried several different ways.. including all lowercase first. The caps was a last attempt, hence why it was copy and pasted.


#12

Try e-mailing their tech support, if you haven't already.


#14

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.