PDA

View Full Version : AJAX Name Suggest?


DevilYellow
05-16-2006, 02:07 AM
Has anyone used the built a product that uses the AJAX name suggest script that is also used on the newpm area of the private.php page?

Pretty much I have a simple form in an admincp page where one field is "username" and I'd really like that to have dropdown to ensure the correct username is entered.

if ($_REQUEST['do'] == 'new')
{

print_form_header('test', 'add');
construct_hidden_code('testid', $vbulletin->GPC['testid']);

print_table_header($vbphrase['add_test']);
print_input_row($vbphrase['username'], 'username');
print_input_row($vbphrase['test'], 'test');

print_submit_row($vbphrase['save']);
}


So I am just curious how I would do that.

Also - when I was playing around I justnoticed that for some reason I can not figure out how to delete a custom template.

peterska2
05-16-2006, 03:01 AM
AJAX Name complete is already in PM's, it is just quite slow so you have to wait for it.

To delete a custom template, click revert. As the template is custom, it reverts to not there.

DevilYellow
05-16-2006, 03:09 AM
Thank you!

I was really curious as to adapting the AJAX name complete to the product that I am working on. I do not mind that it is slow.