Results 1 to 2 of 2
- 07-05-2007, 06:12 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 1
- Rep Power
- 0
want to know IE compatibility with ListItems
Hi,
I have a function in java which is used to generate List of items and display 1st item as default. This is working fine in mozilla and mozilla firefox but whenever try to do this in IE it is discarding 1st element of list and selecting 2nd element of list by default..plz let me know the reason or else am i doing wrong?...
Java Code:public static String getListItemsInHtml (ListItem[] items, String ItemSelected, boolean aIsBlankItemRequired){ StringBuffer buffer = new StringBuffer(); if (aIsBlankItemRequired) buffer.append ("<option value=\"\"> </option>"); if(items != null && items.length > 0) { String itemValue = null; for(int i=0; i<items.length; i++) { itemValue = items[i].getValue(); buffer.append("<option value=\"" + itemValue + "\""); if (ItemSelected != null && ItemSelected.equals (itemValue)) { buffer.append(" selected "); } buffer.append(">"); buffer.append(items[i].getName()); buffer.append("</option>"); } } return buffer.toString(); }Last edited by JavaBean; 07-05-2007 at 10:45 AM. Reason: Placed the code inside [code] blocks.
- 07-07-2007, 11:30 PM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 164
- Rep Power
- 6
mm I think that is a styles problem.
Please check these links
Internet Explorer & CSS issues
CSS Attributes: Index
Similar Threads
-
Compatibility issues with IE7
By Aneesha in forum New To JavaReplies: 7Last Post: 11-30-2007, 05:46 AM -
Error in version of JDK and compatibility of JDK issues
By Unni in forum EclipseReplies: 1Last Post: 08-09-2007, 07:32 PM -
Compatibility between Struts 1,4 + Jboss 4.03 + Jdk 1.4.2
By bbq in forum Web FrameworksReplies: 2Last Post: 07-04-2007, 07:55 AM -
Compatibility with Dual Core Procesors
By dlgoes in forum Advanced JavaReplies: 1Last Post: 05-24-2007, 10:17 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks