[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-17 Thread Nahaz
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)

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-17 Thread Nahaz
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.

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-17 Thread Nahaz
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

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-15 Thread Mike Alsup
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

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-14 Thread Nahaz
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,

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-14 Thread James
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

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-14 Thread James
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

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-13 Thread 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

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-13 Thread James
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() { >