Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

asked on

Please help debug asp.net / javascript compile bug

Go to:

http://test.huskyshoponline.com/

and you'll see an error about "missing )"

I need help fixing this please.
Avatar of radcaesar
radcaesar
Flag of India image

I didnt see any errors, But its bad design, Check ur page on IE6.

In Which browser and version you got error.

Send ur code.
Avatar of Tom Knowlton

ASKER

I don't have IE6.  Not sure I want to install it **just** for this.

Here is my master page markup:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="TCSSite.Master.cs" Inherits="Campus_Webstore.SiteWideMaster.TCSSiteUCONN" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/TopCart.ascx" TagName="TopCart" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/usertop.ascx" TagName="usertop" TagPrefix="uc2" %>
<%@ Register Src="~/UserControls/Catalogs.ascx" TagName="Catalogs" TagPrefix="uc3" %>
<%@ Register src="../../UserControls/HorizMenu.ascx" tagname="HorizMenu" tagprefix="uc5" %>
<%@ Register src="../../UserControls/AccordionNav.ascx" tagname="AccordionNav" tagprefix="uc4" %>
<%@ Register Src="~/UserControls/gentoplogin.ascx" TagName="Login1" TagPrefix="uc10" %>
<%@ Register Src="~/UserControls/HuskyFooter.ascx" TagName="HuskyFooter" TagPrefix="uc11" %>
<%@ Register assembly="Campus Webstore" namespace="Campus_Webstore" tagprefix="cc1" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head1" runat="server">



<title>UConn Co-op Husky Shop</title>
    <link href="~/Scripts/jquery.superbox.css" rel="stylesheet" type="text/css" />
    <link href="~/App_Themes/uconn/cws2.css" rel="stylesheet" type="text/css" />
    <link href="~/App_Themes/uconn/uconn.css" rel="stylesheet" type="text/css" />
    <link href="~/Scripts/allclients.css" rel="stylesheet" type="text/css" />
    <link href="../../App_Themes/uconn/addoredit_control.css" rel="stylesheet" type="text/css" />
    <link href="../../App_Themes/uconn/addoredit_popupstyling.css" rel="stylesheet" type="text/css" />
    <link href="../../App_Themes/uconn/shippingmethodstyling.css" rel="stylesheet" type="text/css" />
    <link href="../../App_Themes/uconn/orderdonestyling.css" rel="stylesheet" type="text/css" />
    <link href="../../App_Themes/uconn/securepaymentpagestyling.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
    <script src="../../Scripts/husky_top_menu.js" type="text/javascript"></script>
    <script src="../../EFUImageUploader/efu-js/easyflashuploader.js" type="text/javascript"></script>
    <script src="../../EFUImageUploader/efu-js/language.en.js" type="text/javascript"></script>
    <link rel="SHORTCUT ICON" href="../../favicon.ico" />

    <%-- <link rel="shortcut icon" href="../App_Themes/SkinFile/Images/favicon.ico" type="image/vnd.microsoft.icon" />--%>

<!-- ******** BEGIN LIKNO WEB ACCORDION CODE FOR likno_accordion_project ******** -->
<%--<script type="text/javascript">    
var lwacLinkedBy = "LiknoWebAccordion [1]", lwacName = "likno_accordion_project", lwacBN = "126";
</script>
<script charset="UTF-8" src="../../Scripts/likno_accordion_project.js" type="text/javascript"></script>--%>
<!-- ******** END LIKNO WEB ACCORDION CODE FOR likno_accordion_project ******** -->


<script type="text/javascript">
    function CheckForFrameChange()
    {
        var theframe = document.getElementById("ccinfo");

        strURL = theframe.src;
        //setup a pointer to the begining of the /photos/ part of the string
        var hasit = strURL.indexOf('ElementPSResults');
        if (hasit > 0)
        {
            var theHTML = document.getElementById("ccinfo").contentWindow.document.body.innerHTML;
            if (theHTML.indexOf('veryobviousSuccess') > 0)
            {
                alert("Suceess was found");
            }
        }
        else
        {
           // CheckForFrameChange();
        }
    }
</script>





</head>
<body id="bodytaguconn" runat="server" onload="CheckForFrameChange();">
    <form id="mainbodyformuconn" runat="server">
    <ajaxToolkit:ToolkitScriptManager runat="server" ID="toolKit" AllowCustomErrorsRedirect="true"
        EnablePartialRendering="true">


ETC.,  ETC.

Open in new window

I get the error in Mozilla Firefox 3.6x
Avatar of Deja Anbu
i couldnt see any errors in FF 4
I need someone who can help me debug this in FF 3.6x
There are many errors..can you state which you want to work on..we cant design the whole page for your.......

Here are a few things:

1) I understand your using FF..however a majority of users at businesses and schools use IE...and it should work there as well...
2) You header icon is off/your css is off...please both the master page and the .aspx page that relate to it..we cant help without more info..
3) if you are using HTTP links for CSS and icons..they should be tested independly in browsers to assure that image servers/CSS servers are working correclty...
This same javascript works fine in my dev environment.

As soon as I removed my attempt to reference the javascript function in my <body> tag "onload" event, the error went away.

No offense, but I need someone who can help walk me through the troubleshooting for this error, GlobalLevel.  I don't think that person is you for this particular question.  Same goes for the other experts who have helped so far.

I need very specific troubleshooting advice **just** for the problem at hand, and for the browser version in question.

I am going to ask for some intervention on this question.

Here is my MINI asp.net project where I am attempting to do something when the iframe finishes loading.

See attachment.
Default.zip
ASKER CERTIFIED SOLUTION
Avatar of Carlos Villegas
Carlos Villegas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Notice, I did take the code directly from your page:
http://test.huskyshoponline.com/
Not from the code that you posted here (this dont has window.scroll(0, 0); on it).
thx