2024-11-24 19:23 UTC

View Revisions: Issue #2429

Summary 0002429: Button onclick does not run
Revision 2016-02-21 15:41 by Chris Young
Description A button with the following code does not execute:
<input type="button" onclick="self.location.href='comment_new.php?com_itemid=2359&com_order=0&com_mode=flat'" class="formButton" value="Publish Comment" />
The log is in additional information.
Revision 2016-03-07 13:37 by Vincent Sanders
Description A button with the following code does not execute:
<input type="button" onclick="self.location.href='comment_new.php?com_itemid=2359&com_order=0&com_mode=flat'" class="formButton" value="Publish Comment" />
The log is in additional information.
Revision 2016-02-21 15:41 by Chris Young
Additional Information (215.071750) render/html.c:89 fire_dom_event: Dispatching 'click' against 0x4ba7b7a8
(217.888851) render/html.c:89 fire_dom_event: Dispatching 'click' against 0x513495d8
(217.895597) javascript/duktape/dukky.c:815 dukky_generic_event_handler: WOOP WOOP, An event:
(217.903153) javascript/duktape/dukky.c:822 dukky_generic_event_handler: Event's name is click
(217.912093) javascript/duktape/dukky.c:832 dukky_generic_event_handler: Event phase is: at-target (2)
(217.920908) javascript/duktape/dukky.c:85 dukky_create_object: name=NETSURF_DUKTAPE_PROTOTYPE_EVENT nargs=1
(217.928683) javascript/duktape/dukky.c:77 dukky_populate_object: Call the init function
(217.937817) javascript/duktape/dukky.c:106 dukky_create_object: created
(217.945051) javascript/duktape/dukky.c:865 dukky_generic_event_handler: OH NOES! An error running a callback. Meh.
(217.953193) javascript/duktape/dukky.c:876 dukky_generic_event_handler: Uncaught error in JS: TypeError: cannot read property 'location' of undefined
(217.967463) javascript/duktape/dukky.c:878 dukky_generic_event_handler: was at: internal raw uncompiled handler line 1
(217.975447) javascript/duktape/dukky.c:879 dukky_generic_event_handler: Stack trace: TypeError: cannot read property 'location' of undefined
    duk_hobject_props.c:2259
    anon internal raw uncompiled handler:1 preventsyield
Revision 2016-03-07 13:37 by Vincent Sanders
Additional Information (215.071750) render/html.c:89 fire_dom_event: Dispatching 'click' against 0x4ba7b7a8
(217.888851) render/html.c:89 fire_dom_event: Dispatching 'click' against 0x513495d8
(217.895597) javascript/duktape/dukky.c:815 dukky_generic_event_handler: WOOP WOOP, An event:
(217.903153) javascript/duktape/dukky.c:822 dukky_generic_event_handler: Event's name is click
(217.912093) javascript/duktape/dukky.c:832 dukky_generic_event_handler: Event phase is: at-target (2)
(217.920908) javascript/duktape/dukky.c:85 dukky_create_object: name=NETSURF_DUKTAPE_PROTOTYPE_EVENT nargs=1
(217.928683) javascript/duktape/dukky.c:77 dukky_populate_object: Call the init function
(217.937817) javascript/duktape/dukky.c:106 dukky_create_object: created
(217.945051) javascript/duktape/dukky.c:865 dukky_generic_event_handler: OH NOES! An error running a callback. Meh.
(217.953193) javascript/duktape/dukky.c:876 dukky_generic_event_handler: Uncaught error in JS: TypeError: cannot read property 'location' of undefined
(217.967463) javascript/duktape/dukky.c:878 dukky_generic_event_handler: was at: internal raw uncompiled handler line 1
(217.975447) javascript/duktape/dukky.c:879 dukky_generic_event_handler: Stack trace: TypeError: cannot read property 'location' of undefined
    duk_hobject_props.c:2259
    anon internal raw uncompiled handler:1 preventsyield