[jQuery] jquery.autocomplete, setting additional params based on dom element

2010-02-18 Thread Rob Lacey
Hi there, I'm having an awful lot of bother trying to get this working. I want to implement auto completion for a text field as follows input type=text name=user[name] id=user_name class=autocomplete / input type=hidden name=user[id] id=user_id / Currently our application returns a json

Re: [jQuery] jQuery AUTOCOMPLETE (by bassistance): submit on click

2010-02-18 Thread Rob Lacey
I'd imagine you'd want something like this? $('input#query').autocomplete('yoururl',{ . your options . }).result(function(event, item, formatted) { $(this).parents().find('form:first').submit(); }); I hope this helps RobL jjunior wrote: I'm having

[jQuery] jquery.form.js and uploading only files

2009-11-27 Thread Rob Lacey
Hi there, I'm trying to use jquery.form.js to allow file uploads with my application. I'm trying to replace saving the whole form and uploading a image all at the same time by hijacking just the input[type=file] change event when you select a file and saving just the file using ajax and then

[jQuery] addClass and removeClass

2009-04-03 Thread Rob Lacey
Hi there, I'm getting an interesting problem with addClass and removeClass. I'm attempting to build a rating system using radio buttons to select the rating. I'm actually hiding my radio buttons and styling the label to have pretty stars instead for a nicer interface. I want to highlight the