Need
DNN Support
?
DeskPal.com
Learn DNN / DotNetNuke
Login
Subscribe to DNNCreative
Home
Subscribe
Training & Tutorials
Tutorials for Beginners
Tutorials for Administrators
Tutorials for Core Modules
Tutorials for Advanced Users
How to Build a Website in DotNetNuke
Skinning Tutorials
Module Development
Third Party Modules
Forum
Search
Search
Home
Subscribe
+
Training & Tutorials
Tutorials for Beginners
Tutorials for Administrators
Tutorials for Core Modules
Tutorials for Advanced Users
How to Build a Website in DotNetNuke
Skinning Tutorials
Module Development
Third Party Modules
Forum
You need to
Register
for free and
Login
to post a message in the forum.
Forum
Forums
Search Forum
Search
Advanced Search
Topics
Posts
Unanswered
Active Topics
Forums
>
DotNetNuke®
>
DotNetNuke® Questions
HTML5 Boilerplate Tutorial - A Few Issues Configuring
Last Post 08/20/2013 2:42 PM by
Joseph Craig
. 7 Replies.
Sort:
Oldest First
Most Recent First
Check this box to subscribe to this topic.
Prev
Next
You are not authorized to post a reply.
Author
Messages
Alex Ritter
Nuke Pro
Posts:86
08/14/2013 2:54 PM
Hi Joe and Andy -
I've created my site's new skin by following the html5 boilerplate video tutorial listed on DnnCreative.
I have tried my best to set up the forty fingers style helper and modernizer scripts verbatim so that they will give me the html5 support I need. However, it would seem something is a muk. I am having the "no-js" class added to browsers that are definitely running js. It would also seem that the fortyfigers style helper is either not correctly identifying the browser loading the page, or is not running properly.
You can view this issue in action at www.yandasmusic.com
I will lay out my skin object configurations and js skin calls below. Maybe you will spot something that I can not see?
Here are the skin objects for fortyfingers:
< %@ Register TagPrefix="fortyfingers" TagName="STYLEHELPER" Src="~/DesktopModules/40Fingers/SkinObjects/StyleHelper/StyleHelper.ascx" %>
<fortyfingers:STYLEHELPER ID="SHIE6" IfBrowser="IE=6" AddHtmlAttribute="class,no-js lt-ie9 lt-ie8 lt-ie7" runat="server" />
< fortyfingers:STYLEHELPER ID="SHIE7" IfBrowser="IE=7" AddHtmlAttribute="class,no-js lt-ie9 lt-ie8" runat="server" />
< fortyfingers:STYLEHELPER ID="SHIE8" IfBrowser="IE=8" AddHtmlAttribute="class,no-js lt-ie9" runat="server" />
< fortyfingers:STYLEHELPER ID="SHGTIE8" IfBrowser="IE>8" AddHtmlAttribute="class,no-js" runat="server" />
< fortyfingers:STYLEHELPER ID="SHNOTIE" IfBrowser="!IE" AddHtmlAttribute="class,no-js" runat="server" />
< fortyfingers:STYLEHELPER ID="INCLUDE" AddToHead='
' AddCssFile="css/normalize.min.css" runat="server" />
Here is the skin call for the modernizer js:
< script type="text/javascript" src="<%=skinpath%>js/vendor/modernizr-2.6.1-respond-1.1.0.min.js"></script>
I hope this information helps. There is defiantly some crazy stuff going on.
Thanks so much!
Alex
Alex Ritter
Nuke Pro
Posts:86
08/15/2013 11:30 AM
Hey guys,
I've spent the morning trying to track down the reason for the modernizer script to not run properly. I've found a few possible causes, although I am still getting the "no-js" class on all browsers.
1. Calling the modernizer script in the document head:
After re-downloading the modernizer package to update to the latest version, I noticed that the call to load the modernizer javascript:
< script type="text/javascript" src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js">< /script>
was actually placed in the html document's head section. In the tutorial skin, it is placed in the body.
(On a side note, check out line 14 in default.ascx in the tutorial project files. You have an extra quotation mark which would cause that skin to also not load the modernizer script. This was the reason initially for mine not loading >.< )
2. Linking the normalize.min.css file:
In the coding of the tutorial files, line 13, you use the code "AddCssFile="css/normalize.min.css".
For some reason, IE 10 Developer Tools was throwing an error on this call saying "Unexpected end tag". I'm not sure if it was actually loading the file or not.
3. main.js is an empty file with no code:
Whats up with that?
I correct the first two issues by substituting the following fortyfinger calls:
< fortyfingers:STYLEHELPER ID="INCLUDE" AddToHead='< meta name="viewport" content="width=device-width">' runat="server" />
< fortyfingers:STYLEHELPER ID="INCLUDE2" AddToHead='< script type="text/javascript" src="http://www.yandasmusic.com/Portals/_default/Skins/Yandas-Response/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js">< /script>' runat="server" />
< fortyfingers:STYLEHELPER ID="INCLUDE3" AddToHead='< link rel="stylesheet" type="text/css" href="http://www.yandasmusic.com/Portals/_default/Skins/Yandas-Response/css/normalize.min.css" />' runat="server" />
You can see this setup live at: www.yandasmusic.com
However, through all my troubleshooting, all broswers are still getting the class of "no-js" added to them... What is left to try? I would REALLY like to get this boilerplate rocking!
Do you still have a demo site up that is working with the modernizer correctly loading? Maybe I can compare notes, and find the issue?
Thanks! Alex
Alex Ritter
Nuke Pro
Posts:86
08/15/2013 11:51 AM
Update:
The script is loading the "lt-ie9" to the html tag on IE8. Does this mean that it is working, just not completely?
Alex
Edit:
I forgot that the "lt-ie9" tag is added by the fortyfingers style helper, and does not necessairly indicate that the modernizer is working, as there is still a "no-js" class.
Also - it would seem that the modernizer and jquery are both throwing sytax errors, and breaking the page in IE8. Any idea what it's only happening in IE8? Modernizer issues again?
I'm assuming that the modernizer script is the script that translated the CSS media queries for IE8 and below. I notice on my homepage in IE8 that the media queries were loaded even with the errors, but any other page does not load the media queries at all.
Alex Ritter
Nuke Pro
Posts:86
08/15/2013 1:45 PM
Another Update:
I found the demo page for the responsive html5 boilerplate:
http://www.initializr.com/try
After inspecting the page, I found that my html tag still had the "no-js" class on it. Why is this?
Joseph Craig
DNN MVP
Posts:11667
08/15/2013 2:41 PM
I looked at this page with several different browsers, and did not see no-js with any of them.
Is it possible that you are using a browser that has js turned off?
Joe Craig,
Patapsco Research Group
Complete DNN Support
Alex Ritter
Nuke Pro
Posts:86
08/15/2013 3:04 PM
Hey Joe - Thanks for your reply.
I have opened both yandasmusic.com and initializr.com/try on Firefox, IE, Chrome, and Opera. All of them are showing the no-js class added to the html element. Strange, to be sure.
From your inspection, does it appear to you like the modernizer script is loading correctly? On my end everything looks good to go until I try opening the website in IE8. Then I get nailed with a number of javascript bugs and page load errors.
Also - Does the modernizer script include the javascript to interpret css media queries for IE8? I notice when I open my homepage up in IE8 that the media queries load before the JS starts to break the page.
Alex Ritter
Nuke Pro
Posts:86
08/16/2013 8:16 AM
Though some help at stack overflow, I was able to get the modernizer working on my site. However, the blips referring to the modernizer javascript that I mentioned in my second response to this thread should be addressed in the tutorial files Joe. Save guys like me a few headaches!
Alex
Joseph Craig
DNN MVP
Posts:11667
08/20/2013 2:42 PM
Forwarding to Andy ...
Joe Craig,
Patapsco Research Group
Complete DNN Support
You are not authorized to post a reply.
Special Bonuses
--Subscriber Bonuses
--Readers Offers
Users Lounge
--Announcements
--DNN Creative Articles
--Everything Else
--Feedback, Suggestions and More
--Membership
--Site Review Please!
--Testimonials
--Podcasts
DotNetNuke®
--DotNetNuke® Questions
--Modules
--Modules - What's needed?
--Quick Tips
Hosting
--DotNetNuke® Hosting Providers
Skinning Toolkit
--Skinning Toolkit
UK DotNetNuke User Group
Forums
>
DotNetNuke®
>
DotNetNuke® Questions
Latest Forum Posts
Can you Run Xcode in Linux?
by Aman Singh
Can you Run Xcode in Linux?
Can you Run Xcode in Linux?
by Aman Singh
Can you Run Xcode in Linux?
Billed for subscription that was canceled
by Ryan
I was just billed for a subscription that was canc eled / inactivetive how do I get a refund for th
Meta Title and Meta Description are not showing properly
by DNN User
Hi, On my site the meta title and meta descriptions are not showing properly. It's showing the m
Search is not functioning properly
by DNN User
Site: https://www.prv-engineering.co.uk/search If I search any item only the 1st option under sea
Search is not functioning properly
by DNN User
Site: https://www.prv-engineering.co.uk/search If I search any item only the 1st option under sea
DNN Platform import site optio
by Melanie Weaver
Is it possible to import site template in DNN Platform 8.0? We have internal Evoq Content 8.1 tha
Events Module for DNN V5?
by Tugboat
Would anyone have a download link for the version 5.0.3 Events Module? Thanks!
"Ghost" TabID Number?
by Tugboat
Hi! I have a portal instance with multiple child portals and on one of the child portals, there i
RE: DNN Load Testing
by ayman sharkawy
Hi. Have you already implemented a site using the DNN . And how the performance of the site and its
Publish All Pages
by NSUOK
I'm using DNN Evoq Content Basic 8.2.0. When I make the HTML Pro module display on all pages, I h
Simpler profile needed in 9.2.2
by Donald
We are upgrading a DNN 4.8.4 site to DNN 9.2.2. On 4.8.4, the top bar shows the user’s name. If yo
How to link from dnnmodal popup to web site page?
by Donald
Hello all. I am using a dnnmodal.show popup. The popup works correctly, showing the content that I
RE: Document Collaboration
by Nick Davern
That feature would be super beneficial for our needs as well! Does anyone have an update as to if th
RE: DNN 9.2, how to set default theme?
by Andy Stephenson DNN Creative
you do that under "Manage/Themes". Note the highlight blue border around the default container and d
DNN 9.2, how to set default theme?
by Donald
Please disregard, found Manage Themes I cannot find how to set a default portal theme in DNN 9.2
RE: Looking for DataSprings Dynamic Forms
by Andy Stephenson DNN Creative
Your best chance would be to contact Chad Nash @ http://www.datasprings.com/
Looking for DataSprings Dynamic Forms
by Jakir HM
Looking for DataSprings Dynamic Forms 3.4 for DNN 4.x 5.x for my site (https://themasters2018s.com/)
RE: Help with Cycle Image Carousel not displaying images
by peter
I had the same problem with the Will Strohl Content Slider after upgrading to DNN 9.1 The above an
RE: Object reference not set to an instance of an object
by Andy Stephenson DNN Creative
Check this one might be useful: http://www.dnnsoftware.com/answers/im-tryin-to-move-my-site-to-pr
Used
By
Testimonials