PDA

View Full Version : shtml error in IE but works in Firefox.


jedimastermopar
05-28-2008, 05:21 PM
Ok Having an issues with this line. It works fine in Firefox, but in IE it pops up an error,
Line 157
Char 328
Error: Object does'nt support this property or method.

Any ideas? BTW this is line 157

function Do(){$wnd.__dispatchCapturedMouseEvent = function(Eo){if($wnd.__dispatchCapturedEvent(Eo)) {var Fo=$wnd.__captureElem;if(Fo && Fo.__listener) {ki(Eo,Fo,Fo.__listener);Eo.stopPropagation();}}};$wnd.__dispatchCapturedEvent = function(ap){if(!ri(ap)) {ap.stopPropagation();ap.preventDefault();return false;}return true;};$wnd.addEventListener('mouseout',function(bp) {var cp=$wnd.__captureElem;if(cp) {if(!bp.relatedTarget) {$wnd.__captureElem = null;if(cp.__listener) {var dp=$doc.createEvent('UIEvent');dp.initUIEvent('losecapture',false,false,$wnd,0);ki(dp,cp,cp.__listen er);}}}},true);$wnd.addEventListener('click',$wnd.__dispatchCapturedMouseEvent,true);$wnd.addEventLi stener('dblclick',$wnd.__dispatchCapturedMouseEvent,true);$wnd.addEventListener('mousedown',$wnd.__d ispatchCapturedMouseEvent,true);$wnd.addEventListener('mouseup',$wnd.__dispatchCapturedMouseEvent,tr ue);$wnd.addEventListener('mousemove',$wnd.__dispatchCapturedMouseEvent,true);$wnd.addEventListener( 'keydown',$wnd.__dispatchCapturedEvent,true);$wnd.addEventListener('keyup',$wnd.__dispatchCapturedEv ent,true);$wnd.addEventListener('keypress',$wnd.__dispatchCapturedEvent,true);$wnd.__dispatchEvent = function(ep){var fp,gp=this;while(gp && !(fp = gp.__listener)) gp = gp.parentNode;if(gp && gp.nodeType != 1) gp = null;if(fp) ki(ep,gp,fp);};$wnd.__captureElem = null;}

jedimastermopar
05-29-2008, 04:42 PM
No Ideas? Did I post this in the wrong forum?

whizard
05-29-2008, 04:44 PM
This appears to be a javascript (?) problem...

Dan

jedimastermopar
05-30-2008, 01:20 PM
Not too sure, I kind of inheirited this website, and my web dev experience is limited to basic HTML and PHP, I'll post it in the java forum. Thanks.