Solved

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

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

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…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

732 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