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

май 24th, 2009 at 10:48
[...] в база от данни за дадена стойност посредством ajax… http://www.bulgaria-web-developers.com/blog/2…ld-plugin/ в Любими преди 1 минута edno23.com Начало контакти [...]
март 16th, 2010 at 20:36
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.
март 16th, 2010 at 20:53
@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’
});
март 19th, 2010 at 12:20
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
март 19th, 2010 at 13:31
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?
март 22nd, 2010 at 15:20
Ok i’ve worked out the last one yet.