Last post Oct 03, 2011 09:43 PM by march11
Aug 26, 2011 12:55 AM|stardust1611|LINK
Hi everybody. I'm developing an mvc3 application (razor) with a lot of jquery plugins, and everything was working perfectly until two days ago. When I run the application in VS 2010, I get this error: Microsoft JScript runtime error: Unable to get value
of the property 'tagName': object is null or undefined.
The error pops up in the file itn.js which is apparently dynamically created during execution. This is the chunk of code from that file that induces the error:
I tried to comment out all of my jquery code and plugins, but the error is still there. Don't know what is going on. The error appears sometimes immediately when I run the application, but mostly after I refresh the page in IE9. Sometims I refresh the page,
and the error pops up immediately, but sometimes I need to press the refresh button several times until I get this error. Sometimes it apperas when I just browse to one of the other pages of the web site. It looks like there is no pattern to it. THe application
uses the _layout.cshtml page as the master page, and I thought that the error must be there, either in jquery code, or simply in html markup, but I tried everything, and can't find the error. Is this some kind of IE9 bug? Everything worked fine before. Could
it perhaps be that automatic windows update has installed a patch for IE9 that us causing this?
Aug 26, 2011 02:11 PM|stardust1611|LINK
Could it be that the Pager control (http://en.webdiyer.com/MvcPager/Demo/JqAjaxOrders) that I embedded in one of the views is causing this? The error appears on the home page, and other pages
too, and not only on that view.
Oct 03, 2011 09:43 PM|march11|LINK
I realize this post is a almost 2 months old, but just ran into a somewhat similar problem. i am trying to pass data from a popup page back to the parent page.
I believe that because my initial call to open the popup comes from a control that is burried down the heirarchy, specifially an Edit Link on a Gridview inside a Content PlaceHolder of a Master page inside another Master Page, that the java call window.opener
does not get the value of the source page that opened the popup.
My code works flawlessly in FireFox.
Give it a try.