Thanks for setting me straight on that Mike. Not that I have my example up and running I can play around with it and try to learn something about jQuery. (Defo need to delve into some tutorials on it)
Thanks for you prompt reply Tom On Sep 19, 2:10 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Tom, > > You're confusing ajaxForm and ajaxSubmit. When you use ajaxForm you do not > need to also use ajaxSubmit. ajaxForm will wire up the form and invoke > ajaxSubmit for you. If you set breakpoints you'll notice that your form is > actually being submitted twice. You can simplify the code to this: > > $('#button').ajaxForm({ > url: 'tom_backend.php', > success: function() { > alert('Ajax call complete.') > } > > }); > > Or if you change the action in your markup to 'tom_backend.php' (instead of > '/gg/tom_backend.php') then you could just do this: > > $('#button').ajaxForm(function() { > alert('Ajax call complete.') > > }); > > Mike > > On 9/19/07, Tom <[EMAIL PROTECTED]> wrote: > > > > > Hi Mike > > > I have throw the files up here > > >http://www.zendurl.com/tommydiy/tom.html > > > The JS files can be viewed at > >http://www.zendurl.com/tommydiy/jquery.form.js > >http://www.zendurl.com/tommydiy/jquery.js > >http://www.zendurl.com/tommydiy/tom.js > > > and tom_backend.php is displayed below > > > <?php > > > // variables are passed as GET paramerters > > $action=$_POST['action']; > > > // action buttons > > if ($action==2) > > { > > if ($action==2) > > { > > $type='soft'; > > echo "Sending $type reset command... "; > > } > > } > > ?> > > > PS I do not call all files 'tom' normally Its not an ego thing :p We > > do not have a dedicated external sever in here. > > > Any insight much appreciated. > > T > > > On Sep 19, 12:55 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > > > Tom, > > > > Do you have a page the demonstrates this problem? > > > > Mike > > > > On 9/19/07, TommyDIY <[EMAIL PROTECTED]> wrote: > > > > > Hi > > > > > I am just starting to use jquery so have downloaded the latest > > > > jquery.js version (v 1.2.1). I wanted to utilise form submission so > > > > also grabbed the jquery.form.js > > > > > However it throws an error on line 209 jquery.form.js > > > > "options.url.indexOf is not a function" > > > > > Can anyone help me to get this working please? > > > > > Cheers > > > > Tom