Ty just found it my self to and it works i think this topic is done ty for your help!!
On Jul 8, 11:37 am, "Jonathan Vanherpe (T & T NV)" <jonat...@tnt.be> wrote: > This should stop the form from submitting (untested): > > $("f...@myform").submit(function() { > $.post('handler.php', { > > jaar:$('#jaar').val(), > maand:$('#maand').val(), > week:$('#week').val() > > }//, > //do_something(data) > ); > return false; > }); > > Jonathan > > > > Mark wrote: > > I used "$(document).ready(function() { > > $("from#myfrom").submit(function() {" > > now it doesn't give an error anymore so far i can see. > > So now only try to figure out how to post the value's with out the > > reload and then im going to make a callback to a new div and print the > > php array thereso i can go on form there > > > Thank you for your help so far now only hope and pray it will work > > > On Jul 8, 9:56 am, "Jonathan Vanherpe (T & T NV)" <jonat...@tnt.be> > > wrote: > >> Sorry, I didn't see your reply, this list is pretty high-traffic. > > >> I tried it, but it doesn't give me an error. The POST returns a 200 OK. > >> What I do notice is that after I click the button, I get a page reload, > >> so I think you need to put a 'return false;' in there somewhere to stop > >> the form from getting submitted. > > >> It's also a nice idea to use submit() instead of click(), to catch > >> people that use keyboard shortcuts and the like. > > >> so use: > >> $("form#myform").submit(function()... > >> instead of > >> $("button").click(function()... > > >> Jonathan > > >> Mark wrote: > >>> Can anybody find anything what i did wrong? > >>> the only code that is not commented out in the handler.php is > >>> <?php > >>> print_r($_POST); > >>> ?> > >>> To show me what kind of values it gets and how it looks in an array so > >>> i can make an associative of it. > >>> On Jul 7, 3:01 pm, Mark <johanns.m...@gmail.com> wrote: > >> -- > >> Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be > > -- > Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be