MrAgile
asked on
Invalid argument in IE 7
Hi there,
I'm getting an error when I dynamically write a div with a javascript function call inside it. The error is only happening with I, FF and Safari seem to be working correctly. If you got to the page in IE and then refresh it or try to close the window the error dialog appears.
http://wellcom.net.au/mynightmare.aspx
What am I missing?
Sean
I'm getting an error when I dynamically write a div with a javascript function call inside it. The error is only happening with I, FF and Safari seem to be working correctly. If you got to the page in IE and then refresh it or try to close the window the error dialog appears.
http://wellcom.net.au/mynightmare.aspx
What am I missing?
Sean
------ c# code
divThumbs.InnerHtml = String.Concat("<a href=\"#\" onclick=\"mainScreen.LoadServerControlHtml('Management',{'pageID':3,'data':" + xDocList[i].Attributes["id"].InnerText + "},'methodHandlers.BeginRecieve');\" onmouseover=\"setClassName('ctl00_mainContent_" + _docListCnt + "','managmentThumbGlow');\" onmouseout=\"setClassName('ctl00_mainContent_" + _docListCnt + "','managmentThumb');\"><img src=\"images/", xDocList[i].ChildNodes[2].InnerText, "\" border=\"0\" /><a/>");
-------- actual generated code
<!-- start little thumbs //-->
<div class="plcHolder"><div id="ctl00_mainContent_1" class="managmentThumb"><a href="#" onclick="mainScreen.LoadServerControlHtml('Management',{'pageID':3,'data':5},'methodHandlers.BeginRecieve');" onmouseover="setClassName('ctl00_mainContent_1','managmentThumbGlow');" onmouseout="setClassName('ctl00_mainContent_1','managmentThumb');"><img src="images/ourpeople/Grant-glover.jpg" border="0" /><a/></div><div class="namesText">Wayne Sidwell</div><div class="titleText">Executive Chairman & Chief Executive Officer</div></div><div class="plcHolder"><div id="ctl00_mainContent_2" class="managmentThumb"><a href="#" onclick="mainScreen.LoadServerControlHtml('Management',{'pageID':3,'data':6},'methodHandlers.BeginRecieve');" onmouseover="setClassName('ctl00_mainContent_2','managmentThumbGlow');" onmouseout="setClassName('ctl00_mainContent_2','managmentThumb');"><img src="images/ourpeople/Grant-glover.jpg" border="0" /><a/></div><div class="namesText">Steve Rees</div><div class="titleText">Chief Operating Officer</div></div><div class="plcHolder"><div id="ctl00_mainContent_3" class="managmentThumb"><a href="#" onclick="mainScreen.LoadServerControlHtml('Management',{'pageID':3,'data':7},'methodHandlers.BeginRecieve');" onmouseover="setClassName('ctl00_mainContent_3','managmentThumbGlow');" onmouseout="setClassName('ctl00_mainContent_3','managmentThumb');"><img src="images/ourpeople/Grant-glover.jpg" border="0" /><a/></div><div class="namesText">Kerry Smith</div><div class="titleText">Non Executive Director</div></div>
<!-- end little thumbs //-->
ASKER
There is a modal dialog that can be opened by clicking on the image. The funny thing is I don't get an error in FF or safari only IE. The error also seems to happen when I refresh the page without doing anything. Am i missing an escape character or something?
ASKER
Anyone ? Can anyone help with this issue?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi ruscomp,
Why does that not surprise me! I thought it was weird because I was using firebug and that showed no errors at all.
May be I will investigate this error at a later date.
Sean
Why does that not surprise me! I thought it was weird because I was using firebug and that showed no errors at all.
May be I will investigate this error at a later date.
Sean
ASKER
I will turn the script debugger off and it will all be fixed.
I do use firebug and it does shows errors
Sys.InvalidOperationExcept ion: Handler was not added through the Sys.UI.DomEvent.addHandler method.
http://www.callingbanners.com/manager/ScriptResource.axd?d=IOW225tBtJG86MR6ndo4oS_OlCVALkucB3lG5EdVD7sUhRPdXzozhR1gUPNqf473L9hg_yIUDA06q9Xx7fA9IMpplQ6rGT3uzLunQUS1CH81&t=633363104932656250
Line 7069
Does anyone have any idea regarding the solution ?
Sys.InvalidOperationExcept
http://www.callingbanners.com/manager/ScriptResource.axd?d=IOW225tBtJG86MR6ndo4oS_OlCVALkucB3lG5EdVD7sUhRPdXzozhR1gUPNqf473L9hg_yIUDA06q9Xx7fA9IMpplQ6rGT3uzLunQUS1CH81&t=633363104932656250
Line 7069
Does anyone have any idea regarding the solution ?
Is there any AJAX that you have that fires on close?
Maybe someone can interpret better than I can...
invalidargument.JPG