Disabling onrowdblclick event

Use this board to ask questions or have discussions with other Rich Displays users.
emhill
Experienced User
Posts: 116
Joined: Wed Sep 05, 2012 11:14 am
First Name: Eric
Last Name: Hill
Company Name: Integrated Corporate Solutions
Phone: 256-760-8239
Address 1: 501 S Wood Avenue
City: Florence
State / Province: Alabama
Zip / Postal Code: 35630
Country: United States
Contact:

Re: Disabling onrowdblclick event

Post by emhill »

Thanks, Scott. This did just seem to happen after we went to 4.5.2. Didn't have any complaints before then.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Disabling onrowdblclick event

Post by Scott Klement »

I compared our code from last November to the current code, and nothing has changed with regard to this.

When I did some troubleshooting, it seems that newer versions of IE and Firefox were telling PUI that you had clicked on an HTML "OPTION" tag. Older versions of browsers said you were clicking on an HTML "SELECT" tag.

As you might know, a drop-down looks like this (in HTML):

Code: Select all

<select (parameters here)>
   <option>First Value</option>
   <option>Second Value</option>\
</select>
So technically, you were clicking both SELECT and OPTION. But all of the older browsers report "SELECT", and the newer Firefox and IE9/10 report "OPTION". So it would seem that the browsers have changed.

I simply changed the code to look for either SELECT or OPTION, and that seemed to solve the problem. I've sent you a patch, let me know if it works for you, too.
Karthik
New User
Posts: 13
Joined: Tue Jun 28, 2011 11:00 am
First Name: Karthik
Last Name: Ramachandran
Company Name: Summit Consulting Inc.
Contact:

Re: Disabling onrowdblclick event

Post by Karthik »

Hi Scott,

I get an Onrowdblclick Error: when I double click on an empty subfile record. Message says "Unable to get value of the property 'disabled': object is null or undefined".
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Disabling onrowdblclick event

Post by Scott Klement »

You are doing the following, correct?

Code: Select all

var dropdown = getObj("Dropdown1." + row);
if (dropdown.disabled) {
   // do your double click logic here.
}
If so, it would seem that some of your rows don't have a "dropdown1" widget in them. Am I right?

If so, perhaps you need to do something like this?

Code: Select all

var dropdown = getObj("Dropdown1." + row);
if (dropdown!=null && dropdown.disabled) {
   // do your double click logic here.
}
Karthik
New User
Posts: 13
Joined: Tue Jun 28, 2011 11:00 am
First Name: Karthik
Last Name: Ramachandran
Company Name: Summit Consulting Inc.
Contact:

Re: Disabling onrowdblclick event

Post by Karthik »

Exactly what I needed. Thanks Scott.
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests