Re: Adding Ajax autocomplete to product_add on order form

Posts: 5378
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Yeah, I think the trouble here is that Drupal would normally load the autocomplete JS on pageload, but that div doesn't do a pageload. You might try using that same form alter function to add this:

<?php
  drupal_add_js
('misc/autocomplete.js');
?>

in an if statement for the order edit form so it gets loaded on the pageload.

Great idea, btw. Eye-wink I'd love it if you posted this as a contrib when it's done!

Adding Ajax autocomplete to product_add on order form By: paulbeaney (2 replies) Tue, 05/13/2008 - 02:58