Re: [jQuery] Re: AJAX request

2009-12-24 Thread Octavian Râsnita
Thanks for your help. Now it works fine. I have also added your idea for checking if it is the same string and I also make the AJAX request only if there are more than 2 chars. The content requested by AJAX prints a combo box and I want to load a certain URL when an element from that combo bo

[jQuery] Re: AJAX request

2009-12-24 Thread Šime Vidas
I did some testing and didn't experience your problems... give us your code or put a demo online Another thing... you should also check if the input value has changed since the last keyup event, so you don't send the same data if for example the ENTER or SHIFT keys are pressed you can st

[jQuery] Re: ajax request hangs IE6

2009-10-13 Thread rasensio
I fixed this using the setting in the ajax request cache: false On Oct 13, 3:09 pm, rasensio wrote: > XP IE6 virtual PC for test, latest version of jquery > > the browser hangs after an ajax request. > > $.get("/myurl", {random: $.random()}, mycallback); > > I read that IE6 hangs for some c

[jQuery] Re: Ajax Request Order

2009-10-10 Thread ngreenwood6
I think that you could probably do something like this: //first get $.ajax({ type: "GET", url: "some.php", data: "name=John&location=Boston", success: function(){ //another get on success $.ajax({ type: "GET", url: "somepage2.php", data:"what=whatever"

[jQuery] Re: ajax request form in one page, is it possible ?

2009-08-31 Thread James
jQuery (and most Javascript AJAX libraries) automatically sends the request header: X-Requested-With: XMLHttpRequest You don't have to do anything for that. If you use something like Firebug for Firefox you can see these headers being sent and returned. On the PHP side, you can use the follow cod

[jQuery] Re: ajax request form in one page, is it possible ?

2009-08-29 Thread Danny
I understand that ive to use - X-Requested-With then I did search a bit about that and I found this code, $.ajaxSetup({ headers: {"X-Requested-With":"Ajax"} }); but I still don't understand how should I send the parameters to the same file and get them in the server side (PHP) I hot t

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Nic Hubbard
Perfect! On Apr 15, 1:57 pm, Eric Garside wrote: > $.ajax({ >         type: "GET", >         dataType: "json", >         url: tUrl, >         success: function(data){ GotNewData(data, 'custom string'); }, >         error: GetDataError, >         complete: AjaxRequestComplete >     }); > > On Apr

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Eric Garside
$.ajax({ type: "GET", dataType: "json", url: tUrl, success: function(data){ GotNewData(data, 'custom string'); }, error: GetDataError, complete: AjaxRequestComplete }); On Apr 15, 4:53 pm, Nic Hubbard wrote: > I am interested in this as well.  

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-04-15 Thread Nic Hubbard
I am interested in this as well. How could I send a string to the success GotNewData function? On Feb 26, 9:50 am, P Burrows wrote: > Is anyone aware of a way to pass some additional context information to the > "success" function of an ajax request? > For instance, here is my code which works

[jQuery] Re: ajax request on local machine and FF3/Firebug "Access to restricted URI denied code: 1012"

2009-02-27 Thread jQuery Lover
You can read more about the "Access to restricted URI denied" code: "1012" error here: http://jquery-howto.blogspot.com/2008/12/access-to-restricted-uri-denied-code.html On Sat, Jan 17, 2009 at 5:31 AM, jquertil wrote: > > except its not a bug - its a feature request... > > On Jan 16, 2:39 pm,

[jQuery] Re: Ajax request -- passing additional paramters to success method

2009-02-26 Thread P Burrows
Nevermind... I can do it with lambdas. -- Patrick Burrows http://www.CleverHumans.com On Thu, Feb 26, 2009 at 11:50 AM, P Burrows wrote: > Is anyone aware of a way to pass some additional context information to the > "success" function of an ajax request? > For instance, here is my code which

[jQuery] Re: ajax request on local machine and FF3/Firebug "Access to restricted URI denied code: 1012"

2009-01-16 Thread jquertil
except its not a bug - its a feature request... On Jan 16, 2:39 pm, donb wrote: > By the way, you are 'someone' so you can file a bug report.  ;-)   <- > note smily > > On Jan 16, 5:15 pm, jquertil wrote: > > > > > I downgraded both FF 2 and FB 1.2 so now things work again - but this > > sucks!

[jQuery] Re: ajax request on local machine and FF3/Firebug "Access to restricted URI denied code: 1012"

2009-01-16 Thread donb
By the way, you are 'someone' so you can file a bug report. ;-) <- note smily On Jan 16, 5:15 pm, jquertil wrote: > I downgraded both FF 2 and FB 1.2 so now things work again - but this > sucks! Someone tell those nice folks at Mozilla they should at least > allow a user setting to not get so

[jQuery] Re: ajax request on local machine and FF3/Firebug "Access to restricted URI denied code: 1012"

2009-01-16 Thread donb
I ran into this error today, but it was because my URL (filename) had spaces in it. For what that's worth. On Jan 16, 5:15 pm, jquertil wrote: > I downgraded both FF 2 and FB 1.2 so now things work again - but this > sucks! Someone tell those nice folks at Mozilla they should at least > allow a

[jQuery] Re: ajax request on local machine and FF3/Firebug "Access to restricted URI denied code: 1012"

2009-01-16 Thread jquertil
I downgraded both FF 2 and FB 1.2 so now things work again - but this sucks! Someone tell those nice folks at Mozilla they should at least allow a user setting to not get so uptight about script loading security - I was very surprised to see no ability to adjust that manually.

[jQuery] Re: ajax request on local machine and FF3/Firebug "Access to restricted URI denied code: 1012"

2009-01-16 Thread jquertil
I should add that I'm calling just by file name "myJsonSource.js" - everything is very local, so I'm not even using any sort of "domain" at all, and feel that this should be just fine for running stuff locally. Looked at settings to see if there is anything I can turn off...

[jQuery] Re: Ajax request in loop

2008-12-09 Thread vorp
Well ok, I try to explain what I want to do. At first I forgot to tell, that I have setup all ajax requests in synchronous mode ( $.ajaxSetup({async: false}) ) so after call my get_results() function browser should wait for response. Inside while loop is not only function call, but additionally di

[jQuery] Re: Ajax request in loop

2008-12-09 Thread Michael Geary
Hi vorp, your English is fine, don't worry about that. :-) I'm trying to understand the purpose of your code, though. Why do you want to fire off 50 Ajax requests all at once like that? Also, these Ajax requests are *asynchronous*. That is, $.ajax() returns immediately without waiting for the re

[jQuery] Re: Ajax Request - Success and Failure Events

2008-10-21 Thread thornhawk
On Oct 20, 11:42 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > I was reading the jQuery help docs (in the Ajax Events section), and I > > came across this statement: > > > "you can never have both an error and a success callback with a > > request" > > > Does anyone know why you can't do this? I

[jQuery] Re: Ajax Request - Success and Failure Events

2008-10-20 Thread Mike Alsup
> I was reading the jQuery help docs (in the Ajax Events section), and I > came across this statement: > > "you can never have both an error and a success callback with a > request" > > Does anyone know why you can't do this? I can think of a number of > situations where you would need to cater fo

[jQuery] Re: Ajax request Error - please help

2008-10-09 Thread debussy007
I have some new information, if I change the ajax request's type from POST to GET, it works perfectly ... When I use POST type, in firebug's console the url is red and next to it I can see the number 411, by looking on the net, the error must be related to Content-Length ... Anyway I am fine wi

[jQuery] Re: ajax request with datatype:script

2008-09-28 Thread seo++
the second parameter is "success", still need to eval(data) to create those vars On Sep 23, 11:23 am, david <[EMAIL PROTECTED]> wrote: > the success function takes a second parameter, the status of the > response evaluation. Can you please check it ? > > On Sep 23, 2:08 am, "seo++" <[EMAIL PROTEC

[jQuery] Re: ajax request with datatype:script

2008-09-23 Thread david
the success function takes a second parameter, the status of the response evaluation. Can you please check it ? On Sep 23, 2:08 am, "seo++" <[EMAIL PROTECTED]> wrote: > I am not getting an array, I am getting ids.js contents > > On Sep 22, 8:12 pm, FrenchiINLA <[EMAIL PROTECTED]> wrote: > > > ins

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread seo++
I am not getting an array, I am getting ids.js contents On Sep 22, 8:12 pm, FrenchiINLA <[EMAIL PROTECTED]> wrote: > inside of your success function success: function(data){} you should > refer to 'data' if you're getting back an array, you can refer to as > data[0][0] > > On Sep 21, 9:04 pm, "se

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread FrenchiINLA
inside of your success function success: function(data){} you should refer to 'data' if you're getting back an array, you can refer to as data[0][0] On Sep 21, 9:04 pm, "seo++" <[EMAIL PROTECTED]> wrote: > I am trying to insert array elements through ajax request, these > elements are also arrays

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread seo++
the server side sends ids.js it's a JavaScript Array On Sep 22, 2:33 pm, david <[EMAIL PROTECTED]> wrote: > Hi, > > What do you get from the server side ? > I think you are getting a json structure. But this is text for > javascript till you make eval; > instead of the ajax function try getjson.

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread seo++
server side sends ids.js mentioned in first post it's a JavaScript array On Sep 22, 2:33 pm, david <[EMAIL PROTECTED]> wrote: > Hi, > > What do you get from the server side ? > I think you are getting a json structure. But this is text for > javascript till you make eval; > instead of theajaxfunc

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread david
Hi, What do you get from the server side ? I think you are getting a json structure. But this is text for javascript till you make eval; instead of the ajax function try getjson. Best regards, David On Sep 22, 7:04 am, "seo++" <[EMAIL PROTECTED]> wrote: > I am trying to insert array elements thr

[jQuery] Re: AJAX request pending after TCP connection closed

2008-07-22 Thread k8
I have your same problem here http://groups.google.com/group/jquery-en/browse_thread/thread/ea1a416e94c66164 On Jun 6, 1:22 pm, Greg <[EMAIL PROTECTED]> wrote: > Hi everybody! > I use jQuery 1.2.6 and I encounter a little issue. > > I try to do some COMET (server push), here is an overview of m

[jQuery] Re: Ajax Request Help

2008-03-04 Thread Hamish Campbell
So if your php page (called "submitVote.php") takes form vars (integer) "couponID" and (bit) "vote" and it returns the new percentage (eg "15%"), and the percentage value lives in a div called "votePercentage", and you have two buttons called 'voteYes' and 'voteNo': $('document').ready(function()

[jQuery] Re: AJAX Request

2007-12-30 Thread Shawn
YOu have Firefox. But are you using Firebug? If not, then may I suggest you do? The reason being that with Firebug you can see exactly what is sent to the server, and what response is received. Perhaps there's something odd going on with the response? Are you getting an error code back?

[jQuery] Re: AJAX Request

2007-12-30 Thread Rey Bango
Alex, What are you returning? Do you have a link that I can look at? Rey [EMAIL PROTECTED] wrote: Is there anyone who can help with this please? On Dec 29, 3:11 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Hi. I have just setup a basic site where you click the link and jQuery retriev

[jQuery] Re: AJAX Request

2007-12-30 Thread [EMAIL PROTECTED]
Is there anyone who can help with this please? On Dec 29, 3:11 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi. > > I have just setup a basic site where you click the link and jQuery > retrieves the link via ajax. Code as follows: > > > function fetchURL(obj){ > >     var page_address =

[jQuery] Re: ajax request error

2007-05-30 Thread Jake McGraw
Actually, you don't need var html at all so: $.ajax({ url: "ATBAjaxHandler.do", data: "service-name=nb_places_available&date="+date+"&flight="+flight, success: function(html) { alert("HTML = "+html); $('#nbPlacesAller').html(html); } }); Will wor

[jQuery] Re: ajax request error

2007-05-30 Thread Jake McGraw
You need to set the callback, not just access the XHR object, because it may not (definitely won't) be ready immediately after you call $.ajax, try: var html = $.ajax({ url: "ATBAjaxHandler.do", data: "service-name=nb_places_available&date="+date+"&flight="+flight, success: func