jQWidgets Forums

This topic contains 1 reply, has 2 voices, and was last updated by  Vladimir 9 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Auto complete label and value error #76927

    samratsaha2
    Participant

    while returning label and value as below is giving exception ( Uncaught SyntaxError: Unexpected token 🙂 , I am using 3.8.2 , any idea?

    loadComplete: function (data) {
    skipDialog = false;
    if(data.length > 0){
    response($.map(data, function (item) {
    return {
    label: (item.city==””?item.county:item.city) +”,”+item.stateCd,
    value: (item.city==””?item.county:item.city)+”:”+item.geoType+”:”+item.stateCd

    }
    }))
    }}

    Auto complete label and value error #76977

    Vladimir
    Participant

    Hello samratsaha2,

    I see no reason for this code not to work assuming that:
    1) The Response function is properly declared and is used correctly (I don’t know what it is since it is not in your code)
    2) You haven’t copied from someplace (like the forum from a post not using the code block function) where the quotes are incorrect and you haven’t replaced them with normal quotes.

    Generally syntax errors a just that, and if it is somewhere in your code, than it is probably your fault.
    If it is somewhere in the library please provide a jseditor/jsfiddle example that demonstrates the issue.

    Best Regards,
    Vladimir

    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.