Quantcast

[ htmlunit-Support Requests-1234714 ] JS issue with onclick

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ htmlunit-Support Requests-1234714 ] JS issue with onclick

SourceForge.net
Support Requests item #1234714, was opened at 2005-07-08 05:51
Message generated for change (Comment added) made by yourgod
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448267&aid=1234714&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: Closed
Resolution: None
Priority: 5
Submitted By: Serge Maslyukov (serg_main)
Assigned to: Nobody/Anonymous (nobody)
Summary: JS issue with onclick

Initial Comment:
My application fails with error
======= EXCEPTION START ========
EcmaError: lineNumber=[1] column=[0] lineSource=
[function () {] name=[TypeError] sourceName=[event for
HtmlButton[<button
onclick="location.href='/wps/myportal/!
ut/p/_s.7_0_A/7_0_6Q/.cmd/ad/.ar/sa.createQuestion/.c/
6_0_46/.ce/7_0_2B1/.p/5_0_24P/.d/4?
PC_7_0_2B1_bcpUnique=5#7_0_2B1'" title="Add New
Question" type="button" id="Add New Question"
class="wpsButtonText">]] message=[TypeError: Cannot
set property "href" of null to "/wps/myportal/!
ut/p/_s.7_0_A/7_0_6Q/.cmd/ad/.ar/sa.createQuestion/.c/
6_0_46/.ce/7_0_2B1/.p/5_0_24P/.d/4?
PC_7_0_2B1_bcpUnique=5#7_0_2B1" (event for
HtmlButton[<button
onclick="location.href='/wps/myportal/!
ut/p/_s.7_0_A/7_0_6Q/.cmd/ad/.ar/sa.createQuestion/.c/
6_0_46/.ce/7_0_2B1/.p/5_0_24P/.d/4?
PC_7_0_2B1_bcpUnique=5#7_0_2B1'" title="Add New
Question" type="button" id="Add New Question"
class="wpsButtonText">]#1)]
com.gargoylesoftware.htmlunit.ScriptException:
TypeError: Cannot set property "href" of null
to "/wps/myportal/!
ut/p/_s.7_0_A/7_0_6Q/.cmd/ad/.ar/sa.createQuestion/.c/
6_0_46/.ce/7_0_2B1/.p/5_0_24P/.d/4?
PC_7_0_2B1_bcpUnique=5#7_0_2B1" (event for
HtmlButton[<button
onclick="location.href='/wps/myportal/!
ut/p/_s.7_0_A/7_0_6Q/.cmd/ad/.ar/sa.createQuestion/.c/
6_0_46/.ce/7_0_2B1/.p/5_0_24P/.d/4?
PC_7_0_2B1_bcpUnique=5#7_0_2B1'" title="Add New
Question" type="button" id="Add New Question"
class="wpsButtonText">]#1)
        at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngin
e.callFunction(JavaScriptEngine.java:304)
        at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJa
vaScriptFunctionIfPossible(HtmlPage.java:758)
        at
com.gargoylesoftware.htmlunit.html.ClickableElement.cli
ck(ClickableElement.java:111)



But if I comment lines
            <browser name="Netscape" min-version="3"/>
            <browser name="Microsoft Internet Explorer"
min-version="3"/>
            <javascript min-version="1"/>

in declaration of property 'location', in file
JavaScriptConfiguration.xml, all work fine.


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

>Comment By: Brad Clarke (yourgod)
Date: 2005-07-11 12:27

Message:
Logged In: YES
user_id=257129

Without some code to reproduce the failure I'm afraid there
isn't anything we can do to help

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

Comment By: Serge Maslyukov (serg_main)
Date: 2005-07-08 12:04

Message:
Logged In: YES
user_id=518049

Sorry. I cant reproduce this error as off-line test.

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

Comment By: Brad Clarke (yourgod)
Date: 2005-07-08 09:45

Message:
Logged In: YES
user_id=257129

please provide a minimal test that reproduces the failure

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

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


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...