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: > >>http://webserver.c4v.nl/mark/agenda%20nieuw/agenda.php for the > >> main filehttp://webserver.c4v.nl/mark/agenda%20nieuw/handler.php for > >> the > >> handlerhttp://webserver.c4v.nl/mark/agenda%20nieuw/agenda.css for the > >> csshttp://webserver.c4v.nl/mark/agenda%20nieuw/jquery-1.3.2.js for the > >> java sript librarie > > >> You can see all the files here and test what is going wrong. > >> (the notes u see in the handler.php are in dutch made for my > >> internship boss so hecan easy can see what i have done but he hasnt > >> time to help me time = money:s ) > > >> On Jul 7, 10:09 am, "Jonathan Vanherpe (T & T NV)" <jonat...@tnt.be> > >> wrote: > > >>> Mark wrote: > >>> Are you sure 'handler.php' exists? 'POST' isn't typically an error, > >>> unless the server returns a 404 or internal server error (500), in which > >>> case Firebug will show it in red. > >>> It would be nice if you uploaded your stuff somewhere (preferably > >>> reduced as a testcase). > >>> Jonathan > >>> -- > >>> Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be > > -- > Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be