jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput name attribute missing

This topic contains 5 replies, has 4 voices, and was last updated by  stuartsimon 8 years, 7 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • name attribute missing #58085

    echerni
    Participant

    Hi,

    I’ve been using jqxDateTimeInput v3.2.1 (2014-Feb-05) with no problems until I updated the widgets to jQWidgets v3.4.0 (2014-June-23). Since the update the widget no longer assings a “name” attribute to the datepicker, hence after form submitting there is no POST variable. Looking at the code I found these differences:

    v3.2.1 (works):

    var c=this.host.attr(“name”);
    if(!c){
    c=this.element.id
    }
    this.dateTimeInput.attr(“name”,c);

    v3.4.0 (not working):

    var c=this.host.attr(“name”);
    if(c){
    this.dateTimeInput.attr(“name”,c)
    }

    Using in HTML as:

    $(“#datepicker”).jqxDateTimeInput({width: ‘220px’, height: ’30px’, formatString: “dd-MM-yyyy”, min: dmin, max: dmax});

    <div id=”datepicker”></div>

    Can you please check?

    Thanks,
    E.

    name attribute missing #58089

    Peter Stoev
    Keymaster

    Hi echerni,

    1. This is not a bug, but something which is intended by design. If you want to have a “name” attribute, put it in your HTML.
    2. I would also like to remind you to read carefully our EULA and use our software according to it, because from your topic and posted code, I should note that you’re violating it.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    name attribute missing #58095

    echerni
    Participant

    Hi Peter,

    Thanks for answering!

    >> 1. This is not a bug, but something which is intended by design. If you want to have a “name” attribute, put it in your HTML.

    So it no longer assigns a “name” attribute. ¿How can I put a “name” attribute to a <div> tag? ¿Or can I use the widget with an <input> tag?

    >> 2. I would also like to remind you to read carefully our EULA and use our software according to it, because from your topic and posted code, I should note that you’re violating it.

    Sorry, my sole intention was to point out the differences between a working and a non-working version, nothing more.

    Regards,
    E.

    name attribute missing #58113

    Peter Stoev
    Keymaster

    Hi echerni,

    In your HTML markup, put a “name” attribute to your datetimeinput’s DIV tag.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    name attribute missing #87557

    sixkiller
    Participant

    Where exactly is this explained in the documentation? Why wasn’t this noted in the breaking changes for the release?

    You chastise a user for breaking the EULA, but no where can you find this “feature” documented; when all the time prior to the 3.4.0 release it worked perfectly fine. I love your tools, but let’s be real here. If you’re going to jump down a user’s throat, then have the documentation to back it up. How else was he/she supposed to explain what he/she was seeing wrong with your code? As I said, you don’t document this change in behavior anywhere.

    name attribute missing #88162

    stuartsimon
    Participant

    Peter:
    I must note that the “name” attribute is not valid for “div” tags according to W3C. According to this page, the only permitted attributes of the “div” tag are global attributes, of which “id” and “title” are two but “name” is not.

    That being said, I believe that the solution is very simple. Both the jqxDateTimeInput and jqxNumberInput widgets, as well as any other widgets that mimic standard form inputs but with <div> at the root, should have the desired “name” attribute passed in as a parameter/option entitled “fieldname.”

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

You must be logged in to reply to this topic.