javascript for pop-up box has...

User 127801 Photo


Registered User
55 posts

OK. I've solved it. This link <script src="colorbox/jquery.colorbox.js"></script> didn't get transferred to the head section but was left in the footer <div> on the test page. So the test page worked. But because I didn't realise that it had got left behind it didn't get transferred to the new pages. I have now put it on the agphotia page and it works.

I really think that is it now.

Thanks again.
User 187934 Photo


Senior Advisor
20,247 posts
Online Now

Great!:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 127801 Photo


Registered User
55 posts

I have been validating my pages for HTML 5 with W3 html validator and the only error that remains is one in the code I was given for creating colorbox pop up windows. Here is what W3 say:

Error Line 256, Column 112: Bad value youtube for attribute rel on element a: Not an absolute IRI. The string youtube is not a registered keyword or absolute URL.

…ss="youtube cboxElement" rel="youtube"><img src="video_icon.jpg" alt="video" c…

Syntax of absolute IRI:
An absolute URL. For example: http://example.org/hello, but not /hello. Spaces should be escaped as %20.
Syntax of link type valid for <a> and <area>:
A whitespace-separated list of link types listed as allowed on <a> and <area> in the HTML specification or listed as an allowed on <a> and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.

Here is a page from my website with the code on it.

http://www.uk.digiserve.com/mentor/minoan/agphotia.htm

Does anyone have any idea how to fix this error or should I try and register a new link type on the Microformats wiki, whatever that is? The code works OK but it would be nice to have all my pages validated as compliant with HTML 5.

Thanks.

User 187934 Photo


Senior Advisor
20,247 posts
Online Now

Your not declaring a HTML 5 doc type.:)
Markup Validation Service
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 127801 Photo


Registered User
55 posts

According to my Html 5 book the doc type declaration for HTML 5 is

<!DOCTYPE HTML>

which is what I have put at the top of all my html pages. So how do I declare an html 5 doc type then?
User 187934 Photo


Senior Advisor
20,247 posts
Online Now

Here's what I see.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 127801 Photo


Registered User
55 posts

I don't understand that. I have just loaded the page from the link above in FX and looked at the page source and it says <!DOCTYPE HTML>
User 187934 Photo


Senior Advisor
20,247 posts
Online Now

Now I see it.:)
Don't worry about it. It's not in HTML 5 validation yet.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 127801 Photo


Registered User
55 posts

OK, I won't. Thanks for taking a look.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.