I have resolved all issues now and it's working, thanks for all the
help! This is the code I have right now:
function ajaxAdd() {
$('form').submit(function() {
var nick = document.register.nick.value;
$(':submit', this)
I have resolved the multiplying of data error, there was some code in
there that I thought I removed.
I have uploaded the script so you can test it at http://dev.nahaz.se
On May 17, 12:13 pm, Nahaz wrote:
> Upon adding return false; to my submit function a most troublesome
> error has appeared.
Upon adding return false; to my submit function a most troublesome
error has appeared. When you add data, the first time 1 post is
inserted to the db like it should, second click though will generete 2
posts, third 3 posts and so on.
Also my adding and removal of the attribute "disabled" to the b
You need to add "return false" to your submit handler.
$('form').submit(function() {
// do ajaxy stuff
return false;
});
On May 15, 2:25 am, Nahaz wrote:
> I can check that, but as I said before, it works perfectly fine on my
> local webserver, it's when the script is run on my webhost
I can check that, but as I said before, it works perfectly fine on my
local webserver, it's when the script is run on my webhost the issue
occurs. The database seems to be very slow there at the moment.
Ill check with firebug and post the results here.
On May 14, 9:00 pm, James wrote:
> Sorry,
Sorry, I mean "all HTTP header data".
On May 14, 9:00 am, James wrote:
> Have you tried using the Firebug add-on for Firefox to debug whether
> the AJAX request was actually sent in the first place?
> It's very helpful because it'll show you the exact URL that it
> requests, the GET/POST data it
Have you tried using the Firebug add-on for Firefox to debug whether
the AJAX request was actually sent in the first place?
It's very helpful because it'll show you the exact URL that it
requests, the GET/POST data it sends, all HTTP data, and the response
you receive.
On May 13, 8:21 pm, Nahaz
Ah sorry about that.
It doesn't cause an error, it looks like it sends data because ?
nick=nick appears in your url but it does not get into the database
somehow. If you call /data.php?nick=nick it will work, it's when it's
called via $.ajax(); that the issue occurs. I havn't confirmed but it
see
Define what "not working correctly" means.
Does it cause an error? Does the request get sent but nothing happens?
Does the request get sent without the GET data? ... etc.
On May 12, 12:00 pm, Nahaz wrote:
> I have this snippet:
>
> function ajaxAdd() {
> $('form').submit(function() {
>
9 matches
Mail list logo