Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 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

13 Experts available now in Live!

Get 1:1 Help Now