Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: Delphi for PHP/Library    [ Add a report in this area ]  
Report #:  113592   Status: Open
Can't put  a js OnClick event on a label with a link
Project:  HTML5 Builder Build #:  5.0.961.870
Version:    5.0 Submitted By:   Kevin Day
Report Type:  Basic functionality failure Date Reported:  3/11/2013 9:46:03 PM
Severity:    Serious / Highly visible problem Last Updated: 3/12/2013 7:35:26 PM
Platform:    All platforms Internal Tracking #:   5001
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Can't put  a js OnClick event on a label with a link

The moment you set the link property on a label all js events do not get added to it when tags are sent to the browser.

Please see [Workaround] of QC for more information.
Steps to Reproduce:
1. Take a label
2. set the property link
3. Put a simple js OnClick event like alert("hello");
4. Notice the alert doesn't come up when you run this file.
5. Clear the link property and the alert does come up when you run the file.
The problem is in stctrls.ini.php, customlabel->dumpContents().
The $this->openingLink() has been called with incorrect parameters.

To fix:

Change the $this->openingLink() call
  $this->openingLink($alignment,$hint,$target,$events,$class, $draggable);
  $this->openingLink($target,$events, $draggable);

Then Bobs your uncle!

Kevin Day at 4/9/2013 11:03:15 PM -
I mean not stdctrls.ini.php

Server Response from: ETNACODE01