[jQuery] Re: Having a problems with $.post() and external .js files

2009-08-21 Thread m...@polyvisual.co.uk
>    onPost > > } > > $('.selector').change(onSelectorChange); > > function onPost() { >      $("#searchbox").html(data); >      $('.selector').change(onSelectorChange); > > } > > I hope the syntax & the bracket '

[jQuery] Having a problems with $.post() and external .js files

2009-08-21 Thread m...@polyvisual.co.uk
Hi all, Can someone help? I'm having a problem with $.post() and including external .js files. I include my jquery in the header of each page: I have a php file which includes a form [an external php file called searchformbox.php]. Each time a is changed in the form, jquery handles the submi

[jQuery] passing the state of a checkbox on a page reload

2009-05-01 Thread m...@polyvisual.co.uk
Hi I have a div which contains a search box and gets hidden when the page loads. A user can click a link to reveal the div. If I added a checkbox inside the div with the text 'click this box to always keep this search box open'... how would I pass the state of the checkbox to jquery [to not chan

[jQuery] Re: malsup.com form and php validation confusion

2009-02-09 Thread m...@polyvisual.co.uk
Thanks for replying, Mike. I see. In the success: function() I'll use match() on the responseText to check whether the form validated, and then do whatever I require. Thanks, Matt On Feb 9, 11:15 pm, Mike Alsup wrote: > > (It seems to me as though the form always returns 'successful' code ?

[jQuery] malsup.com form and php validation confusion

2009-02-09 Thread m...@polyvisual.co.uk
Hi all, I'm using the jquery form plugin from malsup.com, and I'm confused about validation. I need to validate the form fields in the php file specified in the action of the form. I realise I can use the success: function() to update a div (I actually want to perform animation on a div elsewhe