zerocooldeveloper / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

Filter options issue IE 8 #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using IE 8 or below

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

-Expected output is checkbox filtering options, they are being dynamically 
built up but not being displayed in IE8, works fine in all other browsers. 

What version of the product are you using? On what operating system?

-V3 GMap with filtering. 

Please provide any additional information below.

-See screen shot of issue in IE 8

I have tried to narrow down the issue to see where the code is breaking. It 
seems that IE 8 doesn't like this statement. 

$('input:checkbox:checked') 

Original issue reported on code.google.com by adamhann...@googlemail.com on 23 May 2013 at 9:10

Attachments:

GoogleCodeExporter commented 8 years ago
I'm also having the same problem with IE8 and below only.

Did you happen find a solution?

Original comment by fromouto...@gmail.com on 12 Jun 2013 at 4:15

GoogleCodeExporter commented 8 years ago
Yes I managed to get a fix for it, this issue was with it was the .append it 
used to build up the checkbox options and labels 

I changed the following and this fixed the issue for me: 

$('#radios').append(('<label style="margin-right:5px;display:block;"><input 
type="checkbox" style="margin-right:3px" value="{0}"/>{1}</label>').format(tag, 
tag));

To: 

var checkString = '';

checkboxItemString = '<label style="margin-right:5px;display:block;"><input 
type="checkbox" style="margin-right:3px" value="{0}"/>{1}</label>'

var div = document.getElementById("radios");
var content = div.innerHTML;
div.innerHTML = content + checkboxItemString;

});

Original comment by adamhann...@googlemail.com on 13 Jun 2013 at 2:59