[jQuery] timer and .post

2008-11-03 Thread jpratt

I have an ap built on the portable application here: http://portablewebap.com/

I also use the timer plugin and have a .post function that saves for
data every 1/2 second. On some computers I get errors of timing out.
Is this because it is running my php file too frequently? Thanks for
the help.


[jQuery] .post

2008-05-13 Thread jpratt

Sorry for the noob question. I am using the .post ajax method on a
form. I use the following jquery code:

$("form#changeinfo").submit(function(){
$.post("ownerdetails.php", {
name: $("#name").val() });
});

So when the form with the id of changeinfo is submitted it posts
information to ownerdetails.php. But when I write my php in
ownerdetails.php and try to get the value of name it doesnt work. my
php is simple just to test:

$name = $_POST['name'];
echo $name;

This does nothing even though there is a value in the field. Its as if
nothing is posted to the server. Any ideas?