jQuery UniqueField plugin

Този плъгин за jQuery проверява дадено поле в база от данни за дадена стойност посредством ajax, и при съвпадение променя DOM дървото като добавя стилизирано със CSS съобщение за това. Демо и линк за сваляне: jQuery UniqueField plugin.

jQuery UniqueField plugin

jQuery UniqueField plugin


Добави във Facebook | Добави във Twitter

Тази статия беше публикувана в неделя, 24 май 2009, 10:41 в категориите Downloads, javascript, Проекти. Можете да следите всички коментари към статията като се абонирате за: RSS 2.0 feed. Коментарите са временно спряни, но можете да trackback от своя собствен сайт.

6 Responses to “jQuery UniqueField plugin”

  1. riverside: Плъгин за jQuery проверява дадено поле .. - edno23.com Says:

    [...] в база от данни за дадена стойност посредством ajax… http://www.bulgaria-web-developers.com/blog/2…ld-plugin/ в Любими преди 1 минута edno23.com Начало контакти [...]

  2. Evaristo_el_rey Says:

    I’m trying to use the plugin but I have a problem. I can’t save the ajax.php in other directories than the root.

    Could you help me?

    Thank you.

  3. Димитър Иванов Says:

    @Evaristo_el_rey you can save ‘ajax.php’ wherever you want (I mean every web-accessible folder), just after that correct the path to ajax.php file. For example, if you save ajax.php in /var/www/includes/utils/ajax.php

    $(‘#email’).uniqueField({
    url: ‘includes/utils/ajax.php’,
    baseId: ‘exam_z’
    });

    or use it as URI:

    $(‘#email’).uniqueField({
    url: ‘http://www.domain.com/includes/utils/ajax.php',
    baseId: ‘exam_z’
    });

  4. Evaristo_el_rey Says:

    I haven’t worked out yet.

    My structure is like that:

    /r/ajax.php
    /script/jquery.uniquefield.js

    and

    „$(‘#email’).uniqueField({
    url: ‘r/ajax.php’, (and I’ve tried with /r/ajax.php and ajax.php).
    baseId: ‘exam_z’
    });“

    Wrote in „/r/cabeza_backoffice_form.php“

    and this last included on: /new_user.php

  5. Evaristo_el_rey Says:

    Another that I don’t know how to solve it’s that when you select a input from the record that the firefox saves for instance, keyup is not triggered, so the check doesn’t work.

    Do you know how to work out that?

  6. Evaristo_el_rey Says:

    Ok i’ve worked out the last one yet.