[ILUG-BOM] [Fwd: FYJC admission only through IE (Democracy on question mark?)]

Mehul Ved mehul.n.ved at gmail.com
Sat Jun 27 23:27:44 IST 2009


On Sat, Jun 27, 2009 at 10:19 PM, Siddhesh
Poyarekar<siddhesh.poyarekar at gmail.com> wrote:
> You might want to see the javascript errors in Tools > "Error Console"
> in Firefox (don't know where in Opera but there should be a section).
> The offending function is probably OpenPopUpCollegeCode(). Look for it
> in the page (couldn't find it in the page you pasted) or in any
> included scripts.

Here's what I get

Event thread: click
Error:
name: TypeError
message: Statement on line 213: Type mismatch (usually non-object
value supplied where object required)

Event thread: click
Error:
name: Error
message: HIERARCHY_REQUEST_ERR
stacktrace:   Line 14 of linked script
http://fyjc.org.in/mumbai/Scripts/ContentBox.js: In function
ContentBox_SetBox
    function ContentBox_SetBox(contentBox){contentBox.style.zIndex=102;contentBox.scrollPosY=GetScrollPosition('Y');contentBox.scrollPosX=GetScrollPosition('X');if(ContentBox_IsIE)document.body.childNodes[0].appendChild(contentBox);contentBox.style.display='block';ContentBox_ResetBox(contentBox);}
  Line 14 of linked script
http://fyjc.org.in/mumbai/Scripts/ContentBox.js: In function
ContentBox_ShowWindow
    function ContentBox_ShowWindow(show,contentBox,colorSelected,showClose,closeEventHandler){if(show){ContentBox_SetBox(contentBox);ContentBox_SetOverLay(contentBox);if(colorSelected)ContentBox_SetOverlayColor(contentBox,colorSelected);contentBox.scrollEvent=setInterval(contentBox.id+".WindowScroll()",200);addEventHandler(window,'resize',contentBox.WindowResize);if(showClose){var
lnk=document.createElement('A');var
img=document.createElement('IMG');img.src=ContentBox_imageClose.src;if(Browser.isIe)img.style.width="15px";lnk.appendChild(img);lnk.href="javascript:void(0);";if(closeEventHandler){addEventHandler(lnk,'click',function(){var
e=new function(){this.closePopup=true;};closeEventHandler(e);if(e.closePopup)contentBox.Hide();});}else{addEventHandler(lnk,'click',contentBox.Hide);}contentBox.Head.appendChild(lnk);}}else{contentBox.style.display='none';contentBox.overlayOne.style.display='none';contentBox.overlayTwo.style.display='none';clearInterval(contentBox.scrollEvent);removeEventHandler(window,'resize',contentBox.WindowResize);}}
  Line 14 of linked script http://fyjc.org.in/mumbai/Scripts/ContentBox.js
    function(newColor,showClose,closeEventHandler){ContentBox_ShowWindow(true,contentBox,newColor,showClose,closeEventHandler);}
  Line 213 of linked script
http://fyjc.org.in/mumbai/PageScript/CollegePreference1.js: In
function OpenPopUpCollegeCode
                    ctl00_rightContainer_CBCollegePref.Show('black',true);
  Line 1 of function script
    OpenPopUpCollegeCode(event)
  ...


-- 

Let's do it. -- Gary Gilmore, to his firing squad  -
http://kingsly.net/tmp/fortune.php/1246117466


More information about the Linuxers mailing list