jQWidgets Forums

jQuery UI Widgets Forums General Discussions Lists DropDownList v2.8 Different behavior in differnt Explores

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • UJanke
    Member

    Till Version 2.7 there was not such a problem. Since Version 2.8 some strange effectes occured.

    If i want to search for an value within a dropdownlist i use:

    var item = $(“#divname”).jqxDropDownList(‘getItemByValue’, searchValue);

    So far so good, it works within all browsers, an it doesn’t matter if the searchValue is an integer or a string.

    But if i use widgets 2.8 and also IE 10 or Goggle Chrome then i recive:

    0x800a01b6 – Laufzeitfehler in JavaScript: Das Objekt unterstützt die Eigenschaft oder Methode “replace” nicht

    what means “replace not supported by object”

    if i use widgets 2.8 and FireFox or IE 8.0 there is no problem.
    Also widgets 2.7x and any Explorer don’t produces such an error. All ok.

    As soon i use widgets 2.8 togther with IE10 or Chrome it turns out that i need to write:

    var item = $(“#divname”).jqxDropDownList(‘getItemByValue’, searchValue.toString());

    which converts to string and well string of corse supports replace and all is fine again. So i would say it isn’t a real widget prob its more an explorer hell problem. (I realy love the different explores and their Versions).

    btw.: it seems that the is a similar problem with die grid widget, but i need to investigate there a bit more, before i realy can tell something about that. So far i know when you use type: ‘number’ in the datasource the ‘replace’ error appers (IE10)

    Greetings
    Uwe


    Peter Stoev
    Keymaster

    Hi Uwe,

    The items that are displayed in the DropDownList are Strings so you should pass string to that method.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.