Solved

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

Posted on 2011-09-20
1
702 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

735 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