.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Javascript "Undefined is null or not an object" error in IE :S

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :ASP.Net
I read around and tried everything to figure out the reason of the issue i'm getting, but i give up, the error i'm getting is only on IE and it's the "Undefined is null or not an object" error.This is it:Line: 29Char: 13Error: 'undefined' is null or not an objectCode: 0This is the script:<script type="text/javascript">    function checkV1() {        if (document.getElementById('CB1').checked)            ValidatorEnable(document.getElementById('CheckBoxListValidator1'), true);        else            ValidatorEnable(document.getElementById('CheckBoxListValidator1'), false);    }    function checkV2() {        if (document.getElementById('CB2').checked)            ValidatorEnable(document.getElementById('CheckBoxListValidator2'), true);        else            ValidatorEnable(document.getElementById('CheckBoxListValidator2'), false);    }THIS IS LINE 29---->    fun

View Complete Post

More Related Resource Links

javascript error


this line is giving error in javascript. Please correct it...

  $('#UnlockDetailsPanel').load('/confidentialdetails/UnlockDetailsUpdate.aspx #UnlockDetailsResult', { action: 'decline', request: <%= Request["request"] %> } );

error is _s.my.confidentialdetails is undefined



Object or Property is not supported in IE8 - javascript error



I am using following code line in my web app through external javascript file.






both these methods are working fine in IE6 but failing in IE8 with a error: "Object or Property is not supported".


any solution would be appreciated!



BDC + Document Information Panel Javascript Error


I hope someone here can shed some light on this one...


We have a document library configured with a few content types and document information panels for those items. Also on this list we have a BDC column setup to pull client names from MS CRM. This works fine on the list itself, however, in Word 2007 - the picker does not show up in the DIP, so we cannot easily select clients without knowing the name (first issue).

Secondly, if we enter in a client name, or partial, we recieve the following error:

"There was an error in the validation code" - with the following details:
Document Information Panel cannot complete this action, because of an error
in the form's code.
The following error occurred:

Object required
FileTongue Tiedcript.js

Any help is appreciated!

Javascript error on Rich Text Editor of CEWP

Hi all,

I have a problem that is really bugging and I wasn't able to find any workaround all day. I'll try to give as many details as possible:

I'm maintaining several site collections on a single server and this problem occurs only on one of the site collections. However it occurs on all subsites of this collection, it occurs on old pages and newly created pages, even on pages containing only one empty CEWP.

When I'm pressing the button for Rich Text Editor of CEWP I get the following error:

Message: Invalid argument.
Line: 5740
Char: 2
Code: 0
URI: http://www.dyrlaegeankenaevn.dk/_layouts/1030/HtmlEditor.js

I've tracked down the error with IE developer tools and I found that the error pops up in HtmlEditor.js at

function RTE2_GenerateLaunchArguments(parameterArray, webUrl, containerID)
    ............some code goes here......................
    ............some code goes here......................

I followed containerID down the stack and it comes from:

modalpopup and javascript error object required

Hi!   I Have this error when click on a button to open a popup box in my page: "object required"   Here is my code:   <%@ Page Language="VB" MasterPageFile="~/artm.master" AutoEventWireup="false" CodeFile="artm_principal.aspx.vb" Inherits="artm_principal" title="Principal" Debug="true" MaintainScrollPositionOnPostback="true"%><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AJT" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">                                      <AJT:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></AJT:ToolkitScriptManager>                                        <AJT:ModalPopupExtender ID="ModalPopupExtender1" runat="server"         &

Javascript Error in Internet Explorer but works fine in Firefox

Hi All,i was working on one of the project as it is working fine in Firefox but it is giving the javascript exception in internet explorer.Errror:  Error says  "s" is undefined in the s.currencyCode="USD" line but "s" is defined in the external javascript file  s_code.jsCan anyone suggest the solution for this issue:Please find my code where the error is displayed <script type="text/javascript" language="JavaScript" >var s_account="mnsdev"</script><script type="text/javascript" language="JavaScript" src="http://media.world.com/ads/usen/rpt/Omniture/s_code.js"></script><script type="text/javascript" language="JavaScript" >s.currencyCode="USD"s.charSet="ISO-8859-1"s.SEMct = s.getQueryParam('s_kwcid');s.SEMct = s.getValOnce(s.SEMct,'SEM_ct',0);s.clickPast(s.SEMct,'event9','event10');s.SEMvar=s.getQueryParam('s_kwcid');s.SEMdate=new Date;s.SEMdate.setTime(s.SEMdate.getTime()+60*86400000)if(s.SEMvar){s.c_w('SEM_ck','1',s.SEMdate)}s.SEMchk=s.c_r('SEM_ck');if(s.SEMchk&&s.events)s.SEMok='ok';if(s.SEMvar||s.SEMok) s.t()

Javascript error when attempting to switch page layouts in SharePoint 2010

I hope I put this in the correct forum. I am experiencing the following error when attempting to change the layout of an existing SharePoint 2010 page. But it does not seem to happen on all page types, just publishing pages. This error is happening on both the development server and both test servers. I have look in to the logs, since if it a javascript error there was nothing, which would be expected but I had to try. I have look at the cui.js file but was unable to spend enough time trying to figure out what exactly is going on in this file. Error being received ... Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Tue, 7 Sep 2010 21:10:54 UTC Message: Object required Line: 2 Char: 6422 Code: 0 URI: http://devintranet2010.myconexus.ca:85/_layouts/cui.js?rev=wvoVpqlQb30nGo4DjDk8Kg%3D%3D   If anyone has any ides or can point me in a direction that will allow me to productively continue my investigation, the information would be greatly appreciated. Regards Kyle

Ignore javascript error in modeless dialog

my problem is: 1. in Internet Option, i check Disable script debugging (Internet Explorer) and uncheck Display a notification about every script error 2. in my program, i open a Modeless dialog and have a script error in Modeless dialog my problem is Why i checked Disable script debugging (Internet Explorer) and Display a notification about every script error option, but error message still display? May i ignore javascript error in modeless dialog? thanks for your support!    

How to Suppress the JavaScript error tht pops up while printing the WebBrowser content??

Hi All, In my windows application I'm loading more than 100 urls in my web browser control one by one in a for loop and need to print them programatically after each URL gets loaded . But, I keep getting the Javascript error for so many URLs. I'm not sure why this error keep coming. Can anyone help me on how to suppress the javascript error through code and proceed. Thank you.

JavaScript Error while calling a drill through report in a report viewer from a asp.net web page.


I am calling a report in a web page which is getting displayed in report viewer. This report comes fine but when I click on it to see the drill through report for this parent report the drill through report does not get displayed and I see a JScript error instead.

The error I get is something like,

parent.document.GetElementByID(...).ClientController is not null or not an object

The aspx page that contains the report viewer inherits from a master page that contains an Update Panel.

I tested the report separately in SSRS and the drill through is working fine there.

Can some one please provide any inputs on this one?



error calling javascript in grid view template field


I am using a asp link button in grid template field which calls a pop up,i need to find the link button's control in cs page.

my link button code

<asp:LinkButton runat="server" ID="hlQName" Text='<%# Eval("QuestionnaireName")%>' OnClientClick

error calling javascript function in asp link button


I am using a asp link button in grid template field which calls a pop up,i need to find the link button's control in cs page.

my link button code

<asp:LinkButton runat="server" ID="hlQName" Text='<%# Eval("QuestionnaireName")%>' OnClientClick

Javascript error when creating XsltListViewWebPart programatically


Hi everyone,

I am receiving a Javascript error when attempting to use the context menu on any XsltListViewWebPart that is added to a page programatically.

The JS error is:


Message: 'listTemplate' is null or not an object
Line: 2
Char: 102472
Code: 0
URI: http://teamsite.domain.com/_layouts/1033/core.js?rev=c3ROI4x%2BKHVTMbn4JuFndQ%3D%3D

The code I am using to add the webpart to the page is:


private static void AddListViewWebPart(string siteCollUrl, string siteRelativeUrl, String pageUrl, string listName, string webPartTitle, String zoneId, int zoneIndex, string viewName, PartChromeType chromeType, string toolbarType)
  using (SPSite site = new SPSite(siteCollUrl))
   using (SPWeb web = site.AllWebs[siteRelativeUrl])
    SPLimitedWebPartManager lwpm = web.GetLimitedWebPartManager(pageUrl, PersonalizationScope.Shared);
    SPList list = web.Lists[listName];
    XsltListViewWebPart lvwp = new XsltListViewWebPart();
    lvwp.ListId = list.ID;
    lvwp.ViewGuid = list.Views[viewName].ID.ToString("B").ToUpper(CultureInfo.InvariantCulture);
    lvwp.AllowClose = false;
    lvwp.AllowConnect = false;
    lvwp.AllowEdit = false;
    lvwp.AllowHide = false;
    lvwp.AllowMinimize =

Attach File causing JavaScript error on Custom Form

Let me first apologize for this fairly large post. I've basically laid out the problem I'm having and then how I solved it initially then what the final problem.  The reason I put all of the steps is because I am open to any suggestions about handling this different.  If you want to skip to the actual problem, scroll down until you see the text "-----Go here if you want to see the actual problem-----"

Okay, so now the problem:
I have a lookup field called Room Name in a calendar that is looking data up from a list of rooms.  I have programmatically set the permissions of the room name list items to only allow members of different groups to see certain items.

When people go to the calendar and create a new event, they can only choose rooms that I set their group as having permission to choose.  This works great, but it has an unfortunate side effect.  When viewing an event on the calendar, if you are not of a memeber of the group that has read permissions for the item selected in Room Name, you can't see it.  This makes sense internally because of the way I set permissions.  For each item in the list of rooms, if you are a member of a group that should be able to read that item, I give you read permission, otherwise you have no permission for it.

Unfortunately, the viewing of the events is done by people other than those who create the

Javascript error



I am having a Hyperlink and on that click using javascript I am opening a popup window.

When I tested locally it was working fine.

When deployed it is giving error.

When I click the link, it shows javascript error : "A runtime error has occured.Do wish to debug"

When I clicked yes it didn't show anything much important or related to my changes.

I want to get the exact error.

Can you please tell me how to find the exact error.

Please tell me.

It's very urgent.


delete document button in ribbon gives javascript error: g is not a function



We have a default SharePoint 2010 installation. So an out of the box site template, out of the box document libraries/lists etc, out of the box theme (default one) etc.

When we check the checkbox next to a document in the shared documents library, the tab in the ribbon automatically switches to the document tab. In this tab there is a button "delete document". When I click that I get a confirmation request, I click OK, and then I get a little yellow box in the upper right corner that tells me SharePoint is deleting the document, and then nothing happens.

The document stays where it is, no refresh of the page as SharePoint should do...

I have a javascript error, and in FireFox it tells me "g is not a function" on line 2 of the file inplview.js?rev=AohvE9XEf%2FI78tuaw1TGAA
Line 2 contains like 100 javascript functions on the same line, so it's impossible to find out which function or command throws the error.
This is not a file created by me, so I guess it comes with SharePoint and that I should not touch it.

So what do I do now?
I have another server that we use for SharePoint testing, and there the button works as it should, so it's not SharePoint either...
Problem is that we use this server to give basic SharePoint trainings to our employees, so it's not a very good start

Javascript Error using UpdatePanel/TabContainer


Hi all,

I am developing a website with AJAX technologies: UpdatePanel/TabContainer, within a SmartPart in MOSS 2007 with ASP.NET/C#. The problem i am getting is:

Detalles de error de página webAgente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)Fecha: Thu, 15 Apr 2010 09:38:39 UTCMensaje: Sys.InvalidOperationException: Type AjaxControlToolkit.BoxSide has already been registered.Línea: 2417Carácter: 41Código: 0URI: http://SERVER/ScriptResource.axd?d=uzsIWp-LVCpswy-cYxY6F0kaYLhLubKRZyqE7KF9iAu_g2a_jBCyn5b-toZkPJyDe_WK1FaDUH1_u80tuXtpvCHjXtXNROZdha41ueeSeDk1&t=633524895900156250Mensaje: Sys.ScriptLoadFailedException: The script '/ScriptResource.axd?d=DzHfp8F4M5iTOnENR9JnReXLIfaXEnnk8vO2d2Ogb_mDtPMz_Ao50HYTPQ9MFbyiKGHEAwJ9M3heDHI3Tuc_oObIa_HdyU2EBVk_NuOzq5zrgSzS2HqD5OEZnEeR8k_30&t=634021768372647500' failed to load. Check for: Inaccessible path. Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings. Missing call to Sys.Application.notifyScript
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend