Solved

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

Posted on 2011-09-20
1
701 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project

856 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