Paulsonps / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

IE8 - ddcl renders as normal select before rendering as dropdown #164

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
** What steps will reproduce the problem?

Using ASP.NET (VB).  

I have a formview with a placeholder to hold the ddcl.  In the FormViews 
pre-render event, I am creating a html select element and inserting it into the 
placeholder:

Dim dicSelectedLocations As Dictionary(Of Location, Boolean) = 
Master.SessionController.SelectedLocations

Dim phrLocations As PlaceHolder = CType(FormView1.FindControl("phrLocations"), 
PlaceHolder)
        If Not phrLocations Is Nothing Then
            phrLocations.Controls.Add(New LiteralControl(CreateSelectOptions(dicSelectedLocations)))

** What is the expected output? What do you see instead?

The output is fine, except that it loads the ddcl as a normal html select 
option before rendering it as a ddcl.

** What is your environment?

jquery-ui-1.8.4.custom.css
ui.dropdownchecklist.themeroller.css
js/jquery-1.4.2.min.js
jquery-ui-1.8.4.custom.min.js
ui.dropdownchecklist-1.1-min.js

Browser and version: IE 8.0.6001.18702

** Please provide any additional information below/Please attach sample
html

I have attached two screenshots as the page loads.  The first shows the 
behavior that I don't want, the second is after it finally has rendered.

Original issue reported on code.google.com by pmugri...@gmail.com on 14 Mar 2011 at 12:29

Attachments:

GoogleCodeExporter commented 8 years ago
DDCL operates like most other jQuery widgets, where the source of the widget is 
a standard HTML construct that will render properly if javascript is suppressed 
by the browser. jQuery processing, typically triggered by onPageLoad, will then 
transform the HTML into the DDCL dropdown.
In most cases, the end user does not see the intermediate display, only the end 
result. I have no expertise in ASP.NET so I cannot assist you as to why the 
trigger process may be acting differently in your environment. 

I will leave this issue open, hoping that some other developer will have more 
knowledge of ASP.NET and can help.

Original comment by womohun...@ittrium.com on 14 Mar 2011 at 2:30

GoogleCodeExporter commented 8 years ago
I also have this happen using IE8.  It does NOT appear to be ASP.NET related as 
I'm using Ruby on Rails.  I believe IE8 is "eagerly" displaying the UI element 
before DDCL has had a chance to hide it.  

I haven't tried yet but perhaps hiding the underlying select "manually" in HTML 
would prevent the raw select from displaying while jQuery/DDCL fire up.

Original comment by cosmocr...@gmail.com on 26 Jul 2011 at 7:56

GoogleCodeExporter commented 8 years ago
Issue 260 has been merged into this issue.

Original comment by womohun...@ittrium.com on 31 Jul 2012 at 5:03

GoogleCodeExporter commented 8 years ago
Since I have had another report of this happening with IE8, I have re-opened 
this issue as an enhancement.

I anticipate addressing this by encouraging users to add a 'hidden' style to 
their original Select.  I will then try to ensure that DDCL can build its own 
components from a source that is hidden.  NOTE that DDCL currently has a 
problem with a parent that is not visible, but I have not tested with the 
original Select being invisible.

Original comment by womohun...@ittrium.com on 31 Jul 2012 at 5:07