Okay that's great, all working now!
On Feb 11, 3:23 pm, Aaron Gundel <aaron.gun...@gmail.com> wrote: > After looking this over, I found that the validator wasn't picking up > your submit button, which isn't really a button. It's the link you > use to submit. the validation plugin won't catch this because it > [your link] appears to do a straight up call to form.submit(). I > popped a submit button in there and all your rules started working. > Hope this helps, > > Aaron > > On Tue, Feb 10, 2009 at 11:14 AM, Jon <cakeordeat...@gmail.com> wrote: > > > I've set up a test site here: > >http://test.sunshine-design.co.uk/ > > > I hope you can point me in the right direction, i've not had any > > further luck solving this! > > > Thanks > > > On Feb 9, 3:10 pm, Aaron Gundel <aaron.gun...@gmail.com> wrote: > >> Yes, it would be helpful. Can't really see what's going on in the > >> snippet you provided. As Rob mentioned, there's no mention of the > >> form (even though it is there on the page). It might give some > >> additional clues as to where things have gone wrong. > > >> On Mon, Feb 9, 2009 at 3:46 AM, Jon <cakeordeat...@gmail.com> wrote: > > >> > @ RobG: #aspnetForm is the form that wraps the whole of adotnet > >> > page. I simply posted the html snippet from the form itself. > >> > Individual forms do not have their own <form> tags, there is one large > >> > one that encloses the whole page - part of thedotnetinfrastructure. > > >> > @ Aaron Grundel: No, but i will put one up tonight if it will help. > >> > I'm eager to use this validation plugin! > > >> > On Feb 9, 2:14 am, RobG <rg...@iinet.net.au> wrote: > >> >> On Feb 9, 8:30 am, Jon <cakeordeat...@gmail.com> wrote: > > >> >> > I'm having issues getting the validation plugin > >> >> > (http://bassistance.de/ > >> >> > jquery-plugins/jquery-plugin-validation/) to work withdotnet. > >> >> > Whatever i try i can't stop the form from submitting. I've tried > >> >> > several things i've found on this group and the web. Can anyone help > >> >> > me getting this to work? > > >> >> > Here's my html. > > >> >> > <span id="ctl00_Control_LeftColumn_CF_Contact" class="ContactForm"> > >> >> > <p class="SuccessMessage">Submitted</p> > >> >> > <span class="Field"> > >> >> > <span class="Label">Name </span> > >> >> > <span class="Validation"> > >> >> > <span id="ctl00_Control_LeftColumn_CF_Contact_ctl01_ctl04" > >> >> > style="display: none;"/> > >> >> > </span> > >> >> > <input id="ctl00_Control_LeftColumn_CF_Contact_ctl01_TB_TextBox" > >> >> > class="TextBox Name" type="text" name="ctl00$Control_LeftColumn > >> >> > $CF_Contact$ctl01$TB_TextBox"/> > >> >> > </span> > >> >> > <span class="Field"> > >> >> > </span> > >> >> > <span class="Field"> > >> >> > </span> > >> >> > <a id="ctl00_Control_LeftColumn_CF_Contact_LB_Submit" class="Submit" > >> >> > href="javascript:__doPostBack('ctl00$Control_LeftColumn$CF_Contact > >> >> > $LB_Submit','')" style="background-color: rgb(51, 51, 51);">Submit</a> > >> >> > </span> > > >> >> Invalid markup, there is no form. > > >> >> > And here is my javascript: > > >> >> > $(document).ready(function(){ > >> >> > $("#aspnetForm").validate({ > > >> >> Where is #aspnetForm? > > >> >> -- > >> >> Rob