logo       

[HtmlUnit] [ htmlunit-Bugs-1461802 ] cannot read property srcElement: msg#00082

java.htmlunit.devel

Subject: [HtmlUnit] [ htmlunit-Bugs-1461802 ] cannot read property srcElement

Bugs item #1461802, was opened at 2006-03-31 03:38
Message generated for change (Comment added) made by mguillem
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1461802&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: hiren (hiren21)
>Assigned to: Marc Guillemot (mguillem)
Summary: cannot read property srcElement

Initial Comment:
Hello,

Am trying to run a simple test which loads a page that
calls a third party javascript. It throws the
following exception trying to execute the js.

Error:

[java] EcmaError: lineNumber=[234] column=[0]
lineSource=[null] name=[TypeError] sourceName=
[http://www.kodakgallery.com/javaScript/third_party/cor
emetrics/v40/eluminate.js?_version=1499167888] message=
[TypeError: Cannot read property "srcElement" from
null (http://www.stagea.kodakgallery.com/javaScript/thi
rd_party/coremetrics/v40/eluminate.js?
_version=1499167888#234)]


js:
if(cF(4)){e=window.event.srcElement;}else{if(CD(5))
{e=e.currentTarget;}else{e=e.target;}


Is srcElement not supported or is the js code
incorrect?

thanks,
Hiren

----------------------------------------------------------------------

>Comment By: Marc Guillemot (mguillem)
Date: 2006-03-31 09:41

Message:
Logged In: YES
user_id=402164

I think that the problem is that htmlunit doesn't yet
support IE style events: the event is not available under
window.event.
As long as this is not fixed, you can try to simulate
Mozilla/Firefox.

See:
https://sourceforge.net/tracker/index.php?func=detail&aid=1439904&group_id=47038&atid=448269

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1461802&group_id=47038


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise