Solved

Trying to user modernizr and yepnope on webpage, comes back with either is undefined

Posted on 2011-09-20
1
697 Views
Last Modified: 2012-05-12
.  I'm trying to incorporate modernizr and yepnope on my web page.   I have a very simple asp.net page to test with.
I downloaded development version of modernizr and yepnope.  

Here is the header of the aspx mark up:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderDetail.aspx.cs" Inherits="ECSMT.OrderDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Order Detail</title>
    <link href="~/Styles/MarlinWeb.css" rel="stylesheet" type="text/css" />
    <script src="~/Scripts/yepnope.1.0.2-min.js" type="text/javascript"></script>
    <script src="~/Scripts/modernizr-2.0.6.js" type="text/javascript"> </script>
    <script type="text/javascript">
        yepnope({
            test: Modernizr.borderradius || Modernizer.boxshadow,
            nope: '../js/PIE.js',
            complete: function () 
            {
                $('article').each(function () 
                {
                    PIE.attach(this);
                });
            }
        });
    </script>
</head>

Open in new window


When it gets to the point of processing the yepnope it gives me the error "Microsoft JScript runtime error: 'yepnope' is undefined" I have no idea what I am doing wrong here.
0
Comment
Question by:vossjck
1 Comment
 
LVL 27

Accepted Solution

by:
Sammy earned 500 total points
ID: 36578300
use firebug and firefox to see if the yepnope is even loaded to the client.
any issues with javascripts regardless of the library used should always be tested in firebug and firefox. other browsers and tools are useless when it comes to debuging & testing javascript
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now